
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
809b320
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.1+cu121", | |
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", | |
"task": "text-generation", | |
"library": "transformers", | |
"model": "openai-community/gpt2", | |
"processor": "openai-community/gpt2", | |
"device": "cuda", | |
"device_ids": "0", | |
"seed": 42, | |
"inter_op_num_threads": null, | |
"intra_op_num_threads": null, | |
"model_kwargs": {}, | |
"processor_kwargs": {}, | |
"hub_kwargs": {}, | |
"no_weights": true, | |
"device_map": null, | |
"torch_dtype": null, | |
"eval_mode": true, | |
"to_bettertransformer": false, | |
"low_cpu_mem_usage": null, | |
"attn_implementation": null, | |
"cache_implementation": null, | |
"autocast_enabled": false, | |
"autocast_dtype": null, | |
"torch_compile": false, | |
"torch_compile_target": "forward", | |
"torch_compile_config": {}, | |
"quantization_scheme": null, | |
"quantization_config": {}, | |
"deepspeed_inference": false, | |
"deepspeed_inference_config": {}, | |
"peft_type": null, | |
"peft_config": {} | |
}, | |
"scenario": { | |
"name": "inference", | |
"_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario", | |
"iterations": 1, | |
"duration": 1, | |
"warmup_runs": 1, | |
"input_shapes": { | |
"batch_size": 1, | |
"num_choices": 2, | |
"sequence_length": 2 | |
}, | |
"new_tokens": null, | |
"latency": true, | |
"memory": true, | |
"energy": true, | |
"forward_kwargs": {}, | |
"generate_kwargs": { | |
"max_new_tokens": 2, | |
"min_new_tokens": 2 | |
}, | |
"call_kwargs": { | |
"num_inference_steps": 2 | |
} | |
}, | |
"launcher": { | |
"name": "process", | |
"_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher", | |
"device_isolation": true, | |
"device_isolation_action": "error", | |
"numactl": false, | |
"numactl_kwargs": {}, | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7R32", | |
"cpu_count": 16, | |
"cpu_ram_mb": 66697.293824, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.219-208.866.amzn2.x86_64-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.12", | |
"gpu": [ | |
"NVIDIA A10G" | |
], | |
"gpu_count": 1, | |
"gpu_vram_mb": 24146608128, | |
"optimum_benchmark_version": "0.2.1", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.42.3", | |
"transformers_commit": null, | |
"accelerate_version": "0.31.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.29.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.7", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1040.027648, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210816 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 71, | |
"total": 0.4890429444313052, | |
"mean": 0.006887928794807111, | |
"stdev": 0.00040256940313204465, | |
"p50": 0.006902048110961914, | |
"p90": 0.00728272008895874, | |
"p95": 0.007449968099594116, | |
"p99": 0.007958342313766477, | |
"values": [ | |
0.008599743843078614, | |
0.007559552192687989, | |
0.007683455944061279, | |
0.007394239902496338, | |
0.007058623790740967, | |
0.007080607891082764, | |
0.006876287937164306, | |
0.0070135040283203125, | |
0.007157279968261719, | |
0.0069961600303649904, | |
0.007202144145965576, | |
0.007139167785644531, | |
0.007077216148376465, | |
0.007281568050384522, | |
0.006902048110961914, | |
0.006971807956695557, | |
0.007010560035705566, | |
0.00728272008895874, | |
0.007214240074157715, | |
0.007009856224060059, | |
0.007263423919677735, | |
0.00711520004272461, | |
0.007174272060394287, | |
0.007256703853607178, | |
0.007413568019866944, | |
0.0069918398857116695, | |
0.007, | |
0.007272863864898681, | |
0.007178944110870361, | |
0.0070230717658996585, | |
0.007010335922241211, | |
0.006799295902252197, | |
0.00700758409500122, | |
0.006639647960662842, | |
0.00653436803817749, | |
0.007076735973358154, | |
0.00713372802734375, | |
0.00728329610824585, | |
0.00727942419052124, | |
0.006866623878479004, | |
0.006744063854217529, | |
0.006700319766998291, | |
0.0068269438743591305, | |
0.006708223819732666, | |
0.006566175937652588, | |
0.006441408157348632, | |
0.0064512319564819336, | |
0.006418464183807373, | |
0.006461664199829102, | |
0.006477024078369141, | |
0.006434879779815674, | |
0.006448383808135986, | |
0.006451488018035889, | |
0.006443424224853516, | |
0.006432640075683594, | |
0.006477536201477051, | |
0.006409088134765625, | |
0.006409120082855224, | |
0.00640118408203125, | |
0.006403872013092041, | |
0.006413343906402588, | |
0.006562272071838379, | |
0.006449728012084961, | |
0.006410880088806152, | |
0.006620768070220947, | |
0.006648799896240234, | |
0.006658016204833984, | |
0.006681600093841553, | |
0.006409599781036377, | |
0.006762720108032226, | |
0.007486368179321289 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 290.3630481063949 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 8.296150636006069e-08, | |
"ram": 4.5357317810466176e-08, | |
"gpu": 1.5460579579021024e-07, | |
"total": 2.829246199607371e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7069020.717523807 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1040.027648, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.43456 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 71, | |
"total": 0.5149900178909301, | |
"mean": 0.007253380533675072, | |
"stdev": 0.0003880464797927514, | |
"p50": 0.00727888011932373, | |
"p90": 0.007773888111114502, | |
"p95": 0.00788483214378357, | |
"p99": 0.008175312042236328, | |
"values": [ | |
0.0079234881401062, | |
0.008101632118225097, | |
0.007809919834136963, | |
0.007796063899993897, | |
0.007455232143402099, | |
0.0073991999626159665, | |
0.007404640197753907, | |
0.007769760131835938, | |
0.007773888111114502, | |
0.007452320098876953, | |
0.007481503963470459, | |
0.007589216232299805, | |
0.007496128082275391, | |
0.0073837761878967284, | |
0.007360864162445069, | |
0.007383903980255127, | |
0.00748902416229248, | |
0.007629087924957275, | |
0.0075188159942626955, | |
0.007535808086395264, | |
0.007476352214813233, | |
0.007358304023742676, | |
0.007415135860443115, | |
0.007308127880096435, | |
0.0083472318649292, | |
0.007404255867004395, | |
0.007619135856628418, | |
0.007570943832397461, | |
0.007631616115570068, | |
0.007408192157745361, | |
0.007285952091217041, | |
0.007013887882232666, | |
0.007274240016937256, | |
0.006793759822845459, | |
0.00693500804901123, | |
0.0075632319450378415, | |
0.007606400012969971, | |
0.007846176147460937, | |
0.007240863800048828, | |
0.007125152111053467, | |
0.007040895938873291, | |
0.007055903911590576, | |
0.007066656112670899, | |
0.007035583972930908, | |
0.006817920207977295, | |
0.006788159847259521, | |
0.006757952213287353, | |
0.006790495872497558, | |
0.0067630081176757815, | |
0.00677507209777832, | |
0.006885312080383301, | |
0.006912608146667481, | |
0.0067641921043396, | |
0.006932127952575684, | |
0.006754720211029052, | |
0.006789216041564941, | |
0.0068039999008178715, | |
0.006783008098602295, | |
0.006780096054077148, | |
0.006759007930755615, | |
0.006796192169189453, | |
0.006756800174713135, | |
0.006909535884857178, | |
0.0068776001930236814, | |
0.007025152206420898, | |
0.007040703773498535, | |
0.0070388798713684085, | |
0.007013919830322265, | |
0.00727888011932373, | |
0.008026495933532714, | |
0.007191679954528809 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 137.8667499047275 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.911581064868237e-08, | |
"ram": 4.314861577791902e-08, | |
"gpu": 1.4656937007465035e-07, | |
"total": 2.6883379650125193e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3719770.404668384 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 70, | |
"total": 0.9897850866317749, | |
"mean": 0.0141397869518825, | |
"stdev": 0.0007066399431547511, | |
"p50": 0.01430067205429077, | |
"p90": 0.014868786907196044, | |
"p95": 0.015195340871810913, | |
"p99": 0.01571092435836792, | |
"values": [ | |
0.015688703536987304, | |
0.01556275177001953, | |
0.015215616226196289, | |
0.014574591636657714, | |
0.014536704063415527, | |
0.014296064376831055, | |
0.014792736053466798, | |
0.014990303993225098, | |
0.01447116756439209, | |
0.014728192329406739, | |
0.01477222442626953, | |
0.014593024253845215, | |
0.014714879989624024, | |
0.014299136161804199, | |
0.014320639610290528, | |
0.014575615882873535, | |
0.014945280075073243, | |
0.014782464027404785, | |
0.014548992156982422, | |
0.01479475212097168, | |
0.014524415969848633, | |
0.014603263854980468, | |
0.014619647979736328, | |
0.01576038360595703, | |
0.014428159713745118, | |
0.014655488014221191, | |
0.0148602876663208, | |
0.01485209560394287, | |
0.01449062442779541, | |
0.014360575675964356, | |
0.013882368087768555, | |
0.014302207946777343, | |
0.013549568176269532, | |
0.013438976287841797, | |
0.014624768257141114, | |
0.014748671531677245, | |
0.015170559883117676, | |
0.014648320198059082, | |
0.014035967826843262, | |
0.013826047897338867, | |
0.013783040046691895, | |
0.013919232368469238, | |
0.013774847984313965, | |
0.013417471885681152, | |
0.01325158405303955, | |
0.013240320205688477, | |
0.013232128143310547, | |
0.013249600410461426, | |
0.013270976066589356, | |
0.01334988784790039, | |
0.0133887996673584, | |
0.013237248420715332, | |
0.013405183792114257, | |
0.013213695526123047, | |
0.013270015716552735, | |
0.013248512268066406, | |
0.013213695526123047, | |
0.013203455924987792, | |
0.013208576202392578, | |
0.01323519992828369, | |
0.013342720031738281, | |
0.01337548828125, | |
0.013321215629577637, | |
0.013622271537780761, | |
0.01375641632080078, | |
0.013722623825073242, | |
0.013724672317504882, | |
0.01368883228302002, | |
0.014693375587463378, | |
0.014837759971618653 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 70.7224234285132 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |