IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
c16e67e verified
raw
history blame
16.8 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.5.0",
"optimum_benchmark_commit": null,
"transformers_version": "4.45.0",
"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.13.0",
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 802.725888,
"max_global_vram": 1362.624512,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"count": 1,
"total": 8.07777783203125,
"mean": 8.07777783203125,
"stdev": 0.0,
"p50": 8.07777783203125,
"p90": 8.07777783203125,
"p95": 8.07777783203125,
"p99": 8.07777783203125,
"values": [
8.07777783203125
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 2.414786037297745e-06,
"ram": 1.3043717860864044e-06,
"gpu": 3.682502946023014e-06,
"total": 7.401660769407164e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1233.227776,
"max_global_vram": 1373.110272,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.410496
},
"latency": {
"unit": "s",
"count": 70,
"total": 0.4943087992668152,
"mean": 0.007061554275240216,
"stdev": 0.000466063326820015,
"p50": 0.007085743904113769,
"p90": 0.007538387060165405,
"p95": 0.007793139243125915,
"p99": 0.008446399087905884,
"values": [
0.007741888046264648,
0.007600192070007324,
0.007333183765411377,
0.007337120056152344,
0.007296768188476563,
0.007182655811309814,
0.007168032169342041,
0.007203167915344239,
0.007364480018615722,
0.0073441600799560545,
0.006942016124725342,
0.0071866240501403805,
0.007129087924957276,
0.007076223850250244,
0.0069951038360595704,
0.007069536209106445,
0.00711030387878418,
0.006862912178039551,
0.007110527992248535,
0.0069268479347229005,
0.006924160003662109,
0.0070834879875183105,
0.007256192207336426,
0.00715561580657959,
0.006965472221374512,
0.0071064639091491695,
0.007087999820709228,
0.007042367935180664,
0.006885600090026855,
0.007440544128417968,
0.008356960296630859,
0.007254176139831543,
0.007209248065948486,
0.007247935771942138,
0.0072596797943115235,
0.0074479360580444335,
0.007416384220123291,
0.007410304069519043,
0.007078207969665527,
0.006915808200836182,
0.006891424179077148,
0.006931647777557373,
0.0071257281303405764,
0.00715558385848999,
0.006776991844177246,
0.008376383781433105,
0.00860223960876465,
0.007835072040557861,
0.007557568073272705,
0.007277664184570313,
0.007536255836486817,
0.006841983795166016,
0.006688831806182861,
0.006730400085449219,
0.0066499199867248535,
0.0066466560363769535,
0.006516032218933106,
0.006587711811065674,
0.00643836784362793,
0.0064587841033935545,
0.006438528060913086,
0.006410848140716552,
0.006403007984161377,
0.00642303991317749,
0.006469567775726318,
0.0064139518737792965,
0.006406847953796387,
0.006404831886291504,
0.006396927833557129,
0.006390624046325684
]
},
"throughput": {
"unit": "tokens/s",
"value": 283.2237666164458
},
"energy": {
"unit": "kWh",
"cpu": 7.973371566095351e-08,
"ram": 4.357167522179436e-08,
"gpu": 1.6441661177129227e-07,
"total": 2.8772200265404014e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 6951154.175041734
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1251.844096,
"max_global_vram": 1373.110272,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.458112
},
"latency": {
"unit": "s",
"count": 70,
"total": 0.5054106893539428,
"mean": 0.007220152705056326,
"stdev": 0.0004584535325812661,
"p50": 0.007238944053649903,
"p90": 0.007614707374572754,
"p95": 0.007848008108139038,
"p99": 0.008708921384811403,
"values": [
0.007712831974029541,
0.0076080641746520995,
0.0074860801696777345,
0.007526783943176269,
0.0074945597648620604,
0.00732150411605835,
0.007444191932678223,
0.007530240058898926,
0.007761856079101562,
0.007479040145874023,
0.0071910400390625,
0.00726800012588501,
0.0072837119102478025,
0.007259391784667969,
0.007247136116027832,
0.007230751991271973,
0.007147359848022461,
0.007061759948730469,
0.00714515209197998,
0.007174528121948242,
0.007167903900146484,
0.007451903820037842,
0.0072576961517333985,
0.007251776218414306,
0.007177184104919434,
0.007266335964202881,
0.007217408180236817,
0.007212448120117188,
0.007371488094329834,
0.00823971176147461,
0.007918496131896973,
0.0074646401405334475,
0.007446944236755371,
0.00747760009765625,
0.007674496173858642,
0.0075673599243164065,
0.007597599983215332,
0.007451200008392334,
0.007177567958831787,
0.007185728073120117,
0.006965407848358154,
0.007120223999023437,
0.007396351814270019,
0.007486144065856934,
0.006924831867218017,
0.008651583671569825,
0.008836544036865235,
0.00726307201385498,
0.007378496170043945,
0.007131648063659668,
0.007602079868316651,
0.006857600212097168,
0.006880095958709717,
0.006943456172943115,
0.006806272029876709,
0.006850272178649902,
0.006738272190093994,
0.006584512233734131,
0.006596000194549561,
0.006574079990386963,
0.0066797761917114255,
0.006600895881652832,
0.006546879768371582,
0.00659168004989624,
0.006612895965576172,
0.00656774377822876,
0.006555103778839112,
0.006575967788696289,
0.006554399967193604,
0.00658892822265625
]
},
"throughput": {
"unit": "tokens/s",
"value": 138.5012257842819
},
"energy": {
"unit": "kWh",
"cpu": 7.297746353892645e-08,
"ram": 3.988195878250786e-08,
"gpu": 1.4914845389497926e-07,
"total": 2.6200787621641366e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3816679.156522831
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 70,
"total": 0.4714426584243775,
"mean": 0.006734895120348249,
"stdev": 0.0004040272037220932,
"p50": 0.0067292160987854005,
"p90": 0.007141580820083618,
"p95": 0.007330113768577575,
"p99": 0.008108257541656495,
"values": [
0.007175168037414551,
0.007087103843688965,
0.006971392154693603,
0.0069928960800170895,
0.006979584217071533,
0.006816768169403077,
0.006937600135803222,
0.007015423774719238,
0.00722537612915039,
0.006961152076721191,
0.0066713600158691405,
0.006752255916595459,
0.006731776237487793,
0.006747136116027832,
0.0067338237762451176,
0.006726655960083008,
0.006662144184112549,
0.0065710082054138185,
0.006628352165222168,
0.006645760059356689,
0.0066499199867248535,
0.006937600135803222,
0.006752255916595459,
0.006755328178405762,
0.006631423950195312,
0.006755328178405762,
0.006717504024505615,
0.006719488143920899,
0.006770688056945801,
0.007553023815155029,
0.007415808200836181,
0.006913023948669434,
0.006940671920776367,
0.006968319892883301,
0.00714137601852417,
0.007046144008636474,
0.007068704128265381,
0.006938623905181885,
0.006688767910003662,
0.0066641921997070315,
0.006510591983795166,
0.006659071922302246,
0.0068986878395080565,
0.006988800048828125,
0.006466559886932373,
0.008056832313537597,
0.0082227201461792,
0.006793216228485107,
0.006810624122619629,
0.006656000137329102,
0.007143424034118652,
0.0064471039772033695,
0.0064839677810668945,
0.006512639999389648,
0.0064122557640075685,
0.006441984176635742,
0.006343679904937744,
0.006200319766998291,
0.006201344013214111,
0.00617574405670166,
0.006293504238128662,
0.006203392028808594,
0.006158336162567139,
0.006188096046447754,
0.006227968215942382,
0.006177792072296143,
0.00616755199432373,
0.006173696041107178,
0.006172671794891358,
0.0061931519508361815
]
},
"throughput": {
"unit": "tokens/s",
"value": 148.4804116664985
},
"energy": null,
"efficiency": null
}
}
}