IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
8051a6a verified
raw
history blame
16.1 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.3.1+cu121",
"_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": {},
"hub_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,
"latency": true,
"memory": 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.293824,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.219-208.866.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.3.1",
"optimum_benchmark_commit": null,
"transformers_version": "4.42.4",
"transformers_commit": null,
"accelerate_version": "0.32.1",
"accelerate_commit": null,
"diffusers_version": "0.29.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.7",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1060.548608,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210816
},
"latency": {
"unit": "s",
"count": 73,
"total": 0.4928418879508975,
"mean": 0.006751258739053387,
"stdev": 0.0006370574719300083,
"p50": 0.006417439937591553,
"p90": 0.007174598407745361,
"p95": 0.007342323017120361,
"p99": 0.009793280982971192,
"values": [
0.010280991554260254,
0.009603615760803222,
0.0072317438125610355,
0.007173344135284424,
0.007363999843597412,
0.0075393919944763185,
0.00697811222076416,
0.007174911975860595,
0.007030015945434571,
0.0070815677642822265,
0.0068748478889465335,
0.006952479839324951,
0.007132512092590332,
0.007059840202331543,
0.007052671909332275,
0.006921088218688965,
0.007093952178955078,
0.007011807918548584,
0.006996448040008545,
0.007327871799468994,
0.007067103862762451,
0.0071426877975463866,
0.006788224220275879,
0.006897600173950196,
0.006607103824615479,
0.0064757118225097655,
0.0065730881690979,
0.006748511791229248,
0.007215936183929444,
0.007066304206848144,
0.006921311855316162,
0.00685200023651123,
0.007053120136260986,
0.006672095775604248,
0.006400383949279785,
0.006406623840332032,
0.00639788818359375,
0.006380064010620117,
0.006436863899230957,
0.006409440040588379,
0.006387775897979737,
0.006388959884643555,
0.0063907837867736815,
0.006417439937591553,
0.006349184036254883,
0.006391136169433593,
0.006446432113647461,
0.00637769603729248,
0.006388224124908447,
0.006403615951538086,
0.0063539199829101565,
0.0063508481979370115,
0.0063463678359985355,
0.00638646411895752,
0.006352416038513184,
0.006379392147064209,
0.006386528015136719,
0.0063563199043273925,
0.006334591865539551,
0.006384191989898681,
0.006364352226257324,
0.006357600212097168,
0.006327231884002685,
0.006390143871307373,
0.0063788480758666995,
0.006396448135375977,
0.00641644811630249,
0.006381728172302246,
0.006336575984954834,
0.006401343822479248,
0.00637443208694458,
0.0063853440284729005,
0.0063658242225646975
]
},
"throughput": {
"unit": "tokens/s",
"value": 296.2410533062203
},
"energy": {
"unit": "kWh",
"cpu": 7.914387959021108e-08,
"ram": 4.3216021729609284e-08,
"gpu": 1.5660012528001301e-07,
"total": 2.7896002659983336e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7169485.981118682
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1060.548608,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.43456
},
"latency": {
"unit": "s",
"count": 73,
"total": 0.5167805132865905,
"mean": 0.007079185113514938,
"stdev": 0.0005227021152863204,
"p50": 0.006820608139038086,
"p90": 0.00754124174118042,
"p95": 0.007705465793609619,
"p99": 0.00872958076477051,
"values": [
0.010207136154174805,
0.00815497589111328,
0.00765334415435791,
0.007302015781402588,
0.007732960224151611,
0.007500671863555909,
0.0074404158592224125,
0.007457536220550537,
0.007417695999145508,
0.0072726402282714845,
0.007184576034545898,
0.007529183864593506,
0.007560287952423096,
0.007341887950897217,
0.0074537920951843264,
0.007297279834747314,
0.007367968082427978,
0.007322175979614258,
0.007544256210327148,
0.007510687828063965,
0.007383456230163574,
0.007294303894042968,
0.0069547839164733885,
0.007301152229309082,
0.0073359360694885255,
0.006865503787994384,
0.007028863906860351,
0.007493855953216552,
0.007687136173248291,
0.007998784065246583,
0.007151040077209472,
0.0073136000633239745,
0.006982719898223877,
0.00685209608078003,
0.006754047870635986,
0.0067136001586914065,
0.006776959896087647,
0.006837952136993408,
0.006708191871643066,
0.006769728183746338,
0.006750879764556884,
0.006717760086059571,
0.006697440147399902,
0.006733856201171875,
0.006742656230926514,
0.006720032215118408,
0.006767199993133545,
0.006766751766204834,
0.006715871810913086,
0.006717504024505615,
0.00684003210067749,
0.006754144191741944,
0.006705471992492676,
0.006722176074981689,
0.006718111991882324,
0.006820608139038086,
0.006719647884368896,
0.006749184131622315,
0.006736032009124756,
0.00669536018371582,
0.006733503818511963,
0.006744736194610595,
0.006736639976501465,
0.006806943893432617,
0.0067704000473022465,
0.0067274560928344725,
0.006698304176330566,
0.006736159801483154,
0.006723199844360352,
0.006707071781158447,
0.0066975679397583004,
0.006726079940795898,
0.006726528167724609
]
},
"throughput": {
"unit": "tokens/s",
"value": 141.25919635734496
},
"energy": {
"unit": "kWh",
"cpu": 7.471792485176111e-08,
"ram": 4.0906361034644893e-08,
"gpu": 1.4993330897972307e-07,
"total": 2.655575948661292e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3765661.4585024845
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 73,
"total": 0.4837149138450622,
"mean": 0.006626231696507702,
"stdev": 0.00046030974492070785,
"p50": 0.006425600051879882,
"p90": 0.006990028858184815,
"p95": 0.007176191902160645,
"p99": 0.008061501464843752,
"values": [
0.009500672340393066,
0.007501823902130127,
0.007100480079650879,
0.006796288013458252,
0.007174143791198731,
0.006916096210479736,
0.006906879901885986,
0.006933504104614257,
0.00689353609085083,
0.00677785587310791,
0.006661119937896728,
0.006990848064422607,
0.007037951946258545,
0.006817791938781738,
0.006915071964263916,
0.006762495994567871,
0.006856704235076904,
0.006818816184997558,
0.006951903820037842,
0.006986752033233643,
0.006876160144805908,
0.006773759841918945,
0.006515711784362793,
0.006788095951080322,
0.006923264026641846,
0.006428671836853027,
0.006565887928009034,
0.006973440170288086,
0.0071792640686035155,
0.007486464023590088,
0.006689792156219483,
0.00690176010131836,
0.006573023796081543,
0.006455296039581298,
0.006358016014099121,
0.006316031932830811,
0.0063805441856384275,
0.006441984176635742,
0.006310912132263183,
0.006352896213531494,
0.006354944229125976,
0.006322175979614258,
0.006303743839263916,
0.006335487842559814,
0.006342688083648682,
0.0063170561790466305,
0.006362112045288086,
0.006371327877044678,
0.0063201279640197755,
0.006304768085479737,
0.006432767868041992,
0.006344672203063965,
0.006310912132263183,
0.006318079948425293,
0.0063211522102355954,
0.006425600051879882,
0.00630675220489502,
0.006341631889343262,
0.006336512088775635,
0.006289408206939697,
0.006328288078308105,
0.006339583873748779,
0.006343679904937744,
0.0064102401733398436,
0.006366176128387451,
0.006330368041992188,
0.006300672054290772,
0.00633241605758667,
0.006329343795776367,
0.006311935901641846,
0.006303743839263916,
0.00633241605758667,
0.00633241605758667
]
},
"throughput": {
"unit": "tokens/s",
"value": 150.91533858181285
},
"energy": null,
"efficiency": null
}
}
}