
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
02bb628
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": 765.894656, | |
"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.364955078125, | |
"mean": 7.364955078125, | |
"stdev": 0.0, | |
"p50": 7.364955078125, | |
"p90": 7.364955078125, | |
"p95": 7.364955078125, | |
"p99": 7.364955078125, | |
"values": [ | |
7.364955078125 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.865854729165829e-07, | |
"ram": 5.246182573619262e-07, | |
"gpu": 1.8277792400000353e-06, | |
"total": 3.3389829702785446e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1067.52, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 77, | |
"total": 0.48943632078170773, | |
"mean": 0.006356315854307894, | |
"stdev": 0.00029814392021175153, | |
"p50": 0.0062197761535644535, | |
"p90": 0.006689158344268799, | |
"p95": 0.007055411052703858, | |
"p99": 0.007395443172454832, | |
"values": [ | |
0.007335423946380615, | |
0.006996064186096191, | |
0.007230976104736328, | |
0.007223680019378662, | |
0.007013343811035157, | |
0.007585504055023193, | |
0.006426784038543701, | |
0.006221888065338135, | |
0.0062024321556091305, | |
0.0062700481414794925, | |
0.006250688076019287, | |
0.006214911937713623, | |
0.006353119850158692, | |
0.006241087913513184, | |
0.006379871845245361, | |
0.006273439884185791, | |
0.00619974422454834, | |
0.006220704078674317, | |
0.006229983806610107, | |
0.006233407974243164, | |
0.006215712070465088, | |
0.006183135986328125, | |
0.006187615871429443, | |
0.006239232063293457, | |
0.0062197761535644535, | |
0.006215551853179932, | |
0.00619596815109253, | |
0.006179135799407959, | |
0.0062585601806640625, | |
0.006231552124023438, | |
0.006216256141662597, | |
0.006207295894622803, | |
0.006186431884765625, | |
0.006209440231323242, | |
0.006216256141662597, | |
0.006224287986755371, | |
0.006237631797790528, | |
0.006189280033111573, | |
0.006163807868957519, | |
0.00618998384475708, | |
0.006184160232543945, | |
0.006198431968688965, | |
0.006166848182678222, | |
0.006160160064697265, | |
0.006199776172637939, | |
0.0061916160583496095, | |
0.006271615982055664, | |
0.006210559844970703, | |
0.0061948800086975096, | |
0.0061807999610900876, | |
0.006218815803527832, | |
0.006628896236419678, | |
0.006646624088287353, | |
0.006684319972991943, | |
0.006798079967498779, | |
0.006607583999633789, | |
0.006578432083129883, | |
0.006526016235351563, | |
0.006492991924285888, | |
0.006539487838745117, | |
0.006476223945617676, | |
0.006696415901184082, | |
0.006390655994415283, | |
0.006194111824035645, | |
0.0061961917877197265, | |
0.006190368175506592, | |
0.006189919948577881, | |
0.006201727867126465, | |
0.006188960075378418, | |
0.0061888318061828615, | |
0.006265151977539063, | |
0.006279744148254394, | |
0.006246047973632813, | |
0.006197440147399902, | |
0.00618668794631958, | |
0.006190336227416992, | |
0.0062073922157287595 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 314.6476741939328 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.857206662527502e-08, | |
"ram": 4.2867812930280977e-08, | |
"gpu": 1.5560350932450305e-07, | |
"total": 2.7704338888005903e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7219085.819318591 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1083.162624, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 77, | |
"total": 0.5107881264686585, | |
"mean": 0.0066336120320605, | |
"stdev": 0.0002603131106672941, | |
"p50": 0.006514495849609375, | |
"p90": 0.006947980785369873, | |
"p95": 0.007263142204284668, | |
"p99": 0.0075742054748535155, | |
"values": [ | |
0.007326399803161621, | |
0.007326720237731933, | |
0.007556672096252441, | |
0.007629727840423584, | |
0.0071253437995910645, | |
0.0072473278045654295, | |
0.0065138559341430665, | |
0.006497439861297608, | |
0.00666537618637085, | |
0.006495264053344727, | |
0.006504415988922119, | |
0.006499904155731201, | |
0.00651804780960083, | |
0.006624896049499512, | |
0.006531424045562744, | |
0.006529568195343017, | |
0.006539584159851074, | |
0.006535327911376953, | |
0.0065229439735412596, | |
0.006514495849609375, | |
0.0064897918701171875, | |
0.006616703987121582, | |
0.006492447853088379, | |
0.006468607902526856, | |
0.006475552082061768, | |
0.00657590389251709, | |
0.006498655796051025, | |
0.00652953577041626, | |
0.006497983932495117, | |
0.0064587841033935545, | |
0.006484960079193115, | |
0.006550079822540284, | |
0.0065092802047729496, | |
0.0065550398826599125, | |
0.006543776035308838, | |
0.006452799797058106, | |
0.006512191772460938, | |
0.006474559783935547, | |
0.0064876160621643066, | |
0.006492544174194336, | |
0.006500256061553955, | |
0.0064579200744628905, | |
0.006487328052520752, | |
0.006489727973937988, | |
0.006458879947662354, | |
0.00643555212020874, | |
0.006471392154693604, | |
0.006589248180389405, | |
0.006475296020507813, | |
0.006464735984802246, | |
0.006688255786895752, | |
0.006868703842163086, | |
0.006939775943756103, | |
0.006908607959747314, | |
0.006925375938415528, | |
0.006857088088989258, | |
0.006816287994384765, | |
0.006842495918273926, | |
0.006836607933044434, | |
0.006825183868408203, | |
0.006960288047790527, | |
0.006988096237182617, | |
0.006528192043304444, | |
0.006472352027893066, | |
0.006490208148956299, | |
0.006460927963256836, | |
0.006443615913391113, | |
0.006457183837890625, | |
0.006493023872375488, | |
0.006574975967407227, | |
0.006480319976806641, | |
0.006585440158843994, | |
0.006454815864562988, | |
0.006654431819915771, | |
0.0064934401512145995, | |
0.006576896190643311, | |
0.006463647842407227 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 150.74743520829404 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.17895696768023e-08, | |
"ram": 3.9008320842017834e-08, | |
"gpu": 1.7435161575049692e-07, | |
"total": 2.851495062693172e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3506932.2513766615 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 77, | |
"total": 0.4799323506355284, | |
"mean": 0.006232887670591281, | |
"stdev": 0.0002296644666336439, | |
"p50": 0.0061296639442443845, | |
"p90": 0.0065390590667724615, | |
"p95": 0.006801612663269042, | |
"p99": 0.007045038204193115, | |
"values": [ | |
0.006801407814025879, | |
0.006802432060241699, | |
0.007030784130096435, | |
0.007090176105499267, | |
0.006621183872222901, | |
0.006807551860809326, | |
0.0061296639442443845, | |
0.006112256050109863, | |
0.006280191898345947, | |
0.006100992202758789, | |
0.006094848155975342, | |
0.006118400096893311, | |
0.006136832237243653, | |
0.006210559844970703, | |
0.00613478422164917, | |
0.006145023822784424, | |
0.0061521921157836916, | |
0.006154240131378174, | |
0.006141952037811279, | |
0.006123519897460937, | |
0.006085631847381592, | |
0.0062228479385375976, | |
0.006110208034515381, | |
0.006076352119445801, | |
0.006089727878570556, | |
0.006176767826080322, | |
0.006108160018920898, | |
0.006148064136505127, | |
0.006116352081298828, | |
0.006077439785003662, | |
0.006103040218353272, | |
0.006168575763702393, | |
0.006130688190460205, | |
0.006168575763702393, | |
0.0061521921157836916, | |
0.0060631041526794435, | |
0.006109183788299561, | |
0.006093823909759521, | |
0.006107135772705078, | |
0.006110208034515381, | |
0.00611737585067749, | |
0.006077439785003662, | |
0.006107135772705078, | |
0.006110208034515381, | |
0.006077439785003662, | |
0.006053887844085694, | |
0.006086656093597412, | |
0.006181888103485108, | |
0.006091775894165039, | |
0.00608460807800293, | |
0.006288415908813476, | |
0.006455296039581298, | |
0.006523903846740723, | |
0.006486015796661377, | |
0.006520832061767578, | |
0.006458367824554443, | |
0.0064204797744750975, | |
0.006441984176635742, | |
0.0064440321922302245, | |
0.006412288188934326, | |
0.006562816143035889, | |
0.006561791896820069, | |
0.00611737585067749, | |
0.006090752124786377, | |
0.006108160018920898, | |
0.006079487800598145, | |
0.0060631041526794435, | |
0.0060661759376525876, | |
0.006088704109191895, | |
0.0061931519508361815, | |
0.006098944187164307, | |
0.006191103935241699, | |
0.006051839828491211, | |
0.006236159801483154, | |
0.006111231803894043, | |
0.006181888103485108, | |
0.006082560062408447 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 160.43927836503676 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |