IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
d6b25f9
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", | |
"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": 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 7643 48-Core Processor", | |
"cpu_count": 96, | |
"cpu_ram_mb": 1082028.982272, | |
"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.3.1", | |
"optimum_benchmark_commit": "e185b4a299427f88d515b3c18d3c0c0dc8e91cd8", | |
"transformers_version": "4.43.3", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.29.2", | |
"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": 901.894144, | |
"max_global_vram": 1011.728384, | |
"max_process_vram": 42447.331328, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 6.87711767578125, | |
"mean": 6.87711767578125, | |
"stdev": 0.0, | |
"p50": 6.87711767578125, | |
"p90": 6.87711767578125, | |
"p95": 6.87711767578125, | |
"p99": 6.87711767578125, | |
"values": [ | |
6.87711767578125 | |
] | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1056.022528, | |
"max_global_vram": 1104.433152, | |
"max_process_vram": 271903.854592, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035264 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 67, | |
"total": 0.5114085235595703, | |
"mean": 0.007632963038202544, | |
"stdev": 0.0001238724360628962, | |
"p50": 0.007590466976165771, | |
"p90": 0.007770532894134522, | |
"p95": 0.007903381872177125, | |
"p99": 0.008090196857452393, | |
"values": [ | |
0.007717507839202881, | |
0.007795108795166016, | |
0.007620866775512695, | |
0.007603907108306885, | |
0.007655587196350098, | |
0.007675268173217773, | |
0.007848710060119628, | |
0.0076346278190612795, | |
0.0075967078208923336, | |
0.007622626781463623, | |
0.007717029094696045, | |
0.007568546772003174, | |
0.007561986923217774, | |
0.007754148960113526, | |
0.007581986904144287, | |
0.007572866916656494, | |
0.007612226963043213, | |
0.007579747200012207, | |
0.0075883870124816896, | |
0.00758294677734375, | |
0.00756438684463501, | |
0.007626468181610107, | |
0.007606466770172119, | |
0.007613186836242676, | |
0.008168553352355957, | |
0.0075866270065307615, | |
0.007595907211303711, | |
0.007584227085113525, | |
0.007618466854095459, | |
0.007599906921386719, | |
0.0076074271202087405, | |
0.007589346885681152, | |
0.007579906940460205, | |
0.00758294677734375, | |
0.007619266986846924, | |
0.0076031069755554195, | |
0.007596067905426026, | |
0.007569346904754639, | |
0.007587906837463379, | |
0.007589346885681152, | |
0.007572707176208496, | |
0.007579586982727051, | |
0.007565667152404785, | |
0.007590466976165771, | |
0.007909190177917481, | |
0.00804983139038086, | |
0.007889829158782958, | |
0.007967590808868408, | |
0.007676228046417237, | |
0.007701667785644531, | |
0.007561507225036621, | |
0.007557186126708984, | |
0.007537507057189942, | |
0.007539106845855713, | |
0.007621188163757325, | |
0.00752342700958252, | |
0.007507586002349854, | |
0.007544226169586181, | |
0.007546146869659424, | |
0.007706949234008789, | |
0.007555747032165527, | |
0.007649668216705322, | |
0.007562306880950928, | |
0.007516386032104493, | |
0.007542626857757568, | |
0.007528865814208984, | |
0.007525667190551758 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 262.0214443578613 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1056.305152, | |
"max_global_vram": 1107.509248, | |
"max_process_vram": 253932.527616, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.259008 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 67, | |
"total": 0.4941504497528076, | |
"mean": 0.0073753798470568305, | |
"stdev": 0.0012362540445974577, | |
"p50": 0.007221343994140625, | |
"p90": 0.00730777702331543, | |
"p95": 0.007366832637786865, | |
"p99": 0.01079932097435001, | |
"values": [ | |
0.00729094409942627, | |
0.007332865238189697, | |
0.007175903797149658, | |
0.0072453441619873046, | |
0.007191904067993164, | |
0.0073008651733398435, | |
0.007194142818450927, | |
0.007244063854217529, | |
0.0072501440048217776, | |
0.007290464878082275, | |
0.007237343788146972, | |
0.007207903861999512, | |
0.007182463169097901, | |
0.007151263236999512, | |
0.007239903926849365, | |
0.007287903785705567, | |
0.007221343994140625, | |
0.007196224212646484, | |
0.007196544170379638, | |
0.007195263862609863, | |
0.007223104000091553, | |
0.007223904132843018, | |
0.007225344181060791, | |
0.017407194137573242, | |
0.007334464073181153, | |
0.007222303867340088, | |
0.0072360639572143556, | |
0.007227104187011718, | |
0.007198463916778564, | |
0.007228223800659179, | |
0.007201504230499267, | |
0.007209184169769287, | |
0.007185344219207764, | |
0.0072885451316833496, | |
0.007175583839416504, | |
0.007216383934020996, | |
0.00724294376373291, | |
0.007231584072113037, | |
0.007243743896484375, | |
0.007229663848876953, | |
0.007225664138793946, | |
0.0071696629524230955, | |
0.007270143985748291, | |
0.007206463813781738, | |
0.007395265102386475, | |
0.007380704879760742, | |
0.007384545803070068, | |
0.007233823776245117, | |
0.007221183776855469, | |
0.007318144798278809, | |
0.0071483831405639645, | |
0.007265985012054443, | |
0.007177503108978272, | |
0.007209983825683594, | |
0.007200862884521484, | |
0.0071501431465148925, | |
0.007178782939910889, | |
0.00715174388885498, | |
0.00715910291671753, | |
0.007121182918548584, | |
0.00725494384765625, | |
0.007103262901306152, | |
0.007184863090515137, | |
0.007199103832244873, | |
0.007173502922058105, | |
0.007125503063201905, | |
0.00715654182434082 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 135.5862370124643 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 67, | |
"total": 0.4595199003219605, | |
"mean": 0.0068585059749546335, | |
"stdev": 0.001245283610020041, | |
"p50": 0.006694939136505127, | |
"p90": 0.0067879638671875, | |
"p95": 0.006879004764556885, | |
"p99": 0.010345166597366368, | |
"values": [ | |
0.0067288589477539065, | |
0.006806139945983887, | |
0.006662939071655273, | |
0.00673222017288208, | |
0.006683740139007568, | |
0.006755099773406982, | |
0.006672218799591064, | |
0.006710938930511475, | |
0.006706939220428467, | |
0.006725820064544677, | |
0.006713658809661865, | |
0.006683259010314941, | |
0.0066738190650939945, | |
0.00667349910736084, | |
0.00669477891921997, | |
0.006774940013885498, | |
0.006708378791809082, | |
0.006686298847198486, | |
0.006681338787078857, | |
0.006700540065765381, | |
0.006715740203857422, | |
0.00671013879776001, | |
0.006698299884796142, | |
0.016961910247802733, | |
0.006792379856109619, | |
0.00667733907699585, | |
0.006693658828735352, | |
0.006706618785858155, | |
0.006676058769226074, | |
0.00669301986694336, | |
0.006694939136505127, | |
0.006670458793640137, | |
0.006677659034729004, | |
0.006756060123443604, | |
0.006659258842468261, | |
0.00670005989074707, | |
0.006715738773345947, | |
0.006708378791809082, | |
0.006698299884796142, | |
0.006698459148406982, | |
0.006692539215087891, | |
0.006661017894744873, | |
0.006731420040130615, | |
0.006704858779907227, | |
0.006936541080474853, | |
0.006905021190643311, | |
0.006936381816864014, | |
0.006785019874572754, | |
0.006705978870391846, | |
0.006818299770355225, | |
0.006640058994293213, | |
0.006758780002593994, | |
0.006660217761993408, | |
0.006679099082946777, | |
0.0066885390281677245, | |
0.0066382989883422856, | |
0.006641819000244141, | |
0.006641819000244141, | |
0.006636377811431885, | |
0.006624217987060547, | |
0.00671061897277832, | |
0.0066147780418395995, | |
0.0066486988067626955, | |
0.006682138919830322, | |
0.0066306180953979495, | |
0.00662709903717041, | |
0.006639739036560058 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 145.8043491762963 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |