IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
6ecbcef verified
raw
history blame
19 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": 1029.574656,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210816
},
"latency": {
"unit": "s",
"count": 72,
"total": 0.49048687982559197,
"mean": 0.006812317775355445,
"stdev": 0.0003922157853368939,
"p50": 0.0068071198463439935,
"p90": 0.007273417568206787,
"p95": 0.007597092890739441,
"p99": 0.007727182655334472,
"values": [
0.007749311923980713,
0.007582592010498047,
0.007470687866210937,
0.007659647941589355,
0.007196095943450928,
0.0069146561622619625,
0.006948991775512696,
0.007141439914703369,
0.0070627198219299315,
0.007614816188812256,
0.007303328037261963,
0.007249887943267822,
0.0070462398529052735,
0.006945375919342041,
0.006842656135559082,
0.007115456104278564,
0.007247392177581787,
0.0072065601348876955,
0.006893152236938476,
0.006965727806091309,
0.0068561601638793945,
0.006791999816894531,
0.0069071359634399416,
0.006804959774017334,
0.007001440048217774,
0.006962816238403321,
0.006935840129852295,
0.007008287906646728,
0.007148575782775879,
0.006787936210632325,
0.006809279918670654,
0.006653920173645019,
0.006993567943572998,
0.006486144065856934,
0.006518080234527588,
0.00672870397567749,
0.007276031970977783,
0.0077181439399719234,
0.007101247787475586,
0.006876416206359863,
0.007046048164367676,
0.00639081621170044,
0.006871071815490723,
0.006795167922973633,
0.007182015895843506,
0.00674403190612793,
0.006677472114562989,
0.006742496013641358,
0.00661081600189209,
0.006609471797943115,
0.006348608016967773,
0.006331295967102051,
0.006343008041381836,
0.006318624019622803,
0.006332032203674317,
0.006317503929138183,
0.0063389759063720704,
0.006462207794189453,
0.006323328018188476,
0.006336832046508789,
0.006306303977966309,
0.006325664043426514,
0.006358784198760986,
0.006617472171783447,
0.006612703800201416,
0.006620800018310547,
0.00635814380645752,
0.006311615943908691,
0.0063350720405578615,
0.0063463358879089354,
0.006321311950683594,
0.006327424049377441
]
},
"throughput": {
"unit": "tokens/s",
"value": 293.58583465311796
},
"energy": {
"unit": "kWh",
"cpu": 7.864660840423954e-08,
"ram": 4.299335904852367e-08,
"gpu": 1.558720893774836e-07,
"total": 2.775120568302468e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7206894.081807023
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1029.574656,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.43456
},
"latency": {
"unit": "s",
"count": 72,
"total": 0.5172980799674985,
"mean": 0.00718469555510415,
"stdev": 0.00038383313758846746,
"p50": 0.007217375993728637,
"p90": 0.007706729507446289,
"p95": 0.007764860963821412,
"p99": 0.007979552512168886,
"values": [
0.007755328178405762,
0.007776512145996094,
0.008103808403015137,
0.007711103916168213,
0.007561024188995361,
0.007287680149078369,
0.00783081579208374,
0.007456895828247071,
0.007368415832519531,
0.007751391887664795,
0.00764028787612915,
0.007731935977935791,
0.007408031940460205,
0.007278143882751465,
0.007267871856689453,
0.007527552127838135,
0.007667359828948975,
0.007465536117553711,
0.007260992050170899,
0.007401279926300049,
0.007358655929565429,
0.007282688140869141,
0.007431551933288574,
0.0072065281867980955,
0.007438784122467041,
0.0072143998146057126,
0.007389088153839111,
0.007534175872802734,
0.007606400012969971,
0.007317183971405029,
0.00725548791885376,
0.006990399837493897,
0.007220352172851562,
0.006749375820159912,
0.006999807834625244,
0.007438720226287842,
0.007666431903839112,
0.007928800106048585,
0.0072475199699401855,
0.007362304210662841,
0.007072383880615234,
0.0067003521919250485,
0.007131904125213623,
0.007183231830596924,
0.0075474238395690915,
0.007028031826019287,
0.007006368160247803,
0.007015840053558349,
0.007052896022796631,
0.006958079814910889,
0.006788479804992676,
0.006688223838806152,
0.006702527999877929,
0.006733344078063965,
0.006691679954528808,
0.006679488182067871,
0.006828320026397705,
0.006696127891540528,
0.006651135921478271,
0.0066442880630493166,
0.006697919845581055,
0.006716896057128907,
0.006675903797149658,
0.007098656177520752,
0.007181024074554444,
0.0071577920913696285,
0.006697824001312256,
0.0066037440299987794,
0.006672575950622559,
0.0066789441108703615,
0.006736192226409912,
0.006689856052398682
]
},
"throughput": {
"unit": "tokens/s",
"value": 139.18474239170513
},
"energy": {
"unit": "kWh",
"cpu": 7.696142075831736e-08,
"ram": 4.207671303105967e-08,
"gpu": 1.8383236709005113e-07,
"total": 3.028705008794282e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3301741.163620609
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 143,
"total": 1.0018232326507566,
"mean": 0.007005756871683614,
"stdev": 0.0004893290752793992,
"p50": 0.006889472007751465,
"p90": 0.007654809474945069,
"p95": 0.0078126079082489,
"p99": 0.008278159275054932,
"values": [
0.0071157760620117185,
0.008258560180664062,
0.007216127872467041,
0.00806604766845703,
0.007505919933319092,
0.008292351722717285,
0.007168000221252442,
0.007775231838226319,
0.007036928176879883,
0.007473152160644531,
0.006773759841918945,
0.007497727870941162,
0.007296000003814697,
0.007710720062255859,
0.006914048194885254,
0.007640063762664795,
0.006830080032348633,
0.008186880111694337,
0.007195648193359375,
0.00789299201965332,
0.007104512214660645,
0.007819263935089112,
0.007174143791198731,
0.007638016223907471,
0.006858751773834228,
0.007528448104858398,
0.006755328178405762,
0.007398399829864502,
0.006732800006866455,
0.007684095859527588,
0.007003136157989502,
0.007808000087738037,
0.007122943878173828,
0.00778547191619873,
0.006881279945373535,
0.007511168003082275,
0.006758272171020508,
0.007502848148345947,
0.006856704235076904,
0.007435264110565186,
0.006842368125915528,
0.007342080116271973,
0.006754303932189941,
0.0074700798988342285,
0.0068915200233459475,
0.007377920150756836,
0.006700032234191895,
0.007543807983398438,
0.006889472007751465,
0.007544832229614258,
0.00667955207824707,
0.007502848148345947,
0.006845439910888672,
0.007585792064666748,
0.007001215934753418,
0.007715712070465088,
0.007039999961853028,
0.007387135982513428,
0.006766592025756836,
0.007393280029296875,
0.006740992069244385,
0.007202816009521484,
0.006462463855743408,
0.007555071830749512,
0.0066406397819519045,
0.007098368167877197,
0.006336512088775635,
0.006959104061126709,
0.0065669121742248536,
0.007192575931549072,
0.00693555212020874,
0.007813119888305664,
0.007120927810668945,
0.008298463821411133,
0.007426047801971435,
0.007637055873870849,
0.006736832141876221,
0.007419904232025146,
0.006907904148101806,
0.007535615921020508,
0.006654975891113281,
0.006837247848510742,
0.006302720069885254,
0.007294976234436036,
0.006694911956787109,
0.007262207984924316,
0.006737919807434082,
0.007658495903015137,
0.007109632015228271,
0.0072130560874938965,
0.006616064071655273,
0.007116799831390381,
0.00657203197479248,
0.007202816009521484,
0.0066119680404663084,
0.007041024208068848,
0.006642687797546387,
0.007046144008636474,
0.0065382399559021,
0.006795263767242431,
0.00638976001739502,
0.006755328178405762,
0.006289408206939697,
0.006767615795135498,
0.006304768085479737,
0.0067420158386230465,
0.006335487842559814,
0.006755328178405762,
0.006295551776885986,
0.006738944053649902,
0.006278143882751465,
0.006765567779541016,
0.006430784225463867,
0.006885312080383301,
0.006299647808074951,
0.00674508810043335,
0.006254591941833496,
0.006758399963378906,
0.006227968215942382,
0.006748159885406494,
0.006298624038696289,
0.006750207901000976,
0.0063211522102355954,
0.006780928134918213,
0.0062791681289672855,
0.007039999961853028,
0.006684671878814697,
0.007063551902770996,
0.00676966381072998,
0.007058432102203369,
0.006749184131622315,
0.006793216228485107,
0.006305791854858398,
0.00672870397567749,
0.006203392028808594,
0.006760447978973389,
0.0062791681289672855,
0.0067645440101623535,
0.006278143882751465,
0.006748159885406494,
0.006333439826965332,
0.006755360126495361,
0.006294496059417724
]
},
"throughput": {
"unit": "tokens/s",
"value": 142.73975222318575
},
"energy": null,
"efficiency": null
}
}
}