IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
e493207 verified
raw
history blame
14.7 kB
{
"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": "4",
"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.82848,
"max_global_vram": 68702.69952,
"max_process_vram": 49078.575104,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"count": 1,
"total": 8.63442578125,
"mean": 8.63442578125,
"stdev": 0.0,
"p50": 8.63442578125,
"p90": 8.63442578125,
"p95": 8.63442578125,
"p99": 8.63442578125,
"values": [
8.63442578125
]
},
"throughput": null,
"energy": null,
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1249.112064,
"max_global_vram": 68702.69952,
"max_process_vram": 300816.359424,
"max_reserved": 725.614592,
"max_allocated": 513.035264
},
"latency": {
"unit": "s",
"count": 57,
"total": 0.509113034248352,
"mean": 0.008931807618392141,
"stdev": 0.00040634904076146026,
"p50": 0.008779176712036133,
"p90": 0.009335686874389649,
"p95": 0.00973843822479248,
"p99": 0.010460509643554687,
"values": [
0.010214532852172852,
0.009869254112243653,
0.009705734252929688,
0.009315654754638672,
0.009420775413513183,
0.009052294731140137,
0.00901597499847412,
0.009149736404418945,
0.009117415428161621,
0.009037416458129882,
0.009011655807495118,
0.0090466947555542,
0.009041255950927734,
0.009217095375061036,
0.008941255569458007,
0.008979175567626953,
0.008933575630187988,
0.00894829559326172,
0.009365735054016113,
0.010773571014404296,
0.008865415573120117,
0.008731656074523926,
0.008729256629943848,
0.008756616592407226,
0.008766377449035644,
0.00873517608642578,
0.008722376823425294,
0.00872109603881836,
0.008725577354431153,
0.00872797679901123,
0.008738216400146484,
0.008752776145935058,
0.00872365665435791,
0.008757097244262695,
0.008813096046447753,
0.008784936904907227,
0.008783656120300293,
0.008751816749572754,
0.008904295921325684,
0.008779176712036133,
0.00884157657623291,
0.008744775772094726,
0.008746696472167968,
0.008540777206420899,
0.008607657432556152,
0.00833357810974121,
0.008758695602416992,
0.008801257133483887,
0.008753417015075683,
0.008785575866699218,
0.008221258163452148,
0.008769256591796875,
0.008745737075805664,
0.008752296447753907,
0.008765735626220704,
0.008774056434631347,
0.00874333667755127
]
},
"throughput": {
"unit": "tokens/s",
"value": 223.91883988652566
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1249.112064,
"max_global_vram": 68702.69952,
"max_process_vram": 308694.30272,
"max_reserved": 725.614592,
"max_allocated": 513.259008
},
"latency": {
"unit": "s",
"count": 57,
"total": 0.5015845723152159,
"mean": 0.008799729338863442,
"stdev": 0.0022872221210563453,
"p50": 0.008308137893676758,
"p90": 0.008744296455383301,
"p95": 0.00928784713745117,
"p99": 0.020636072311401365,
"values": [
0.00940765380859375,
0.009257895469665527,
0.008881896018981934,
0.00883405590057373,
0.008555497169494629,
0.008419178009033202,
0.008583497047424317,
0.008518217086791992,
0.008432778358459472,
0.008684456825256348,
0.008487977027893067,
0.008555976867675782,
0.008477256774902344,
0.008536136627197266,
0.00851293659210205,
0.008308137893676758,
0.008366856575012207,
0.008660297393798828,
0.02025098419189453,
0.008653097152709961,
0.00827085781097412,
0.008215658187866211,
0.008421736717224121,
0.008247657775878907,
0.00826541805267334,
0.008467336654663087,
0.008228137969970703,
0.008238377571105958,
0.00825165843963623,
0.008280298233032227,
0.008301898002624512,
0.008276778221130371,
0.00826893711090088,
0.008276297569274902,
0.00838093662261963,
0.008401737213134766,
0.008239337921142578,
0.021126184463500976,
0.008418058395385742,
0.008315657615661621,
0.008243337631225586,
0.008238377571105958,
0.007867498874664307,
0.00795565891265869,
0.00790573787689209,
0.007965259075164795,
0.008355498313903809,
0.008297898292541505,
0.008528937339782714,
0.007931979179382324,
0.0080340576171875,
0.008286377906799317,
0.008282378196716308,
0.00829229736328125,
0.008272297859191894,
0.008259818077087403,
0.007589418888092041
]
},
"throughput": {
"unit": "tokens/s",
"value": 113.63985885151762
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 57,
"total": 0.45807045316696166,
"mean": 0.008036323739771256,
"stdev": 0.0015952115604974128,
"p50": 0.007782059192657471,
"p90": 0.008103690719604493,
"p95": 0.008317609405517578,
"p99": 0.013581128082275365,
"values": [
0.008675175666809082,
0.008561576843261719,
0.008256617546081544,
0.008187018394470214,
0.008003498077392578,
0.007874858856201173,
0.007974859237670898,
0.007959658145904542,
0.007877258777618409,
0.008105418205261231,
0.007909738063812255,
0.00797645902633667,
0.007922059059143066,
0.007975018978118897,
0.007939818859100342,
0.007782059192657471,
0.007866378784179687,
0.008052458763122558,
0.0198250675201416,
0.0081025390625,
0.007748619079589843,
0.007717420101165771,
0.007923819065093995,
0.007749578952789307,
0.00773901891708374,
0.00795357894897461,
0.0077215790748596195,
0.00773613977432251,
0.007742538928985596,
0.007753418922424316,
0.0077668590545654295,
0.007738379955291748,
0.007771978855133057,
0.007762379169464111,
0.007805418968200683,
0.00788749885559082,
0.0077385401725769045,
0.007724938869476318,
0.007886378765106202,
0.0078071789741516115,
0.007721098899841308,
0.007712139129638672,
0.007352621078491211,
0.007446539878845215,
0.007383019924163819,
0.007461900234222412,
0.007822699069976806,
0.007790859222412109,
0.00800989818572998,
0.007471660137176514,
0.007475979804992676,
0.007766219139099121,
0.007769099235534668,
0.007759978771209717,
0.007753899097442627,
0.007747499942779541,
0.007122540950775146
]
},
"throughput": {
"unit": "tokens/s",
"value": 124.43500689887136
},
"energy": null,
"efficiency": null
}
}
}