IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
01739a8 verified
raw
history blame
17.2 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": {},
"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.285632,
"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": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 720.601088,
"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.18088818359375,
"mean": 7.18088818359375,
"stdev": 0.0,
"p50": 7.18088818359375,
"p90": 7.18088818359375,
"p95": 7.18088818359375,
"p99": 7.18088818359375,
"values": [
7.18088818359375
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 9.722890125380622e-07,
"ram": 5.164985271889577e-07,
"gpu": 0.0,
"total": 1.4887875397270199e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1026.629632,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210304
},
"latency": {
"unit": "s",
"count": 73,
"total": 0.4866738572120666,
"mean": 0.006666765167288583,
"stdev": 0.0002826751694328537,
"p50": 0.006673247814178467,
"p90": 0.007114956951141357,
"p95": 0.007159135913848877,
"p99": 0.0072368103027343755,
"values": [
0.007153439998626709,
0.007136256217956543,
0.006838816165924072,
0.006765984058380127,
0.006754432201385498,
0.006628191947937011,
0.007103744029998779,
0.0068492798805236815,
0.006753600120544433,
0.006740096092224121,
0.0068590397834777835,
0.006808896064758301,
0.006759520053863525,
0.00678982400894165,
0.006696544170379639,
0.006600543975830078,
0.006673247814178467,
0.00689356803894043,
0.007167679786682129,
0.00730406379699707,
0.007146272182464599,
0.007117760181427002,
0.00721065616607666,
0.007177120208740235,
0.006644576072692871,
0.006724480152130127,
0.006776256084442139,
0.006640063762664795,
0.006678815841674805,
0.006699584007263184,
0.006909088134765625,
0.0068436479568481446,
0.006859200000762939,
0.006812640190124512,
0.0067291841506958005,
0.006551807880401612,
0.006419904232025146,
0.006641280174255371,
0.006265183925628662,
0.006446335792541504,
0.006945536136627197,
0.006979936122894287,
0.006963744163513184,
0.0067325758934021,
0.006706528186798096,
0.0067545599937438965,
0.006581120014190674,
0.00659552001953125,
0.006525055885314941,
0.0065803837776184084,
0.006601247787475586,
0.006214528083801269,
0.006449759960174561,
0.00652729606628418,
0.006515007972717285,
0.006484320163726806,
0.006488351821899414,
0.006520031929016113,
0.006463488101959228,
0.006521664142608643,
0.006505087852478027,
0.006483839988708496,
0.006510975837707519,
0.0062936959266662595,
0.006508096218109131,
0.006557439804077149,
0.006133088111877441,
0.006173376083374023,
0.006152383804321289,
0.0061701440811157224,
0.006155935764312745,
0.006163104057312012,
0.006145408153533935
]
},
"throughput": {
"unit": "tokens/s",
"value": 299.9955675375038
},
"energy": {
"unit": "kWh",
"cpu": 7.648713504656768e-08,
"ram": 4.172129267116586e-08,
"gpu": 1.5235589111538338e-07,
"total": 2.705643188331169e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7391957.700208034
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1042.272256,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.434048
},
"latency": {
"unit": "s",
"count": 73,
"total": 0.5145912966728211,
"mean": 0.0070491958448331655,
"stdev": 0.00031207371056977024,
"p50": 0.00703276777267456,
"p90": 0.007487180995941162,
"p95": 0.0076042495727539055,
"p99": 0.007810689067840576,
"values": [
0.007275904178619385,
0.0071918082237243655,
0.007091584205627441,
0.007203264236450195,
0.006964640140533447,
0.007256703853607178,
0.007666624069213867,
0.007249599933624268,
0.007251584053039551,
0.007274879932403565,
0.007230815887451172,
0.007222400188446045,
0.007176352024078369,
0.007165696144104004,
0.0069903039932250974,
0.007079679965972901,
0.00704691219329834,
0.007494880199432373,
0.007939551830291748,
0.007657951831817627,
0.007515232086181641,
0.007760575771331787,
0.007568448066711426,
0.0074563841819763185,
0.007078752040863037,
0.007137631893157959,
0.00703276777267456,
0.00709449577331543,
0.007151423931121826,
0.007185855865478516,
0.00732371187210083,
0.007279903888702393,
0.007183487892150879,
0.007015872001647949,
0.007223840236663818,
0.006910655975341797,
0.006904160022735596,
0.0067218561172485355,
0.006512415885925293,
0.0071684479713439945,
0.007205760002136231,
0.007513599872589111,
0.007067776203155517,
0.007028512001037598,
0.007036384105682373,
0.006933055877685547,
0.006918240070343018,
0.007008063793182373,
0.006948768138885498,
0.006940544128417969,
0.006876448154449463,
0.006494272232055664,
0.006917759895324707,
0.006828159809112549,
0.006887199878692627,
0.006889472007751465,
0.006868896007537842,
0.00691871976852417,
0.006898272037506104,
0.006862080097198487,
0.006985280036926269,
0.006907487869262695,
0.006854207992553711,
0.006900832176208496,
0.0069045119285583495,
0.0068921599388122555,
0.006533152103424073,
0.006535071849822998,
0.006474944114685058,
0.006469920158386231,
0.0064579200744628905,
0.006479680061340332,
0.006497087955474853
]
},
"throughput": {
"unit": "tokens/s",
"value": 141.86015284750076
},
"energy": {
"unit": "kWh",
"cpu": 7.311006355234702e-08,
"ram": 4.0072154891636305e-08,
"gpu": 1.4589087525961831e-07,
"total": 2.590730937036017e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3859914.5349461576
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 73,
"total": 0.4808520317077635,
"mean": 0.006587014132983064,
"stdev": 0.00026730953947123317,
"p50": 0.0065812478065490725,
"p90": 0.006945996761322021,
"p95": 0.00706396141052246,
"p99": 0.007282564926147462,
"values": [
0.006724607944488525,
0.006687744140625,
0.006591487884521485,
0.00669593620300293,
0.0064849920272827145,
0.00673689603805542,
0.0070891518592834475,
0.006726687908172608,
0.006721536159515381,
0.006765567779541016,
0.006723648071289063,
0.006721536159515381,
0.006668288230895996,
0.006656000137329102,
0.006496255874633789,
0.006585343837738037,
0.006510591983795166,
0.006978559970855713,
0.007408639907836914,
0.007106560230255127,
0.0070052480697631835,
0.007233535766601563,
0.007047167778015137,
0.00695091199874878,
0.0065812478065490725,
0.006620160102844238,
0.006540287971496582,
0.006603775978088379,
0.006660096168518067,
0.006669312000274658,
0.006812672138214112,
0.0067645440101623535,
0.00667852783203125,
0.006542272090911865,
0.006744063854217529,
0.006468607902526856,
0.0064174079895019534,
0.006318079948425293,
0.006124544143676758,
0.006732800006866455,
0.006756351947784424,
0.00692633581161499,
0.006635519981384277,
0.006550528049468994,
0.006603807926177979,
0.00653004789352417,
0.006516736030578613,
0.006597568035125732,
0.006524928092956543,
0.0065372161865234375,
0.006458367824554443,
0.006086656093597412,
0.006516736030578613,
0.00643174409866333,
0.006470655918121338,
0.00648089599609375,
0.006457344055175781,
0.006508543968200684,
0.006490111827850342,
0.006449151992797852,
0.006584320068359375,
0.006504447937011719,
0.006456319808959961,
0.006504447937011719,
0.006501376152038574,
0.006461440086364746,
0.006141952037811279,
0.006141952037811279,
0.006086656093597412,
0.006079487800598145,
0.006074368000030517,
0.006073344230651856,
0.00611737585067749
]
},
"throughput": {
"unit": "tokens/s",
"value": 151.81385371449468
},
"energy": null,
"efficiency": null
}
}
}