IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
6058951 verified
raw
history blame
15.8 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": "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.0",
"optimum_benchmark_commit": null,
"transformers_version": "4.42.3",
"transformers_commit": null,
"accelerate_version": "0.31.0",
"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": 1028.947968,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210816
},
"latency": {
"unit": "s",
"count": 71,
"total": 0.48799651145935075,
"mean": 0.006873190302244375,
"stdev": 0.0004528774977776018,
"p50": 0.006915200233459473,
"p90": 0.007380032062530518,
"p95": 0.007590880155563354,
"p99": 0.007752374267578124,
"values": [
0.00791923189163208,
0.007680863857269287,
0.007632448196411133,
0.007592544078826904,
0.007230815887451172,
0.006967616081237793,
0.007085504055023194,
0.007589216232299805,
0.007368991851806641,
0.007316703796386719,
0.007124832153320312,
0.007039968013763428,
0.007078879833221435,
0.006902207851409912,
0.0070865597724914554,
0.007260320186614991,
0.007323552131652832,
0.007455904006958008,
0.007250815868377686,
0.007355999946594238,
0.00729699182510376,
0.007230016231536865,
0.007380032062530518,
0.00719385576248169,
0.00726310396194458,
0.007252255916595459,
0.007417503833770752,
0.007370143890380859,
0.007293536186218262,
0.007160352230072021,
0.006960544109344482,
0.007222303867340088,
0.006826047897338867,
0.00690992021560669,
0.007227359771728515,
0.007315616130828858,
0.007289951801300049,
0.006915200233459473,
0.006566400051116943,
0.006915775775909424,
0.00669052791595459,
0.006738912105560302,
0.0064203200340271,
0.006384543895721436,
0.006418432235717773,
0.006383679866790772,
0.006379903793334961,
0.006401247978210449,
0.006386623859405517,
0.006353824138641357,
0.006391327857971191,
0.0064139838218688966,
0.006399648189544678,
0.006357888221740723,
0.006412543773651123,
0.0064041919708251955,
0.0063842558860778805,
0.006365920066833496,
0.006402688026428223,
0.00639961576461792,
0.00635475206375122,
0.006399551868438721,
0.006375679969787598,
0.0063695039749145504,
0.006392352104187012,
0.006386688232421875,
0.006380288124084472,
0.006385087966918945,
0.006398176193237305,
0.006434688091278076,
0.006359776020050049
]
},
"throughput": {
"unit": "tokens/s",
"value": 290.98568671187803
},
"energy": {
"unit": "kWh",
"cpu": 8.152824014289195e-08,
"ram": 4.457347927000262e-08,
"gpu": 1.5108459575342603e-07,
"total": 2.7718631516632057e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7215363.423695491
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1028.947968,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.43456
},
"latency": {
"unit": "s",
"count": 71,
"total": 0.5146028795242312,
"mean": 0.007247927880622972,
"stdev": 0.0004694249545401258,
"p50": 0.007218400001525879,
"p90": 0.007824384212493896,
"p95": 0.007873183965682984,
"p99": 0.007992473459243775,
"values": [
0.007989247798919678,
0.008,
0.007952159881591796,
0.007868224143981934,
0.007676896095275879,
0.007345407962799072,
0.007804704189300537,
0.007878143787384034,
0.00769209623336792,
0.007796927928924561,
0.007493824005126953,
0.00752729606628418,
0.0074683837890625,
0.007249120235443115,
0.00770140790939331,
0.007696864128112793,
0.007824384212493896,
0.007791327953338623,
0.007711711883544922,
0.007707520008087158,
0.007639679908752441,
0.007678207874298096,
0.007808032035827636,
0.0077274560928344725,
0.007817599773406982,
0.007849440097808838,
0.007865568161010743,
0.007773024082183838,
0.007677152156829834,
0.007575007915496826,
0.007420159816741943,
0.007369247913360596,
0.007074368000030517,
0.007636352062225342,
0.0076284799575805666,
0.007726111888885498,
0.007218400001525879,
0.007046559810638428,
0.007013055801391601,
0.007083968162536621,
0.007076479911804199,
0.007051136016845703,
0.006752352237701416,
0.006718495845794678,
0.006724031925201416,
0.006754496097564697,
0.00674124813079834,
0.006697696208953857,
0.006746463775634766,
0.006748672008514404,
0.0068264961242675785,
0.006746272087097168,
0.006746560096740723,
0.006738815784454346,
0.00671830415725708,
0.006748960018157959,
0.006768127918243408,
0.006732800006866455,
0.006765279769897461,
0.0067470078468322755,
0.006757855892181397,
0.006719423770904541,
0.006749343872070312,
0.00685481595993042,
0.0067404799461364745,
0.006723264217376709,
0.0067638401985168455,
0.00672051191329956,
0.00674729585647583,
0.006733888149261474,
0.006738944053649902
]
},
"throughput": {
"unit": "tokens/s",
"value": 137.97046776271844
},
"energy": {
"unit": "kWh",
"cpu": 7.929248163159593e-08,
"ram": 4.335150840169903e-08,
"gpu": 1.4542465046278772e-07,
"total": 2.6806864049608256e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3730387.85196739
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 70,
"total": 0.9890252780914308,
"mean": 0.014128932544163296,
"stdev": 0.0009019837455559321,
"p50": 0.014165503978729248,
"p90": 0.015232515335083007,
"p95": 0.015418470668792724,
"p99": 0.015647569637298582,
"values": [
0.015713279724121093,
0.015618047714233398,
0.015493120193481445,
0.015003647804260254,
0.014364671707153321,
0.014822400093078614,
0.015550463676452637,
0.015118335723876953,
0.015117312431335449,
0.014673919677734374,
0.014625791549682618,
0.014576640129089356,
0.0141844482421875,
0.014831616401672363,
0.014964735984802247,
0.01517568016052246,
0.015246368408203126,
0.01502511978149414,
0.015120448112487793,
0.014982080459594727,
0.014877696037292481,
0.01528831958770752,
0.014942208290100097,
0.015104000091552734,
0.015088640213012695,
0.015327232360839844,
0.015230976104736327,
0.01500876808166504,
0.01477836799621582,
0.014393343925476074,
0.014746623992919922,
0.013913087844848633,
0.01452236843109131,
0.014863360404968261,
0.015057920455932617,
0.01465446376800537,
0.014003199577331543,
0.013499391555786134,
0.014146559715270996,
0.013805567741394043,
0.013818880081176758,
0.013213695526123047,
0.013130751609802246,
0.013167615890502929,
0.01318297576904297,
0.013147135734558106,
0.013124608039855956,
0.013147135734558106,
0.013139967918395995,
0.013238271713256837,
0.013164544105529785,
0.013195263862609862,
0.013123583793640137,
0.013155327796936036,
0.013165568351745606,
0.013179903984069824,
0.013124608039855956,
0.013179903984069824,
0.013197312355041504,
0.013139967918395995,
0.013142016410827637,
0.013139967918395995,
0.013261823654174805,
0.013159423828125,
0.013131775856018067,
0.013171711921691894,
0.013131775856018067,
0.013155327796936036,
0.013212672233581543,
0.013121536254882812
]
},
"throughput": {
"unit": "tokens/s",
"value": 70.77675520597647
},
"energy": null,
"efficiency": null
}
}
}