
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
6acd333
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.0+cu124", | |
"_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": true, | |
"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 7R32", | |
"cpu_count": 16, | |
"cpu_ram_mb": 66697.25696, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.220-209.869.amzn2.x86_64-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.12", | |
"gpu": [ | |
"NVIDIA A10G" | |
], | |
"gpu_count": 1, | |
"gpu_vram_mb": 24146608128, | |
"optimum_benchmark_version": "0.4.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.44.0", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.0", | |
"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": 790.142976, | |
"max_global_vram": 1355.28448, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 7.429435546875, | |
"mean": 7.429435546875, | |
"stdev": 0.0, | |
"p50": 7.429435546875, | |
"p90": 7.429435546875, | |
"p95": 7.429435546875, | |
"p99": 7.429435546875, | |
"values": [ | |
7.429435546875 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.950267402780909e-07, | |
"ram": 5.296566885626695e-07, | |
"gpu": 1.6719457819999901e-06, | |
"total": 3.1966292108407504e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1221.922816, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 72, | |
"total": 0.49190678405761695, | |
"mean": 0.006832038667466906, | |
"stdev": 0.0002919229955336385, | |
"p50": 0.006888176202774048, | |
"p90": 0.0070991582870483395, | |
"p95": 0.007142892861366272, | |
"p99": 0.007546456179618838, | |
"values": [ | |
0.00716867208480835, | |
0.007078879833221435, | |
0.007062431812286377, | |
0.00694755220413208, | |
0.007067808151245117, | |
0.007420767784118652, | |
0.006930880069732666, | |
0.007091296195983887, | |
0.00706108808517456, | |
0.006886112213134766, | |
0.0071010560989379886, | |
0.007008287906646728, | |
0.007032608032226563, | |
0.006990240097045898, | |
0.0071129918098449705, | |
0.006817599773406982, | |
0.006877344131469726, | |
0.006936480045318603, | |
0.00689024019241333, | |
0.007139552116394043, | |
0.007082528114318848, | |
0.0069526081085205076, | |
0.007058176040649414, | |
0.006989855766296387, | |
0.007003232002258301, | |
0.006862304210662842, | |
0.006844895839691162, | |
0.007100031852722168, | |
0.006905759811401367, | |
0.006926496028900147, | |
0.0069369921684265135, | |
0.007062623977661133, | |
0.0071469759941101075, | |
0.007047200202941894, | |
0.006972767829895019, | |
0.0068198080062866215, | |
0.0068496642112731935, | |
0.006839231967926025, | |
0.00674345588684082, | |
0.006639999866485596, | |
0.006428415775299072, | |
0.006856256008148194, | |
0.007044703960418701, | |
0.007070432186126709, | |
0.006934271812438965, | |
0.006815552234649658, | |
0.0068553280830383305, | |
0.006946688175201416, | |
0.006727583885192871, | |
0.006916448116302491, | |
0.006427040100097656, | |
0.006374527931213379, | |
0.006363391876220703, | |
0.006363552093505859, | |
0.006483456134796142, | |
0.006342048168182373, | |
0.006379903793334961, | |
0.006361599922180176, | |
0.006594751834869385, | |
0.006819039821624756, | |
0.006713247776031494, | |
0.006694272041320801, | |
0.007854176044464112, | |
0.00669593620300293, | |
0.006608416080474853, | |
0.006637663841247559, | |
0.00637724781036377, | |
0.00636787223815918, | |
0.006362783908843994, | |
0.00638105583190918, | |
0.006369855880737305, | |
0.006332767963409424 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 292.738390009952 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.984173324478281e-08, | |
"ram": 4.352172443569792e-08, | |
"gpu": 1.55531444335569e-07, | |
"total": 2.7889490201604976e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7171160.123554014 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1240.33024, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 72, | |
"total": 0.5146243844032289, | |
"mean": 0.007147560894489289, | |
"stdev": 0.00028724955981280126, | |
"p50": 0.007244240045547485, | |
"p90": 0.007421756839752197, | |
"p95": 0.007455390405654907, | |
"p99": 0.007634048304557801, | |
"values": [ | |
0.007377471923828125, | |
0.007395199775695801, | |
0.007354432106018066, | |
0.007359424114227295, | |
0.007331935882568359, | |
0.007599999904632568, | |
0.007359456062316894, | |
0.0074039998054504395, | |
0.007408639907836914, | |
0.007415071964263916, | |
0.007400320053100586, | |
0.00738431978225708, | |
0.0073473920822143554, | |
0.0073136320114135745, | |
0.007447135925292969, | |
0.007195231914520264, | |
0.007261695861816406, | |
0.007328288078308105, | |
0.007376832008361816, | |
0.007421440124511719, | |
0.007421792030334473, | |
0.007355040073394776, | |
0.007443615913391113, | |
0.007360608100891113, | |
0.007224095821380615, | |
0.007300672054290772, | |
0.0073976640701293945, | |
0.007232128143310547, | |
0.0072687997817993165, | |
0.007247776031494141, | |
0.007261727809906006, | |
0.007459455966949463, | |
0.007452064037322998, | |
0.007339807987213134, | |
0.007475520133972168, | |
0.00724070405960083, | |
0.0071272320747375485, | |
0.006894271850585937, | |
0.00722102403640747, | |
0.006707871913909912, | |
0.0069419841766357425, | |
0.007322527885437012, | |
0.007308063983917236, | |
0.007717408180236816, | |
0.007080095767974854, | |
0.007036191940307617, | |
0.007195871829986572, | |
0.007119647979736328, | |
0.007000256061553955, | |
0.007013535976409912, | |
0.006712096214294434, | |
0.006667359828948975, | |
0.006639359951019287, | |
0.00662659215927124, | |
0.006697440147399902, | |
0.006670432090759277, | |
0.006664095878601074, | |
0.007042816162109375, | |
0.0070067839622497555, | |
0.007294112205505371, | |
0.0071419839859008785, | |
0.007040480136871338, | |
0.0070208640098571775, | |
0.006973311901092529, | |
0.006969888210296631, | |
0.006934304237365723, | |
0.006683743953704834, | |
0.006671040058135986, | |
0.0066334400177001955, | |
0.006632736206054687, | |
0.006664512157440186, | |
0.006587615966796875 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 139.90786713982274 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.633648789518297e-08, | |
"ram": 4.157407280918358e-08, | |
"gpu": 1.4554383259949974e-07, | |
"total": 2.634543933038661e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3795723.379137612 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 72, | |
"total": 0.48105475234985334, | |
"mean": 0.006681316004859076, | |
"stdev": 0.0002359734948359348, | |
"p50": 0.0067517440319061275, | |
"p90": 0.006913184070587158, | |
"p95": 0.0069332479715347286, | |
"p99": 0.007069192128181459, | |
"values": [ | |
0.0068689918518066405, | |
0.006879231929779053, | |
0.006846464157104492, | |
0.006849535942077637, | |
0.0068280320167541505, | |
0.007015423774719238, | |
0.006845439910888672, | |
0.006882304191589355, | |
0.006914112091064453, | |
0.0068915200233459475, | |
0.006879231929779053, | |
0.006850560188293457, | |
0.0068392958641052244, | |
0.0068055038452148435, | |
0.006941696166992187, | |
0.006681600093841553, | |
0.0067707200050354, | |
0.006813695907592773, | |
0.006847487926483154, | |
0.006904831886291504, | |
0.006871039867401123, | |
0.006855679988861084, | |
0.006923264026641846, | |
0.006847487926483154, | |
0.006744063854217529, | |
0.006758399963378906, | |
0.006862847805023193, | |
0.006748159885406494, | |
0.0067686400413513184, | |
0.00674508810043335, | |
0.0067573761940002445, | |
0.00692633581161499, | |
0.006922239780426025, | |
0.0068321280479431154, | |
0.006973440170288086, | |
0.00672870397567749, | |
0.006656000137329102, | |
0.006468607902526856, | |
0.006725632190704346, | |
0.0063201279640197755, | |
0.006471680164337158, | |
0.006849535942077637, | |
0.006836160182952881, | |
0.007200831890106201, | |
0.006657023906707763, | |
0.006614016056060791, | |
0.006755328178405762, | |
0.006718463897705078, | |
0.006605823993682861, | |
0.006606847763061524, | |
0.006319104194641113, | |
0.006276095867156982, | |
0.006255616188049316, | |
0.006237184047698975, | |
0.006302720069885254, | |
0.006277120113372803, | |
0.006277120113372803, | |
0.006636544227600098, | |
0.0066109437942504885, | |
0.0067983360290527345, | |
0.006737919807434082, | |
0.00653926420211792, | |
0.006620160102844238, | |
0.00657919979095459, | |
0.006556672096252441, | |
0.006540287971496582, | |
0.006302656173706055, | |
0.0062791681289672855, | |
0.006251520156860352, | |
0.006252543926239014, | |
0.0062863359451293946, | |
0.006211584091186524 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 149.6711125881094 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |