IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
18cef37
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.1+rocm6.1", | |
"_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": "error", | |
"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.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.9", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1389.285376, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 7.7990703125, | |
"mean": 7.7990703125, | |
"stdev": 0.0, | |
"p50": 7.7990703125, | |
"p90": 7.7990703125, | |
"p95": 7.7990703125, | |
"p99": 7.7990703125, | |
"values": [ | |
7.7990703125 | |
] | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1548.218368, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035264 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 66, | |
"total": 0.4946079893112182, | |
"mean": 0.007494060444109368, | |
"stdev": 0.0018781874484964927, | |
"p50": 0.006965174913406372, | |
"p90": 0.007824452400207519, | |
"p95": 0.008003251314163209, | |
"p99": 0.01784355936050415, | |
"values": [ | |
0.008036291122436524, | |
0.007904131889343262, | |
0.007487173080444336, | |
0.0073684539794921875, | |
0.007262214183807373, | |
0.007105414867401123, | |
0.0070586948394775395, | |
0.007097095012664795, | |
0.007106854915618897, | |
0.0071418948173522945, | |
0.007055974960327148, | |
0.007037415027618408, | |
0.007067655086517334, | |
0.007121734142303467, | |
0.00751805305480957, | |
0.007400293827056884, | |
0.007358694076538086, | |
0.007485572814941406, | |
0.009436285972595215, | |
0.0074681339263916015, | |
0.006958374977111817, | |
0.007253734111785889, | |
0.0069542150497436525, | |
0.006916296005249023, | |
0.006923655986785889, | |
0.00694125509262085, | |
0.0069449348449707035, | |
0.006932455062866211, | |
0.006925254821777344, | |
0.006923655033111572, | |
0.006907495021820068, | |
0.0070556550025939946, | |
0.007138214111328125, | |
0.006958215236663818, | |
0.006938694953918457, | |
0.006971654891967774, | |
0.006928616046905518, | |
0.006921414852142334, | |
0.006916775226593018, | |
0.00691773509979248, | |
0.006920454978942871, | |
0.00690525484085083, | |
0.006906694889068603, | |
0.006921414852142334, | |
0.006925895214080811, | |
0.0069260549545288085, | |
0.017928735733032226, | |
0.007059814929962158, | |
0.006949735164642334, | |
0.006964775085449218, | |
0.00690253496170044, | |
0.006941094875335694, | |
0.006962214946746826, | |
0.006965254783630371, | |
0.00695437479019165, | |
0.0069585351943969725, | |
0.006965095043182373, | |
0.0069511752128601076, | |
0.006950854778289795, | |
0.0069468550682067875, | |
0.007790532112121582, | |
0.007857892036437988, | |
0.007791012763977051, | |
0.007863172054290771, | |
0.01779769515991211, | |
0.007754531860351563 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 266.8780182540535 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1548.361728, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.259008 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 66, | |
"total": 0.5037967581748964, | |
"mean": 0.007633284214771155, | |
"stdev": 0.001375390848345297, | |
"p50": 0.007325093984603882, | |
"p90": 0.007937171459197999, | |
"p95": 0.00817033052444458, | |
"p99": 0.012096244764327947, | |
"values": [ | |
0.008196770668029785, | |
0.008088770866394044, | |
0.007736453056335449, | |
0.0075033330917358395, | |
0.007461573123931885, | |
0.0073746929168701176, | |
0.007365893840789795, | |
0.007417094230651855, | |
0.007416132926940918, | |
0.007591652870178223, | |
0.007364774227142334, | |
0.007420133113861084, | |
0.007430053234100341, | |
0.007649892807006836, | |
0.007726692199707032, | |
0.007722211837768555, | |
0.0076874918937683105, | |
0.008667489051818848, | |
0.007710372924804688, | |
0.0072742137908935545, | |
0.007272453784942627, | |
0.007393572807312012, | |
0.007429254055023193, | |
0.00729789400100708, | |
0.007275814056396484, | |
0.007293893814086914, | |
0.007247814178466797, | |
0.007243974208831787, | |
0.0072854142189025875, | |
0.007282693862915039, | |
0.018463933944702148, | |
0.007269254207611084, | |
0.0072351741790771485, | |
0.007278374195098877, | |
0.007257413864135742, | |
0.007422694206237793, | |
0.007270693778991699, | |
0.007266054153442383, | |
0.0072498941421508785, | |
0.007297733783721924, | |
0.0073238139152526855, | |
0.007288774013519287, | |
0.007275333881378174, | |
0.007310373783111572, | |
0.007301253795623779, | |
0.007282534122467041, | |
0.0074372529983520504, | |
0.007244294166564942, | |
0.007407652854919434, | |
0.00732797384262085, | |
0.007284614086151123, | |
0.0072735738754272465, | |
0.007284294128417969, | |
0.007286694049835205, | |
0.007326374053955078, | |
0.0072780542373657225, | |
0.007311974048614502, | |
0.0072644538879394534, | |
0.007247653961181641, | |
0.007286533832550048, | |
0.008150530815124511, | |
0.007783973217010498, | |
0.00817693042755127, | |
0.00793261194229126, | |
0.007941730976104736, | |
0.007927811145782471 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 131.00520979749473 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 66, | |
"total": 0.469862313747406, | |
"mean": 0.007119125965869789, | |
"stdev": 0.0013717946858332658, | |
"p50": 0.006818696022033692, | |
"p90": 0.007438772916793823, | |
"p95": 0.007550413012504578, | |
"p99": 0.011283471274375857, | |
"values": [ | |
0.007563652992248535, | |
0.007510693073272705, | |
0.00718093490600586, | |
0.006971654891967774, | |
0.006956775188446045, | |
0.0068642950057983395, | |
0.006879495143890381, | |
0.006914855003356934, | |
0.006915655136108399, | |
0.007097733974456787, | |
0.006862055778503418, | |
0.006922695159912109, | |
0.006919334888458252, | |
0.007133894920349121, | |
0.007217733860015869, | |
0.0072124538421630855, | |
0.007126694202423096, | |
0.00718525505065918, | |
0.007184294223785401, | |
0.006808615207672119, | |
0.006803174972534179, | |
0.00688941478729248, | |
0.006910854816436767, | |
0.006832294940948487, | |
0.00678509521484375, | |
0.006795334815979004, | |
0.006765254974365234, | |
0.006772136211395264, | |
0.006792136192321777, | |
0.006766536235809326, | |
0.018005695343017578, | |
0.006770215034484863, | |
0.006767176151275635, | |
0.006797575950622558, | |
0.0067956562042236325, | |
0.006921734809875488, | |
0.006764134883880615, | |
0.006767015933990478, | |
0.006752776145935059, | |
0.00680461597442627, | |
0.006810696125030518, | |
0.006801896095275879, | |
0.006780295848846435, | |
0.006815815925598144, | |
0.006801735877990722, | |
0.0067876558303833, | |
0.006920935153961182, | |
0.00677293586730957, | |
0.006926215171813964, | |
0.00681501579284668, | |
0.0067937359809875485, | |
0.0067745361328125, | |
0.006808135986328125, | |
0.006802855968475342, | |
0.006821576118469238, | |
0.0068054161071777345, | |
0.006808294773101807, | |
0.006800455093383789, | |
0.006773574829101563, | |
0.006793896198272705, | |
0.007634692192077637, | |
0.007324453830718994, | |
0.007663812160491943, | |
0.0074585328102111815, | |
0.0074225330352783205, | |
0.007455012798309326 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 140.46668155531415 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |