IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
5d38133 verified
raw
history blame
16.9 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.4.1+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.224-212.876.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.34.2",
"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.12.0",
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 800.964608,
"max_global_vram": 1362.624512,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"count": 1,
"total": 7.99275927734375,
"mean": 7.99275927734375,
"stdev": 0.0,
"p50": 7.99275927734375,
"p90": 7.99275927734375,
"p95": 7.99275927734375,
"p99": 7.99275927734375,
"values": [
7.99275927734375
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 2.4259904305555185e-06,
"ram": 1.3102236483843566e-06,
"gpu": 3.5366694959987344e-06,
"total": 7.272883574938609e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1209.823232,
"max_global_vram": 1373.110272,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210304
},
"latency": {
"unit": "s",
"count": 71,
"total": 0.4910973114967345,
"mean": 0.006916863542207529,
"stdev": 0.0002966353077202692,
"p50": 0.006963679790496826,
"p90": 0.007234943866729736,
"p95": 0.007322383880615234,
"p99": 0.007473846578598022,
"values": [
0.0075578241348266606,
0.007280191898345947,
0.007069119930267334,
0.0071179838180541995,
0.007064032077789307,
0.007437856197357178,
0.007174911975860595,
0.007039840221405029,
0.00718016004562378,
0.0071526398658752445,
0.00694927978515625,
0.007150144100189209,
0.007183072090148926,
0.007039904117584228,
0.007066559791564941,
0.007181600093841552,
0.007085984230041504,
0.006845344066619873,
0.006759679794311523,
0.007025887966156006,
0.007091839790344238,
0.006937119960784912,
0.007085152149200439,
0.0070891199111938474,
0.007222400188446045,
0.006926400184631348,
0.007135424137115478,
0.006970911979675293,
0.007208127975463868,
0.006868063926696777,
0.006963679790496826,
0.0071151041984558105,
0.007001247882843018,
0.006954048156738281,
0.0069333438873291015,
0.006932352066040039,
0.007255360126495362,
0.0071263680458068844,
0.0071372160911560055,
0.007015391826629639,
0.006848288059234619,
0.007333087921142578,
0.0069351038932800296,
0.006702527999877929,
0.006746399879455567,
0.0065912318229675295,
0.007097439765930176,
0.007234943866729736,
0.0073116798400878905,
0.007352416038513184,
0.006826240062713623,
0.006671264171600342,
0.00669536018371582,
0.006714719772338867,
0.006843935966491699,
0.006734464168548584,
0.006687520027160644,
0.006648447990417481,
0.006806719779968262,
0.006451839923858642,
0.006351327896118164,
0.006332640171051025,
0.0063669438362121585,
0.006518144130706787,
0.006448544025421142,
0.006381792068481445,
0.006344543933868408,
0.006562719821929932,
0.006463808059692383,
0.006397312164306641,
0.00636521577835083
]
},
"throughput": {
"unit": "tokens/s",
"value": 289.14839620526857
},
"energy": {
"unit": "kWh",
"cpu": 8.405013973599351e-08,
"ram": 4.592877818758442e-08,
"gpu": 1.6591226826949412e-07,
"total": 2.9589118619307205e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 6759241.550016901
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1228.169216,
"max_global_vram": 1373.110272,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.434048
},
"latency": {
"unit": "s",
"count": 71,
"total": 0.515055103302002,
"mean": 0.007254297229605661,
"stdev": 0.0003160713790860009,
"p50": 0.0073173117637634275,
"p90": 0.00757532787322998,
"p95": 0.007709519863128662,
"p99": 0.007941219186782837,
"values": [
0.00787500810623169,
0.007471583843231201,
0.0073864002227783205,
0.007434112071990967,
0.007420544147491455,
0.00757532787322998,
0.007595263957977295,
0.007429535865783691,
0.007685535907745361,
0.007425920009613037,
0.007268640041351318,
0.007563104152679443,
0.007425248146057129,
0.007410367965698242,
0.007393727779388428,
0.007407328128814697,
0.0074702401161193845,
0.007151552200317383,
0.007246079921722412,
0.007363327980041504,
0.007269983768463135,
0.007502848148345947,
0.007475359916687012,
0.00742195177078247,
0.007515200138092041,
0.007368383884429931,
0.007526912212371826,
0.007801919937133789,
0.007261119842529297,
0.007315167903900147,
0.0073173117637634275,
0.007221439838409424,
0.007481919765472412,
0.007253920078277588,
0.007406688213348388,
0.00735532808303833,
0.007551680088043213,
0.00745849609375,
0.0073250880241394044,
0.007376255989074707,
0.007466047763824463,
0.007199423789978027,
0.007031904220581055,
0.007199552059173584,
0.006849823951721191,
0.006943999767303467,
0.007615615844726562,
0.007733503818511963,
0.008095711708068847,
0.007191167831420898,
0.00705395221710205,
0.007072512149810791,
0.0069918398857116695,
0.007116320133209228,
0.007083936214447022,
0.007053535938262939,
0.007005440235137939,
0.007040480136871338,
0.007157695770263672,
0.006718624114990235,
0.006765312194824219,
0.006670783996582031,
0.006879039764404297,
0.006874207973480225,
0.006648223876953125,
0.006642208099365234,
0.006767072200775146,
0.006968639850616455,
0.006725664138793945,
0.0066423358917236325,
0.006644703865051269
]
},
"throughput": {
"unit": "tokens/s",
"value": 137.84932824628132
},
"energy": {
"unit": "kWh",
"cpu": 7.701336388632312e-08,
"ram": 4.2085181891745174e-08,
"gpu": 1.4991005646024048e-07,
"total": 2.6900860223830886e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3717353.2432770375
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 71,
"total": 0.4805223355293272,
"mean": 0.00676792021872292,
"stdev": 0.0002646359320973506,
"p50": 0.006778880119323731,
"p90": 0.007047167778015137,
"p95": 0.007162879943847657,
"p99": 0.007357235097885131,
"values": [
0.00728166389465332,
0.00694374418258667,
0.006867968082427979,
0.006880256175994873,
0.006896575927734375,
0.007076863765716553,
0.007047167778015137,
0.006899712085723877,
0.007156735897064209,
0.006860799789428711,
0.0067573761940002445,
0.007031807899475098,
0.006870016098022461,
0.006887423992156983,
0.0068618240356445315,
0.00687820816040039,
0.0069621758460998535,
0.006638591766357422,
0.006735936164855957,
0.006872032165527344,
0.006770688056945801,
0.006964223861694336,
0.00690176010131836,
0.006899712085723877,
0.007008255958557129,
0.006831103801727295,
0.007014400005340577,
0.007250944137573242,
0.006773791790008545,
0.006804480075836182,
0.006752255916595459,
0.006724607944488525,
0.006937600135803222,
0.00674508810043335,
0.0068915200233459475,
0.006795263767242431,
0.007030784130096435,
0.006936511993408203,
0.006776832103729248,
0.006872064113616944,
0.006917119979858399,
0.006719488143920899,
0.006601727962493896,
0.006685728073120117,
0.006440959930419922,
0.006520832061767578,
0.007101439952850342,
0.007169023990631103,
0.0075335679054260255,
0.006778880119323731,
0.006609920024871826,
0.006666240215301514,
0.006583327770233154,
0.006706175804138184,
0.006667263984680176,
0.006654975891113281,
0.006591487884521485,
0.006626304149627686,
0.0067358717918396,
0.0062975997924804685,
0.00637337589263916,
0.006275072097778321,
0.0064778242111206055,
0.00643891191482544,
0.0062679038047790524,
0.006254591941833496,
0.006346784114837647,
0.006576128005981445,
0.006337600231170654,
0.006228991985321045,
0.006248447895050049
]
},
"throughput": {
"unit": "tokens/s",
"value": 147.75587886417136
},
"energy": null,
"efficiency": null
}
}
}