IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
daf0423 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.261056,
"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": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 790.929408,
"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.3396142578125,
"mean": 7.3396142578125,
"stdev": 0.0,
"p50": 7.3396142578125,
"p90": 7.3396142578125,
"p95": 7.3396142578125,
"p99": 7.3396142578125,
"values": [
7.3396142578125
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 9.95842787500223e-07,
"ram": 5.301813610293629e-07,
"gpu": 1.619723518000082e-06,
"total": 3.145747666529668e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1217.916928,
"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.48735180759429936,
"mean": 0.0068641099661168915,
"stdev": 0.00034668120342654026,
"p50": 0.006894239902496338,
"p90": 0.0073027839660644535,
"p95": 0.007369600057601929,
"p99": 0.007757321739196777,
"values": [
0.007753856182098388,
0.007426239967346191,
0.0073027839660644535,
0.007184735774993897,
0.007297760009765625,
0.007074560165405273,
0.007058271884918213,
0.007343008041381836,
0.0073837761878967284,
0.007209536075592041,
0.007032639980316162,
0.007053152084350586,
0.007765408039093018,
0.007279039859771729,
0.007325376033782959,
0.006813632011413574,
0.006838528156280518,
0.006911263942718506,
0.006913568019866943,
0.007094175815582276,
0.00704694414138794,
0.006934976100921631,
0.007020544052124023,
0.006979807853698731,
0.006960031986236573,
0.006772255897521973,
0.006894239902496338,
0.007066271781921387,
0.006843232154846192,
0.0069064321517944335,
0.006919424057006836,
0.006859231948852539,
0.007157631874084473,
0.007079679965972901,
0.006887199878692627,
0.006980927944183349,
0.00690176010131836,
0.0067495999336242675,
0.006746623992919922,
0.006917600154876709,
0.006678016185760498,
0.0067272639274597165,
0.007069183826446533,
0.00717244815826416,
0.0073554239273071285,
0.0067190399169921875,
0.006635935783386231,
0.006653920173645019,
0.006563615798950195,
0.006609344005584717,
0.006328095912933349,
0.00633894395828247,
0.006346303939819336,
0.006354015827178955,
0.006313727855682373,
0.006307744026184082,
0.006366432189941406,
0.006339615821838379,
0.0063056640625,
0.006302815914154053,
0.00633955192565918,
0.007301695823669433,
0.006724031925201416,
0.006615104198455811,
0.006589759826660156,
0.00665334415435791,
0.006576064109802246,
0.006608640193939209,
0.006563136100769043,
0.006602496147155762,
0.006604703903198242
]
},
"throughput": {
"unit": "tokens/s",
"value": 291.37062341258263
},
"energy": {
"unit": "kWh",
"cpu": 8.261767824074114e-08,
"ram": 4.514605287818513e-08,
"gpu": 1.7060198833333427e-07,
"total": 2.9836571945226056e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 6703182.938279899
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1236.262912,
"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.5128186235427857,
"mean": 0.007222797514687123,
"stdev": 0.00036287372140269604,
"p50": 0.007257887840270996,
"p90": 0.007684991836547851,
"p95": 0.0077348480224609375,
"p99": 0.008077926301956175,
"values": [
0.007938399791717529,
0.007700511932373047,
0.007628416061401367,
0.007678400039672852,
0.007502048015594482,
0.007599936008453369,
0.0077123517990112305,
0.007754496097564697,
0.008403488159179687,
0.007814080238342284,
0.007384575843811035,
0.007378943920135498,
0.007684991836547851,
0.007715199947357178,
0.007468224048614502,
0.0071775360107421875,
0.007257887840270996,
0.0072709121704101565,
0.007367199897766114,
0.007459775924682617,
0.007404928207397461,
0.007351679801940918,
0.007386847972869873,
0.007379231929779052,
0.007313151836395263,
0.007223936080932617,
0.007211040019989014,
0.007273024082183838,
0.007282400131225586,
0.007274015903472901,
0.00728985595703125,
0.007400896072387695,
0.00745740795135498,
0.007351935863494873,
0.007473919868469238,
0.007178143978118896,
0.00721068811416626,
0.00720358419418335,
0.0070330557823181155,
0.0068884482383728025,
0.006806879997253418,
0.007373087882995606,
0.007457376003265381,
0.007601215839385987,
0.007187871932983398,
0.006957695960998535,
0.00693126392364502,
0.007091616153717041,
0.007035071849822998,
0.006958208084106445,
0.00666374397277832,
0.006703584194183349,
0.0066344962120056155,
0.006666431903839112,
0.006643839836120605,
0.006656352043151855,
0.006649375915527344,
0.0066076798439025876,
0.006655007839202881,
0.006662015914916992,
0.007535744190216065,
0.007250207901000977,
0.006991712093353272,
0.007037375926971436,
0.006906559944152832,
0.006957695960998535,
0.006927584171295166,
0.0069433279037475586,
0.006957536220550537,
0.006940512180328369,
0.0069419841766357425
]
},
"throughput": {
"unit": "tokens/s",
"value": 138.45051006435668
},
"energy": {
"unit": "kWh",
"cpu": 7.430165078886894e-08,
"ram": 4.065039989622142e-08,
"gpu": 1.2884635064035112e-07,
"total": 2.437984013254413e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 4101749.620027743
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 71,
"total": 0.47897087907791136,
"mean": 0.006746068719407202,
"stdev": 0.0003133758664886363,
"p50": 0.006760447978973389,
"p90": 0.007151616096496582,
"p95": 0.007188992023468017,
"p99": 0.007538687896728514,
"values": [
0.007394303798675537,
0.007169023990631103,
0.007076863765716553,
0.007151616096496582,
0.007004159927368164,
0.007067647933959961,
0.007135231971740722,
0.007206912040710449,
0.007875584125518798,
0.0072724480628967286,
0.006825984001159668,
0.006865920066833496,
0.007163904190063477,
0.007171072006225586,
0.006966271877288818,
0.006685696125030518,
0.006729728221893311,
0.0067717118263244626,
0.006825984001159668,
0.006931488037109375,
0.006892543792724609,
0.006804416179656983,
0.006871039867401123,
0.006850560188293457,
0.006815807819366455,
0.006721536159515381,
0.006691840171813965,
0.006790143966674805,
0.006760447978973389,
0.006765567779541016,
0.006748159885406494,
0.006858751773834228,
0.006923264026641846,
0.006845439910888672,
0.00695091199874878,
0.0066641921997070315,
0.00672870397567749,
0.006621183872222901,
0.006547391891479492,
0.006464511871337891,
0.006392831802368164,
0.006874112129211426,
0.0069621758460998535,
0.00705017614364624,
0.006773759841918945,
0.006557695865631104,
0.006534143924713135,
0.006667263984680176,
0.006627327919006347,
0.0065136637687683106,
0.006278143882751465,
0.006308864116668702,
0.006250495910644531,
0.006253568172454834,
0.006262784004211426,
0.006275072097778321,
0.006266880035400391,
0.006198272228240966,
0.0062740478515625,
0.006280191898345947,
0.007059552192687988,
0.006813695907592773,
0.006536191940307618,
0.00662937593460083,
0.006510591983795166,
0.006559743881225586,
0.006524928092956543,
0.006510591983795166,
0.006558720111846924,
0.006529024124145508,
0.006529024124145508
]
},
"throughput": {
"unit": "tokens/s",
"value": 148.23448168015003
},
"energy": null,
"efficiency": null
}
}
}