IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
a4d4e3d verified
raw
history blame
16.8 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.4.0+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.223-211.872.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.1",
"transformers_commit": null,
"accelerate_version": "0.33.0",
"accelerate_commit": null,
"diffusers_version": "0.30.0",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.8",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 791.085056,
"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.4564228515625,
"mean": 7.4564228515625,
"stdev": 0.0,
"p50": 7.4564228515625,
"p90": 7.4564228515625,
"p95": 7.4564228515625,
"p99": 7.4564228515625,
"values": [
7.4564228515625
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 9.905452569453942e-07,
"ram": 5.273365795402099e-07,
"gpu": 1.6219457419997321e-06,
"total": 3.139827578485336e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1199.898624,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210304
},
"latency": {
"unit": "s",
"count": 70,
"total": 0.49064028835296625,
"mean": 0.0070091469764709475,
"stdev": 0.00041398683285281696,
"p50": 0.0069911680221557615,
"p90": 0.007459283065795899,
"p95": 0.007495915365219116,
"p99": 0.00810009322166443,
"values": [
0.008531359672546387,
0.007433152198791504,
0.007378304004669189,
0.007391039848327637,
0.007245855808258057,
0.007269696235656738,
0.007348159790039063,
0.007487872123718262,
0.00730998420715332,
0.00748963212966919,
0.007457183837890625,
0.007679296016693115,
0.0074052481651306155,
0.007906335830688477,
0.007219264030456543,
0.006969088077545166,
0.007029344081878662,
0.006987008094787597,
0.0071599998474121095,
0.00750105619430542,
0.007356671810150146,
0.0074357762336730955,
0.007012288093566895,
0.007068640232086182,
0.006947199821472168,
0.006993887901306152,
0.006993951797485351,
0.007276959896087646,
0.007314879894256592,
0.0072878398895263674,
0.007478176116943359,
0.0074431681632995605,
0.007025472164154053,
0.007121888160705567,
0.006988448143005371,
0.006850016117095947,
0.006708255767822266,
0.00685971212387085,
0.006533215999603272,
0.006859936237335205,
0.007115808010101319,
0.007263775825500488,
0.0073497920036315915,
0.006950592041015625,
0.007044576168060303,
0.006953472137451172,
0.006815104007720947,
0.006664063930511475,
0.006728672027587891,
0.006641088008880615,
0.006427711963653564,
0.006401408195495606,
0.00638812780380249,
0.006420767784118652,
0.006410816192626953,
0.00666102409362793,
0.0063621759414672855,
0.006410016059875488,
0.0063851518630981445,
0.0063786239624023435,
0.006463200092315674,
0.006902719974517822,
0.00696566390991211,
0.006545504093170166,
0.006777503967285156,
0.006743743896484375,
0.00670854377746582,
0.00668617582321167,
0.006655200004577637,
0.0066640000343322755
]
},
"throughput": {
"unit": "tokens/s",
"value": 285.3414269544944
},
"energy": {
"unit": "kWh",
"cpu": 7.977769159209449e-08,
"ram": 4.356380737083614e-08,
"gpu": 1.60328241610738e-07,
"total": 2.836697405736686e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7050452.388595897
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1218.306048,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.434048
},
"latency": {
"unit": "s",
"count": 70,
"total": 0.5150220804214478,
"mean": 0.007357458291734967,
"stdev": 0.00037314039667312555,
"p50": 0.007394479990005493,
"p90": 0.007821833467483521,
"p95": 0.007880470275878905,
"p99": 0.007921137127876282,
"values": [
0.00789132785797119,
0.007821375846862794,
0.0077099518775939945,
0.00776313591003418,
0.0075690879821777345,
0.007721951961517334,
0.007825952053070068,
0.007806335926055908,
0.00793513584136963,
0.007867199897766113,
0.007813375949859619,
0.007715167999267578,
0.00774073600769043,
0.007799839973449707,
0.0076277761459350585,
0.007376448154449463,
0.007418176174163818,
0.007460544109344483,
0.007766496181488037,
0.0077432961463928226,
0.007660736083984375,
0.007893152236938476,
0.007432191848754883,
0.007299232006072998,
0.0073825597763061525,
0.007435679912567139,
0.007660287857055664,
0.0076797761917114255,
0.007689184188842774,
0.007729919910430908,
0.00791484785079956,
0.007852128028869629,
0.007406400203704834,
0.007257376194000244,
0.007416160106658936,
0.007155712127685547,
0.007098207950592041,
0.006938943862915039,
0.006794976234436035,
0.007434688091278076,
0.007609439849853516,
0.007602816104888916,
0.007498335838317871,
0.007198336124420166,
0.007350080013275147,
0.007179168224334717,
0.007092512130737304,
0.00717574405670166,
0.007093920230865479,
0.007115327835083008,
0.006736735820770264,
0.006772895812988281,
0.006772319793701172,
0.006801568031311035,
0.007120927810668945,
0.006965919971466065,
0.006672160148620605,
0.006746208190917969,
0.006748000144958496,
0.006734015941619873,
0.007079455852508545,
0.007161344051361084,
0.0071710400581359865,
0.006756832122802734,
0.00709500789642334,
0.007078239917755127,
0.007045023918151856,
0.007067296028137207,
0.007039455890655517,
0.0070364799499511715
]
},
"throughput": {
"unit": "tokens/s",
"value": 135.91650273075342
},
"energy": {
"unit": "kWh",
"cpu": 7.524021699375167e-08,
"ram": 4.119247954389438e-08,
"gpu": 1.2632422436328963e-07,
"total": 2.427569209009357e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 4119347.025364851
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 70,
"total": 0.48174371337890626,
"mean": 0.006882053048270089,
"stdev": 0.0003183090253664606,
"p50": 0.00688486385345459,
"p90": 0.007278899097442627,
"p95": 0.007340288209915161,
"p99": 0.007386491022109986,
"values": [
0.007356416225433349,
0.007260159969329834,
0.007184383869171143,
0.007216127872467041,
0.007066624164581299,
0.007169023990631103,
0.007290880203247071,
0.007277567863464355,
0.00740556812286377,
0.007320576190948487,
0.0072540159225463864,
0.007163904190063477,
0.007214079856872559,
0.007271423816680909,
0.007124991893768311,
0.006868927955627441,
0.00690176010131836,
0.006944767951965332,
0.007198719978332519,
0.007203839778900147,
0.007113728046417236,
0.007367680072784424,
0.006915071964263916,
0.006810624122619629,
0.006879231929779053,
0.006914048194885254,
0.007128064155578613,
0.007158783912658692,
0.007170080184936523,
0.007185408115386963,
0.007377920150756836,
0.00729702377319336,
0.006890495777130127,
0.0067645440101623535,
0.006929408073425293,
0.006688767910003662,
0.006609920024871826,
0.006533120155334473,
0.006391808032989502,
0.006957056045532227,
0.007104512214660645,
0.007104512214660645,
0.007053311824798584,
0.006768576145172119,
0.006874112129211426,
0.006755360126495361,
0.006684671878814697,
0.006759424209594727,
0.00663750410079956,
0.0067051520347595215,
0.006344704151153564,
0.00637337589263916,
0.006376448154449463,
0.0064143362045288085,
0.0067051520347595215,
0.006557695865631104,
0.006288383960723877,
0.006333439826965332,
0.0063610877990722655,
0.006340608119964599,
0.006654943943023682,
0.0067573761940002445,
0.006690815925598144,
0.006371327877044678,
0.006690815925598144,
0.006676479816436768,
0.0066416640281677245,
0.0066641921997070315,
0.006636544227600098,
0.0066406397819519045
]
},
"throughput": {
"unit": "tokens/s",
"value": 145.30547686658207
},
"energy": null,
"efficiency": null
}
}
}