IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
bbc4a68
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.2.2+rocm5.7", | |
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", | |
"task": "text-generation", | |
"model": "openai-community/gpt2", | |
"library": "transformers", | |
"device": "cuda", | |
"device_ids": "0", | |
"seed": 42, | |
"inter_op_num_threads": null, | |
"intra_op_num_threads": null, | |
"hub_kwargs": { | |
"revision": "main", | |
"force_download": false, | |
"local_files_only": false, | |
"trust_remote_code": false | |
}, | |
"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": false, | |
"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", | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7763 64-Core Processor", | |
"cpu_count": 128, | |
"cpu_ram_mb": 1082015.236096, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.15.0-84-generic-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.12", | |
"gpu": [ | |
"Advanced Micro Devices, Inc. [AMD/ATI]" | |
], | |
"gpu_count": 1, | |
"gpu_vram_mb": 68702699520, | |
"optimum_benchmark_version": "0.2.0", | |
"optimum_benchmark_commit": "d7339efdbbcababd22ca2f563771622060764f8f", | |
"transformers_version": "4.40.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.30.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.27.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "0.9.16", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1051.938816, | |
"max_global_vram": 1118.43328, | |
"max_process_vram": 296981.233664, | |
"max_reserved": 725.614592, | |
"max_allocated": 512.832512 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 58, | |
"total": 0.5015918192863463, | |
"mean": 0.008648134815281835, | |
"stdev": 0.0008226014140951914, | |
"p50": 0.00842484474182129, | |
"p90": 0.009416696548461915, | |
"p95": 0.00972195177078247, | |
"p99": 0.011211014909744261, | |
"values": [ | |
0.01282506561279297, | |
0.009411320686340333, | |
0.009250680923461914, | |
0.009019001960754395, | |
0.008687163352966308, | |
0.008591644287109375, | |
0.008660444259643555, | |
0.008485565185546875, | |
0.008238526344299316, | |
0.008220766067504883, | |
0.008738042831420899, | |
0.009275481224060059, | |
0.009234202384948731, | |
0.009377880096435547, | |
0.009214521408081055, | |
0.009722358703613281, | |
0.009429240226745605, | |
0.009346680641174316, | |
0.009382841110229492, | |
0.009519960403442383, | |
0.009345881462097168, | |
0.009320441246032716, | |
0.009993397712707519, | |
0.009721879959106445, | |
0.009090361595153808, | |
0.00898844337463379, | |
0.009041241645812988, | |
0.00803516674041748, | |
0.008007165908813476, | |
0.008005085945129395, | |
0.008008926391601563, | |
0.008001886367797851, | |
0.007984446048736573, | |
0.008005887031555177, | |
0.008006366729736328, | |
0.00802220630645752, | |
0.007997406005859376, | |
0.007996606826782226, | |
0.008002845764160157, | |
0.008005406379699707, | |
0.007982526779174805, | |
0.007976605892181396, | |
0.008531004905700683, | |
0.008470684051513673, | |
0.009042041778564453, | |
0.00850012493133545, | |
0.008379005432128906, | |
0.008378523826599121, | |
0.00837308406829834, | |
0.007962206840515136, | |
0.007935966968536377, | |
0.007959325790405274, | |
0.007997567176818848, | |
0.007973886966705323, | |
0.007965726852416992, | |
0.007983006954193116, | |
0.007972926139831542, | |
0.007995166778564454 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 231.26373983738847 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1051.938816, | |
"max_global_vram": 1118.437376, | |
"max_process_vram": 293060.73088, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.056256 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 58, | |
"total": 0.5019423713684082, | |
"mean": 0.008654178816696691, | |
"stdev": 0.0005934022456231923, | |
"p50": 0.008503084659576415, | |
"p90": 0.009461640548706055, | |
"p95": 0.009505400276184083, | |
"p99": 0.00993514575958252, | |
"values": [ | |
0.009460440635681152, | |
0.00946444034576416, | |
0.008953401565551758, | |
0.00893340301513672, | |
0.008774043083190918, | |
0.00864332389831543, | |
0.008728122711181641, | |
0.008322525024414062, | |
0.008686042785644532, | |
0.008495163917541505, | |
0.009345081329345703, | |
0.009304120063781738, | |
0.0094481201171875, | |
0.009281400680541993, | |
0.009379640579223632, | |
0.009780758857727051, | |
0.009409560203552245, | |
0.009430199623107911, | |
0.009562520027160645, | |
0.009495320320129395, | |
0.009386040687561036, | |
0.009492119789123536, | |
0.010139798164367676, | |
0.009327320098876954, | |
0.009120442390441895, | |
0.009115481376647949, | |
0.008511005401611328, | |
0.008086525917053222, | |
0.008078685760498047, | |
0.008071966171264648, | |
0.008044607162475586, | |
0.008074525833129884, | |
0.008077885627746582, | |
0.008112285614013672, | |
0.00806092643737793, | |
0.00806540584564209, | |
0.008066686630249023, | |
0.00806540584564209, | |
0.0080974063873291, | |
0.008061567306518554, | |
0.008749082565307617, | |
0.008081405639648438, | |
0.008519804000854492, | |
0.008486043930053712, | |
0.008700604438781739, | |
0.008485083580017089, | |
0.00857116413116455, | |
0.008463805198669433, | |
0.008073726654052734, | |
0.008029086112976074, | |
0.008044766426086427, | |
0.008073566436767578, | |
0.00822828483581543, | |
0.008082526206970215, | |
0.00819084644317627, | |
0.008096766471862794, | |
0.008049566268920899, | |
0.008062524795532227 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 115.55111365051513 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 57, | |
"total": 0.9834577827453614, | |
"mean": 0.01725364531132213, | |
"stdev": 0.0011957110755613375, | |
"p50": 0.016933528900146485, | |
"p90": 0.01891960029602051, | |
"p95": 0.019134992599487304, | |
"p99": 0.019802957534790038, | |
"values": [ | |
0.018914480209350586, | |
0.018300403594970704, | |
0.018061843872070313, | |
0.017496246337890625, | |
0.01726536750793457, | |
0.017470645904541015, | |
0.016864088058471678, | |
0.016954647064208985, | |
0.016698650360107422, | |
0.018151443481445314, | |
0.018621999740600585, | |
0.01871352195739746, | |
0.018717519760131834, | |
0.018559602737426757, | |
0.01955655860900879, | |
0.01892728042602539, | |
0.01881447982788086, | |
0.018930320739746095, | |
0.019105840682983398, | |
0.018789201736450194, | |
0.018798320770263673, | |
0.02011655616760254, | |
0.01925160026550293, | |
0.018260883331298827, | |
0.01813384437561035, | |
0.017630165100097656, | |
0.016152891159057617, | |
0.01611561393737793, | |
0.01611049270629883, | |
0.016079612731933594, | |
0.01609465217590332, | |
0.016100412368774415, | |
0.016150171279907227, | |
0.016098812103271486, | |
0.01611673355102539, | |
0.016085691452026367, | |
0.01609849166870117, | |
0.01612665367126465, | |
0.01610057258605957, | |
0.016752729415893553, | |
0.016089212417602538, | |
0.017079927444458007, | |
0.016949047088623048, | |
0.017839923858642578, | |
0.01700920867919922, | |
0.016933528900146485, | |
0.01688105010986328, | |
0.016522010803222655, | |
0.01601801300048828, | |
0.016012252807617186, | |
0.01605817222595215, | |
0.016258331298828126, | |
0.01608649253845215, | |
0.016186492919921875, | |
0.01610953140258789, | |
0.016048572540283204, | |
0.016086971282958985 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 57.958766507375884 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |