IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
cd69dba verified
raw
history blame
15.5 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.3.1+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": "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": "warn",
"numactl": false,
"numactl_kwargs": {},
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7763 64-Core Processor",
"cpu_count": 128,
"cpu_ram_mb": 1082014.490624,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.15.0-122-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.5.0.dev0",
"optimum_benchmark_commit": null,
"transformers_version": "4.45.2",
"transformers_commit": null,
"accelerate_version": "1.0.1",
"accelerate_commit": null,
"diffusers_version": "0.30.3",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.9",
"timm_commit": null,
"peft_version": "0.13.2",
"peft_commit": null
},
"print_report": true,
"log_report": true
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 1105.973248,
"max_global_vram": 68702.69952,
"max_process_vram": 5122.830336,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"values": [
0.07892440032958985
],
"count": 1,
"total": 0.07892440032958985,
"mean": 0.07892440032958985,
"p50": 0.07892440032958985,
"p90": 0.07892440032958985,
"p95": 0.07892440032958985,
"p99": 0.07892440032958985,
"stdev": 0,
"stdev_": 0
},
"throughput": null,
"energy": null,
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1272.246272,
"max_global_vram": 68702.69952,
"max_process_vram": 291922.26816,
"max_reserved": 725.614592,
"max_allocated": 513.235456
},
"latency": {
"unit": "s",
"values": [
0.00817597484588623,
0.008228774070739747,
0.0081743745803833,
0.008222695350646972,
0.008211813926696777,
0.008209095001220704,
0.008215813636779786,
0.008251974105834961,
0.00858413314819336,
0.008211014747619629,
0.008216294288635254,
0.008224134445190429,
0.008183494567871093,
0.008267333984375,
0.008142213821411132,
0.008223334312438964,
0.008199974060058594,
0.008191494941711426,
0.008164934158325195,
0.008159814834594726,
0.008154854774475098,
0.008192614555358886,
0.008258854866027832,
0.009255810737609864,
0.008760292053222657,
0.008701252937316894,
0.009293890953063965,
0.009294051170349121,
0.009246850967407226,
0.009268450736999511,
0.008811653137207031,
0.009315811157226562,
0.009273250579833985,
0.008391974449157714,
0.008280294418334961,
0.008286693572998046,
0.00826141357421875,
0.008236293792724609,
0.008241093635559082,
0.008206693649291993,
0.008241733551025391,
0.008258374214172363,
0.008256613731384277,
0.00828541374206543,
0.00826637363433838,
0.008351494789123535,
0.008506854057312012,
0.008200774192810059,
0.00823293399810791,
0.008266694068908691,
0.008267813682556153,
0.008298213958740235,
0.008367013931274415,
0.008322214126586914,
0.008649413108825683,
0.008315493583679199,
0.008236614227294922,
0.008345574378967284,
0.00824973487854004,
0.00825069522857666,
0.008302213668823243
],
"count": 61,
"total": 0.5126630373001098,
"mean": 0.008404312086887047,
"p50": 0.008258374214172363,
"p90": 0.009246850967407226,
"p95": 0.009273250579833985,
"p99": 0.009302755165100098,
"stdev": 0.00034398360740513716,
"stdev_": 4.092941859475242
},
"throughput": {
"unit": "tokens/s",
"value": 237.973076121308
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1272.246272,
"max_global_vram": 68702.69952,
"max_process_vram": 307701.669888,
"max_reserved": 725.614592,
"max_allocated": 513.257984
},
"latency": {
"unit": "s",
"values": [
0.007860936164855958,
0.007994375228881835,
0.00813133430480957,
0.00798653507232666,
0.007968454837799073,
0.008097414970397948,
0.008091335296630859,
0.008143014907836914,
0.00798765516281128,
0.0079670147895813,
0.008131495475769043,
0.007971176147460938,
0.007795495986938477,
0.007819496154785156,
0.00782317590713501,
0.007888775825500488,
0.007924935817718505,
0.007797416210174561,
0.007841576099395751,
0.007857574939727783,
0.007790534973144531,
0.007886054992675782,
0.008849732398986817,
0.008838212966918946,
0.008278055191040039,
0.00870925235748291,
0.008834532737731934,
0.008805892944335937,
0.008982372283935548,
0.008870211601257325,
0.008916611671447755,
0.008978052139282227,
0.008656292915344239,
0.00806413459777832,
0.008198055267333984,
0.008125095367431641,
0.008464613914489745,
0.008052775382995606,
0.008182374954223633,
0.00813613510131836,
0.008104934692382812,
0.008191494941711426,
0.008117415428161622,
0.008121575355529785,
0.008163015365600585,
0.008073253631591797,
0.008077095031738282,
0.00806893539428711,
0.008163174629211426,
0.008158695220947266,
0.008099815368652345,
0.008056295394897462,
0.008092135429382323,
0.00806125545501709,
0.008355974197387695,
0.008111495018005371,
0.008075494766235352,
0.008132294654846191,
0.00814493465423584,
0.00802829360961914,
0.008023335456848144
],
"count": 61,
"total": 0.4991190967559813,
"mean": 0.00818228027468822,
"p50": 0.008099815368652345,
"p90": 0.008834532737731934,
"p95": 0.008870211601257325,
"p99": 0.008979780197143555,
"stdev": 0.0003225544990726715,
"stdev_": 3.9421101238793996
},
"throughput": {
"unit": "tokens/s",
"value": 122.2153197432612
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"values": [
0.0071430177688598636,
0.007158698081970215,
0.007384616851806641,
0.007294217109680176,
0.007268777847290039,
0.007317097187042237,
0.007260457992553711,
0.007411016941070557,
0.0072588582038879395,
0.007251817226409912,
0.007346376895904541,
0.007290857791900635,
0.007134377956390381,
0.007147017955780029,
0.007169578075408935,
0.007190217971801758,
0.007237897872924805,
0.007154538154602051,
0.00715949821472168,
0.007144136905670166,
0.007145417213439941,
0.007180617809295654,
0.00815549373626709,
0.008152455329895019,
0.007501417160034179,
0.007933895111083984,
0.00809853458404541,
0.008086694717407226,
0.008291653633117676,
0.008143815040588379,
0.008151655197143554,
0.008155654907226563,
0.00781869602203369,
0.007298058032989502,
0.007346857070922852,
0.007298536777496338,
0.007718376159667969,
0.007262537002563477,
0.007342697143554688,
0.0072894182205200195,
0.007286218166351319,
0.0074057369232177735,
0.007313897132873535,
0.007292296886444092,
0.0073201370239257815,
0.007302056789398193,
0.007253897190093994,
0.0072423782348632814,
0.007300938129425049,
0.007269897937774658,
0.007316456794738769,
0.0073207769393920895,
0.007323176860809326,
0.007257737159729004,
0.007580135822296143,
0.007243017196655274,
0.007269736766815186,
0.00727869701385498,
0.0072706971168518065,
0.007258376121520996,
0.0072473368644714355
],
"count": 61,
"total": 0.4524491529464722,
"mean": 0.007417199228630691,
"p50": 0.007292296886444092,
"p90": 0.00809853458404541,
"p95": 0.008152455329895019,
"p99": 0.008210054397583008,
"stdev": 0.0003211727677066647,
"stdev_": 4.3301084116350115
},
"throughput": {
"unit": "tokens/s",
"value": 134.82177964695344
},
"energy": null,
"efficiency": null
}
}
}