IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
26cd1b5 verified
raw
history blame
17.1 kB
{
"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.261056,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.223-212.873.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.2",
"transformers_commit": null,
"accelerate_version": "0.33.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": 791.089152,
"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.4093525390625,
"mean": 7.4093525390625,
"stdev": 0.0,
"p50": 7.4093525390625,
"p90": 7.4093525390625,
"p95": 7.4093525390625,
"p99": 7.4093525390625,
"values": [
7.4093525390625
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 9.908616458336183e-07,
"ram": 5.274479883667631e-07,
"gpu": 1.8416681399999624e-06,
"total": 3.3599777742003437e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1229.037568,
"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.48764419364929207,
"mean": 0.0067728360229068335,
"stdev": 0.00022990204812414509,
"p50": 0.00676310396194458,
"p90": 0.006923302221298218,
"p95": 0.0069954352378845215,
"p99": 0.0074770704650878985,
"values": [
0.00831100845336914,
0.006655712127685547,
0.006696095943450928,
0.006523935794830322,
0.006509696006774902,
0.006492256164550781,
0.00685811185836792,
0.006771999835968018,
0.006797120094299316,
0.006827904224395752,
0.006818336009979248,
0.00676416015625,
0.0067636480331420895,
0.006860991954803467,
0.006782656192779541,
0.006761568069458008,
0.006800000190734863,
0.0067235522270202635,
0.006829279899597168,
0.006755839824676513,
0.006619391918182373,
0.006795584201812744,
0.006755167961120605,
0.006740575790405274,
0.006919616222381591,
0.0067452797889709475,
0.006799104213714599,
0.006734816074371338,
0.006486176013946533,
0.006468095779418945,
0.006453375816345214,
0.006485983848571777,
0.006637728214263916,
0.0064644479751586915,
0.006480512142181397,
0.006476992130279541,
0.00694649600982666,
0.006805471897125244,
0.006788864135742188,
0.00708896017074585,
0.006744863986968994,
0.0067131838798522945,
0.0067133760452270505,
0.0067272639274597165,
0.006992800235748291,
0.00685097599029541,
0.006906527996063233,
0.0067636799812316895,
0.006765920162200928,
0.007136447906494141,
0.00679417610168457,
0.006759391784667969,
0.006771935939788819,
0.006864927768707276,
0.006998655796051026,
0.0067067198753356936,
0.006953824043273926,
0.006737311840057373,
0.006764448165893554,
0.006717023849487305,
0.006731808185577393,
0.006923711776733398,
0.006767072200775146,
0.00676255989074707,
0.006732672214508057,
0.006734240055084229,
0.006855616092681885,
0.006733088016510009,
0.00676800012588501,
0.006743360042572022,
0.006782368183135986,
0.006729728221893311
]
},
"throughput": {
"unit": "tokens/s",
"value": 295.2972718128232
},
"energy": {
"unit": "kWh",
"cpu": 8.04325881756766e-08,
"ram": 4.3977627816979294e-08,
"gpu": 1.6890591590540646e-07,
"total": 2.933161318980623e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 6818581.6683791205
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1247.715328,
"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.51248530960083,
"mean": 0.007117851522233751,
"stdev": 0.00015974061801550825,
"p50": 0.007109983921051026,
"p90": 0.007317052936553955,
"p95": 0.007408366394042969,
"p99": 0.007547311000823975,
"values": [
0.007184000015258789,
0.007007743835449219,
0.006821343898773194,
0.006808576107025147,
0.006845759868621826,
0.006934688091278076,
0.007084415912628174,
0.007104127883911133,
0.0072564477920532226,
0.007438303947448731,
0.007197824001312256,
0.0071047677993774415,
0.007158143997192383,
0.007107200145721436,
0.007128767967224121,
0.007151455879211426,
0.007425280094146729,
0.007568736076354981,
0.007177248001098633,
0.0071049280166625975,
0.007538559913635254,
0.007258975982666015,
0.007140511989593506,
0.007368735790252686,
0.007125823974609375,
0.007129759788513184,
0.0070991039276123045,
0.007051360130310058,
0.0067933440208435055,
0.006813568115234375,
0.006824192047119141,
0.006953184127807617,
0.006822432041168213,
0.006798687934875488,
0.006944032192230225,
0.006975103855133056,
0.007104608058929443,
0.007111999988555908,
0.007074783802032471,
0.007118271827697754,
0.007046815872192383,
0.007060863971710205,
0.007083903789520263,
0.007319712162017823,
0.007103807926177978,
0.0071298561096191405,
0.007346687793731689,
0.00723683214187622,
0.007116000175476075,
0.007174304008483887,
0.007222303867340088,
0.0071262078285217285,
0.007107967853546142,
0.007293119907379151,
0.007145503997802735,
0.0072015681266784665,
0.007125631809234619,
0.007106847763061523,
0.007125440120697021,
0.007063839912414551,
0.007188255786895752,
0.007240479946136475,
0.0071010241508483885,
0.007107264041900635,
0.007058815956115723,
0.007090816020965576,
0.007080863952636718,
0.0070850238800048825,
0.007394527912139893,
0.007099999904632569,
0.0071233601570129396,
0.007120863914489746
]
},
"throughput": {
"unit": "tokens/s",
"value": 140.49183196310568
},
"energy": {
"unit": "kWh",
"cpu": 8.112345869931982e-08,
"ram": 4.429580145859887e-08,
"gpu": 1.6618068850000165e-07,
"total": 2.9159994865792036e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3429355.885014619
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 72,
"total": 0.48237673521041874,
"mean": 0.006699676877922482,
"stdev": 0.00014957180500307509,
"p50": 0.00669542407989502,
"p90": 0.006868787288665772,
"p95": 0.006963302516937256,
"p99": 0.007119564652442932,
"values": [
0.006766560077667236,
0.006586368083953857,
0.006426623821258545,
0.0064133119583129885,
0.006449151992797852,
0.006504447937011719,
0.006680575847625733,
0.006684671878814697,
0.0068392958641052244,
0.007023615837097168,
0.006764575958251953,
0.006699007987976074,
0.006723584175109864,
0.006702079772949219,
0.0067051520347595215,
0.006732800006866455,
0.0069847040176391605,
0.00714137601852417,
0.006760447978973389,
0.006687744140625,
0.007110655784606934,
0.006838272094726563,
0.0067348480224609375,
0.006945792198181152,
0.006713344097137451,
0.0067010560035705566,
0.0066938881874084475,
0.006647808074951172,
0.006398975849151611,
0.006419456005096436,
0.006432767868041992,
0.006560768127441406,
0.00643071985244751,
0.006396927833557129,
0.00652185583114624,
0.0065669121742248536,
0.006696959972381592,
0.006706175804138184,
0.006667263984680176,
0.006707263946533203,
0.006642687797546387,
0.006657023906707763,
0.006673408031463623,
0.006872064113616944,
0.006691840171813965,
0.006722559928894043,
0.006941696166992187,
0.006815743923187256,
0.0066938881874084475,
0.006752255916595459,
0.006778880119323731,
0.00672051191329956,
0.006702079772949219,
0.0068853759765625,
0.006685696125030518,
0.006661119937896728,
0.006683648109436035,
0.006689792156219483,
0.006700032234191895,
0.0066447358131408694,
0.0067686400413513184,
0.006834176063537598,
0.006680575847625733,
0.0066938881874084475,
0.006651872158050537,
0.006684671878814697,
0.0066744318008422855,
0.00667955207824707,
0.006817791938781738,
0.006691840171813965,
0.006702079772949219,
0.006714367866516113
]
},
"throughput": {
"unit": "tokens/s",
"value": 149.26092977637637
},
"energy": null,
"efficiency": null
}
}
}