IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
921c338 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.252864,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.223-212.873.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.0",
"accelerate_commit": null,
"diffusers_version": "0.30.2",
"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": 803.893248,
"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.862658203125,
"mean": 7.862658203125,
"stdev": 0.0,
"p50": 7.862658203125,
"p90": 7.862658203125,
"p95": 7.862658203125,
"p99": 7.862658203125,
"values": [
7.862658203125
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 9.408488145849801e-07,
"ram": 4.957251084853678e-07,
"gpu": 1.5994457240008086e-06,
"total": 3.0360196470711567e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1217.687552,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210304
},
"latency": {
"unit": "s",
"count": 71,
"total": 0.48815142393112176,
"mean": 0.0068753721680439705,
"stdev": 0.0002667112699320757,
"p50": 0.006900159835815429,
"p90": 0.007200223922729492,
"p95": 0.007284080028533936,
"p99": 0.007365766429901123,
"values": [
0.007410655975341797,
0.007020832061767578,
0.006961728096008301,
0.006942912101745606,
0.006917888164520263,
0.0073465280532836914,
0.007035071849822998,
0.007200223922729492,
0.007278336048126221,
0.0073051519393920895,
0.006936448097229004,
0.006850783824920654,
0.007057792186737061,
0.0071943359375,
0.00719868803024292,
0.0069656319618225096,
0.007013984203338623,
0.006942016124725342,
0.006718624114990235,
0.0068048639297485355,
0.006831552028656006,
0.007098879814147949,
0.007060895919799805,
0.007009759902954101,
0.007003232002258301,
0.0067907519340515135,
0.007075967788696289,
0.006987967967987061,
0.006899136066436768,
0.006766111850738526,
0.006845376014709473,
0.007079967975616455,
0.006773280143737793,
0.006846911907196045,
0.006925024032592773,
0.0068830718994140625,
0.00690553617477417,
0.0071823358535766605,
0.0072267518043518065,
0.0071418237686157226,
0.0070033597946166995,
0.0067565121650695805,
0.00684281587600708,
0.00713862419128418,
0.006871744155883789,
0.006900159835815429,
0.0069847040176391605,
0.007215487957000733,
0.007190048217773437,
0.007289824008941651,
0.0068091521263122555,
0.006495967864990234,
0.006620831966400146,
0.006567679882049561,
0.0065976958274841305,
0.006571648120880127,
0.006673600196838379,
0.006635072231292724,
0.0065734081268310545,
0.006443583965301513,
0.006529407978057861,
0.006619200229644775,
0.006753759860992432,
0.006615392208099365,
0.006363552093505859,
0.006298431873321533,
0.006299168109893799,
0.006350751876831055,
0.006344736099243164,
0.0066415038108825685,
0.00671676778793335
]
},
"throughput": {
"unit": "tokens/s",
"value": 290.89334382446907
},
"energy": {
"unit": "kWh",
"cpu": 8.027776724849984e-08,
"ram": 4.388965743800015e-08,
"gpu": 1.5220545209459884e-07,
"total": 2.763728767810989e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7236600.144319154
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1236.033536,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.434048
},
"latency": {
"unit": "s",
"count": 71,
"total": 0.5127905578613281,
"mean": 0.007222402223398989,
"stdev": 0.0002793982719769285,
"p50": 0.007271711826324463,
"p90": 0.007538112163543701,
"p95": 0.007649919986724853,
"p99": 0.007767327785491942,
"values": [
0.007370751857757568,
0.007339871883392334,
0.0073117117881774905,
0.007294335842132568,
0.007296031951904297,
0.007738239765167236,
0.007596479892730713,
0.007538112163543701,
0.00783519983291626,
0.007652863979339599,
0.007158720016479493,
0.007373600006103515,
0.007408415794372559,
0.007271711826324463,
0.007278719902038574,
0.0073640961647033695,
0.007323264122009277,
0.007126944065093994,
0.00725545597076416,
0.007220384120941162,
0.007279871940612793,
0.007400191783905029,
0.007450975894927978,
0.007555583953857422,
0.007236480236053467,
0.007195903778076172,
0.007457664012908935,
0.007402719974517823,
0.007255167961120606,
0.007065375804901123,
0.0073554239273071285,
0.007432000160217285,
0.007156735897064209,
0.007213215827941894,
0.007323071956634521,
0.007194464206695557,
0.007369855880737305,
0.007348415851593018,
0.007370751857757568,
0.007403584003448487,
0.007283840179443359,
0.007174496173858643,
0.00743881607055664,
0.007149472236633301,
0.007525375843048096,
0.007069888114929199,
0.00737663984298706,
0.007646975994110107,
0.00749945592880249,
0.007735968112945557,
0.006889247894287109,
0.006825503826141358,
0.006975264072418213,
0.007158944129943848,
0.007034304141998291,
0.00688969612121582,
0.006885407924652099,
0.0069055681228637695,
0.006904416084289551,
0.006982143878936768,
0.007033567905426025,
0.006882527828216553,
0.007149983882904052,
0.0069779839515686035,
0.006650335788726806,
0.006569695949554443,
0.006566944122314453,
0.007019423961639405,
0.006564799785614014,
0.0072024321556091305,
0.006599071979522705
]
},
"throughput": {
"unit": "tokens/s",
"value": 138.45808763740973
},
"energy": {
"unit": "kWh",
"cpu": 7.691977290134818e-08,
"ram": 4.205621001043e-08,
"gpu": 1.4687007956328947e-07,
"total": 2.6584606247506745e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3761575.366924179
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 71,
"total": 0.478219391822815,
"mean": 0.006735484391870632,
"stdev": 0.00022701530127949642,
"p50": 0.006750207901000976,
"p90": 0.007000063896179199,
"p95": 0.007085056066513062,
"p99": 0.007200563383102417,
"values": [
0.006864927768707276,
0.006823935985565186,
0.006788095951080322,
0.006785024166107178,
0.006785024166107178,
0.007070720195770264,
0.007073791980743408,
0.006989823818206787,
0.0072765440940856935,
0.007096320152282715,
0.00663759994506836,
0.006834176063537598,
0.006870016098022461,
0.006758399963378906,
0.006773888111114502,
0.006820864200592041,
0.006799359798431396,
0.006646783828735352,
0.006715392112731934,
0.006700960159301758,
0.006778880119323731,
0.006892543792724609,
0.006898591995239258,
0.007021567821502686,
0.006733888149261474,
0.006690815925598144,
0.0069283838272094726,
0.006834176063537598,
0.006750207901000976,
0.0065495362281799314,
0.006853631973266602,
0.006919167995452881,
0.006625279903411865,
0.006710271835327148,
0.0068189120292663575,
0.006689888000488281,
0.006829055786132812,
0.006823935985565186,
0.006856671810150147,
0.006820864200592041,
0.006746111869812011,
0.006657023906707763,
0.006930431842803955,
0.0066969280242919925,
0.007000063896179199,
0.006661119937896728,
0.006914048194885254,
0.00713318395614624,
0.006972288131713867,
0.007168000221252442,
0.006491136074066162,
0.0064245758056640625,
0.006585343837738037,
0.006743040084838867,
0.0066007041931152345,
0.006491136074066162,
0.0064880638122558594,
0.006496255874633789,
0.006515711784362793,
0.006543360233306885,
0.0066344962120056155,
0.006471680164337158,
0.006750207901000976,
0.0065781760215759275,
0.006275072097778321,
0.006189055919647217,
0.006191135883331299,
0.006615039825439453,
0.00618393611907959,
0.0067276802062988285,
0.006206463813781738
]
},
"throughput": {
"unit": "tokens/s",
"value": 148.46742146814952
},
"energy": null,
"efficiency": null
}
}
}