![IlyasMoutawwakil's picture](https://cdn-avatars.huggingface.co/v1/production/uploads/1642598610696-noauth.jpeg)
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
e3b1d08
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.1+rocm5.7", | |
"_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": "5", | |
"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": 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": "warn", | |
"numactl": false, | |
"numactl_kwargs": {}, | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7763 64-Core Processor", | |
"cpu_count": 128, | |
"cpu_ram_mb": 1082015.256576, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.15.0-101-generic-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.12", | |
"gpu": [ | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]" | |
], | |
"gpu_count": 8, | |
"gpu_vram_mb": 549621596160, | |
"optimum_benchmark_version": "0.4.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.34.2", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.3", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.9", | |
"timm_commit": null, | |
"peft_version": "0.12.0", | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1079.508992, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 49917.988864, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 8.3108232421875, | |
"mean": 8.3108232421875, | |
"stdev": 0.0, | |
"p50": 8.3108232421875, | |
"p90": 8.3108232421875, | |
"p95": 8.3108232421875, | |
"p99": 8.3108232421875, | |
"values": [ | |
8.3108232421875 | |
] | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1248.886784, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 296548.22912, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035264 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 62, | |
"total": 0.5173871636390687, | |
"mean": 0.008344954252243042, | |
"stdev": 0.0004556396042397186, | |
"p50": 0.008249181270599365, | |
"p90": 0.008789196872711182, | |
"p95": 0.008858251667022704, | |
"p99": 0.009365982666015625, | |
"values": [ | |
0.0090247802734375, | |
0.008401580810546875, | |
0.008387181282043457, | |
0.008100461959838868, | |
0.008173102378845215, | |
0.008137421607971191, | |
0.007796623229980469, | |
0.007817902088165284, | |
0.007755183219909668, | |
0.007810543060302735, | |
0.007751502990722656, | |
0.0077219028472900395, | |
0.007717261791229248, | |
0.00792286205291748, | |
0.007830222129821778, | |
0.007787182807922364, | |
0.007805262088775635, | |
0.009899658203125, | |
0.008277741432189942, | |
0.007982542037963867, | |
0.007999661922454835, | |
0.008023021697998046, | |
0.008169421195983887, | |
0.008006061553955078, | |
0.008137262344360352, | |
0.007757902145385742, | |
0.007908301830291748, | |
0.007895822048187257, | |
0.008106382369995117, | |
0.008049101829528808, | |
0.008088301658630372, | |
0.008788620948791504, | |
0.008589580535888671, | |
0.008220621109008789, | |
0.007858542919158936, | |
0.00875197982788086, | |
0.008792140960693359, | |
0.008789260864257813, | |
0.0088599796295166, | |
0.008744621276855468, | |
0.008775020599365234, | |
0.008756621360778809, | |
0.008770219802856445, | |
0.008759340286254884, | |
0.008752140998840332, | |
0.008877420425415039, | |
0.008755180358886719, | |
0.008720460891723633, | |
0.008749740600585938, | |
0.008779179573059083, | |
0.008767499923706054, | |
0.008762380599975587, | |
0.008641901016235352, | |
0.008701260566711427, | |
0.008825420379638672, | |
0.008281742095947266, | |
0.00805438232421875, | |
0.008118861198425293, | |
0.008782380104064942, | |
0.008766221046447755, | |
0.008556620597839355, | |
0.007795661926269531 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 239.66578360359728 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1248.886784, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 277136.666624, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.259008 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 62, | |
"total": 0.4950654497146607, | |
"mean": 0.007984926608300977, | |
"stdev": 0.0016965334377553013, | |
"p50": 0.007742382526397705, | |
"p90": 0.008287645149230957, | |
"p95": 0.008361620950698851, | |
"p99": 0.013245571508407598, | |
"values": [ | |
0.007867181777954101, | |
0.00773054313659668, | |
0.007573742866516114, | |
0.007295342922210693, | |
0.0073547039031982425, | |
0.007154704093933106, | |
0.007110544204711914, | |
0.0071987037658691405, | |
0.007140624046325684, | |
0.007348783016204834, | |
0.007127024173736572, | |
0.007073264122009277, | |
0.007048785209655762, | |
0.00714734411239624, | |
0.007061903953552246, | |
0.007123663902282715, | |
0.0072745437622070315, | |
0.008364460945129394, | |
0.007851502895355224, | |
0.007583343029022217, | |
0.007595023155212402, | |
0.0076033430099487305, | |
0.007675182819366455, | |
0.007572943210601806, | |
0.007527983188629151, | |
0.00749294376373291, | |
0.007539982795715332, | |
0.00743342399597168, | |
0.007312784194946289, | |
0.00787438201904297, | |
0.008238061904907227, | |
0.008250381469726563, | |
0.00764206314086914, | |
0.0076126232147216795, | |
0.00779406213760376, | |
0.008391502380371094, | |
0.008216461181640626, | |
0.02077627182006836, | |
0.008256941795349122, | |
0.008237421035766601, | |
0.008238381385803222, | |
0.00827342128753662, | |
0.008253421783447266, | |
0.008252942085266113, | |
0.00828878116607666, | |
0.0082745418548584, | |
0.008249422073364258, | |
0.008247820854187012, | |
0.008430861473083496, | |
0.008245902061462402, | |
0.008277100563049316, | |
0.008225581169128419, | |
0.007310863018035889, | |
0.008307661056518555, | |
0.008043822288513183, | |
0.00775422191619873, | |
0.00783694314956665, | |
0.008266061782836913, | |
0.008277420997619628, | |
0.00829918098449707, | |
0.0076675028800964355, | |
0.007569101810455323 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 125.23596634694414 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 62, | |
"total": 0.46556503582000736, | |
"mean": 0.00750911348096786, | |
"stdev": 0.0016761925183944298, | |
"p50": 0.007232783555984498, | |
"p90": 0.007772814846038818, | |
"p95": 0.007880358958244323, | |
"p99": 0.012703801651000983, | |
"values": [ | |
0.007323022842407227, | |
0.007211664199829102, | |
0.007098063945770263, | |
0.006875823974609375, | |
0.006917745113372803, | |
0.006754865169525146, | |
0.006720624923706055, | |
0.006812465190887451, | |
0.006744304180145264, | |
0.006948304176330566, | |
0.006739345073699951, | |
0.006679184913635254, | |
0.006669266223907471, | |
0.006744464874267578, | |
0.006664305210113525, | |
0.006729104995727539, | |
0.0068769450187683104, | |
0.007898062229156495, | |
0.00738366413116455, | |
0.007138063907623291, | |
0.007134384155273438, | |
0.007154704093933106, | |
0.00718990421295166, | |
0.007125743865966797, | |
0.007067823886871338, | |
0.007031505107879639, | |
0.007039184093475342, | |
0.006971825122833252, | |
0.006863345146179199, | |
0.00741774320602417, | |
0.007725422859191895, | |
0.007738862037658691, | |
0.007142704010009765, | |
0.007121424198150635, | |
0.007296782970428467, | |
0.007884943008422851, | |
0.007722861766815185, | |
0.020213714599609377, | |
0.007751822948455811, | |
0.007747343063354492, | |
0.00772750186920166, | |
0.007749581813812256, | |
0.007741423130035401, | |
0.007737742900848389, | |
0.007776462078094483, | |
0.007751983165740967, | |
0.007744623184204102, | |
0.007750702857971191, | |
0.007902381896972656, | |
0.007744143009185791, | |
0.007765902042388916, | |
0.007718381881713868, | |
0.0068459038734436034, | |
0.007793262004852295, | |
0.007527342796325684, | |
0.007253902912139893, | |
0.007318384170532226, | |
0.007764782905578613, | |
0.007773582935333252, | |
0.007751341819763184, | |
0.007121744155883789, | |
0.007032623767852783 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 133.17151252734945 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |