
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
365052a
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.0+cu121", | |
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", | |
"task": "text-generation", | |
"library": "transformers", | |
"model_type": "gpt2", | |
"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": {}, | |
"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, | |
"memory": true, | |
"latency": 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.25696, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.220-209.869.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.4.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.44.0", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.0", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.8", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 767.115264, | |
"max_global_vram": 1355.28448, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 7.3928642578125, | |
"mean": 7.3928642578125, | |
"stdev": 0.0, | |
"p50": 7.3928642578125, | |
"p90": 7.3928642578125, | |
"p95": 7.3928642578125, | |
"p99": 7.3928642578125, | |
"values": [ | |
7.3928642578125 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0349363180550045e-06, | |
"ram": 5.402941797120382e-07, | |
"gpu": 1.7155569279998176e-06, | |
"total": 3.2907874257668604e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1102.29504, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 73, | |
"total": 0.4912143983840945, | |
"mean": 0.006728964361425949, | |
"stdev": 0.0002699373524269422, | |
"p50": 0.006727392196655273, | |
"p90": 0.007079884719848633, | |
"p95": 0.007222489643096923, | |
"p99": 0.007315503330230713, | |
"values": [ | |
0.007347551822662354, | |
0.006984320163726807, | |
0.006952352046966552, | |
0.0067844481468200685, | |
0.0068287038803100586, | |
0.006628767967224121, | |
0.006719679832458496, | |
0.0068784961700439455, | |
0.006794367790222168, | |
0.006735007762908935, | |
0.006765088081359863, | |
0.00686195182800293, | |
0.006759103775024414, | |
0.00673199987411499, | |
0.006768095970153809, | |
0.006809696197509766, | |
0.0066495680809021, | |
0.006700992107391357, | |
0.006954495906829834, | |
0.006727392196655273, | |
0.006962048053741455, | |
0.00688428783416748, | |
0.006785024166107178, | |
0.006703551769256592, | |
0.006815839767456055, | |
0.007079423904418946, | |
0.00689577579498291, | |
0.007072159767150879, | |
0.007262080192565918, | |
0.006979680061340332, | |
0.007016320228576661, | |
0.006899424076080322, | |
0.007109600067138672, | |
0.0072642240524291996, | |
0.007303040027618408, | |
0.00703056001663208, | |
0.00704095983505249, | |
0.007159808158874512, | |
0.006600416183471679, | |
0.006491871833801269, | |
0.006886015892028809, | |
0.006295008182525635, | |
0.00628656005859375, | |
0.006905951976776123, | |
0.007079999923706054, | |
0.007196095943450928, | |
0.006654848098754882, | |
0.006549407958984375, | |
0.006495520114898682, | |
0.006444767951965332, | |
0.006522367954254151, | |
0.006474112033843994, | |
0.006523903846740723, | |
0.006509696006774902, | |
0.006493087768554688, | |
0.006463071823120117, | |
0.006516384124755859, | |
0.006466207981109619, | |
0.00644649600982666, | |
0.006529471874237061, | |
0.006513567924499511, | |
0.006459487915039063, | |
0.006492256164550781, | |
0.006447328090667725, | |
0.006471839904785157, | |
0.00647651195526123, | |
0.006415616035461426, | |
0.006451871871948242, | |
0.006439167976379395, | |
0.006195839881896973, | |
0.006432640075683594, | |
0.006477215766906738, | |
0.006463903903961182 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 297.22255797119067 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.658674783154405e-08, | |
"ram": 4.187297681646568e-08, | |
"gpu": 1.5460944268387232e-07, | |
"total": 2.73069167331882e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7324151.677546392 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1118.208, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 73, | |
"total": 0.5146397104263305, | |
"mean": 0.007049859046936034, | |
"stdev": 0.0002766682167423478, | |
"p50": 0.0070507841110229496, | |
"p90": 0.007433446216583252, | |
"p95": 0.007538406562805176, | |
"p99": 0.007586077327728272, | |
"values": [ | |
0.00730079984664917, | |
0.0073389759063720705, | |
0.007195648193359375, | |
0.007261983871459961, | |
0.007090816020965576, | |
0.006949632167816162, | |
0.0070507841110229496, | |
0.007230080127716064, | |
0.0072979841232299805, | |
0.007073631763458252, | |
0.007247072219848633, | |
0.007241407871246338, | |
0.007173471927642823, | |
0.0071157760620117185, | |
0.007059711933135987, | |
0.007007743835449219, | |
0.006983903884887696, | |
0.007016223907470703, | |
0.0070618557929992675, | |
0.0070620479583740235, | |
0.007144864082336426, | |
0.0072343358993530275, | |
0.0070052800178527835, | |
0.007235328197479248, | |
0.007387296199798584, | |
0.007632480144500732, | |
0.007441343784332276, | |
0.007401855945587158, | |
0.007223392009735107, | |
0.007460671901702881, | |
0.007323584079742432, | |
0.007386688232421875, | |
0.0075680317878723145, | |
0.007543903827667236, | |
0.007543744087219239, | |
0.007524320125579834, | |
0.007387455940246582, | |
0.007270559787750244, | |
0.006750495910644532, | |
0.007081727981567382, | |
0.006937344074249268, | |
0.006555520057678223, | |
0.006818336009979248, | |
0.007294400215148926, | |
0.007534848213195801, | |
0.00710595178604126, | |
0.006822112083435058, | |
0.006930335998535157, | |
0.006831327915191651, | |
0.006818687915802002, | |
0.006733376026153565, | |
0.006841599941253662, | |
0.006763455867767334, | |
0.0068056960105895995, | |
0.006828767776489258, | |
0.0067552318572998045, | |
0.00678115177154541, | |
0.006706655979156494, | |
0.006820831775665283, | |
0.006702239990234375, | |
0.006890175819396972, | |
0.006781919956207276, | |
0.00676697587966919, | |
0.006765888214111328, | |
0.0067545599937438965, | |
0.006764416217803955, | |
0.006783455848693848, | |
0.006727935791015625, | |
0.006810719966888428, | |
0.006465856075286865, | |
0.006851136207580566, | |
0.006777599811553955, | |
0.006804287910461426 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 141.84680762299973 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.20069442517884e-08, | |
"ram": 3.9373035354908955e-08, | |
"gpu": 1.4412343519112466e-07, | |
"total": 2.55503414797822e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3913842.0157370213 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 73, | |
"total": 0.480200767993927, | |
"mean": 0.006578092712245575, | |
"stdev": 0.00022221341217679543, | |
"p50": 0.00653107213973999, | |
"p90": 0.006906700706481933, | |
"p95": 0.006991276836395263, | |
"p99": 0.007036399459838867, | |
"values": [ | |
0.006768735885620117, | |
0.006766592025756836, | |
0.006688767910003662, | |
0.00674508810043335, | |
0.006599679946899414, | |
0.006441984176635742, | |
0.0065443840026855465, | |
0.00667852783203125, | |
0.006781951904296875, | |
0.00653107213973999, | |
0.006722559928894043, | |
0.006667232036590576, | |
0.0066641921997070315, | |
0.006568960189819336, | |
0.006545407772064209, | |
0.006529024124145508, | |
0.006503424167633057, | |
0.006509568214416504, | |
0.0065484800338745115, | |
0.006523903846740723, | |
0.006625343799591064, | |
0.0066938881874084475, | |
0.006510591983795166, | |
0.00667852783203125, | |
0.0068618240356445315, | |
0.007071904182434082, | |
0.006915103912353515, | |
0.006864895820617676, | |
0.006731776237487793, | |
0.0069324798583984375, | |
0.006781951904296875, | |
0.006873087882995605, | |
0.0070225920677185055, | |
0.006973440170288086, | |
0.007002111911773682, | |
0.006988831996917725, | |
0.006818816184997558, | |
0.006785024166107178, | |
0.006305791854858398, | |
0.00658022403717041, | |
0.006461440086364746, | |
0.006131711959838867, | |
0.006387712001800537, | |
0.006813695907592773, | |
0.006994944095611572, | |
0.006675456047058105, | |
0.006425600051879882, | |
0.006536191940307618, | |
0.006434815883636475, | |
0.00642252779006958, | |
0.006345632076263427, | |
0.006428544044494629, | |
0.006355967998504639, | |
0.006408192157745361, | |
0.00643071985244751, | |
0.00636630392074585, | |
0.006386688232421875, | |
0.006315968036651611, | |
0.006423552036285401, | |
0.006303743839263916, | |
0.00648089599609375, | |
0.006387712001800537, | |
0.006371327877044678, | |
0.006371200084686279, | |
0.006354944229125976, | |
0.006363135814666748, | |
0.006393856048583985, | |
0.006339583873748779, | |
0.006415359973907471, | |
0.006077439785003662, | |
0.006450208187103271, | |
0.006388735771179199, | |
0.006409215927124024 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 152.01974854176663 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |