
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
f3c29cb
verified
{ | |
"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_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.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.1", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.42.4", | |
"transformers_commit": null, | |
"accelerate_version": "0.32.1", | |
"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": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 721.006592, | |
"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.123751953125, | |
"mean": 7.123751953125, | |
"stdev": 0.0, | |
"p50": 7.123751953125, | |
"p90": 7.123751953125, | |
"p95": 7.123751953125, | |
"p99": 7.123751953125, | |
"values": [ | |
7.123751953125 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.703412652015688e-07, | |
"ram": 5.108539068766049e-07, | |
"gpu": 1.8358348020000408e-06, | |
"total": 3.3170299740782144e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1023.254528, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 74, | |
"total": 0.4920714230537414, | |
"mean": 0.0066496138250505595, | |
"stdev": 0.0003421294036068999, | |
"p50": 0.00672977614402771, | |
"p90": 0.007076166439056396, | |
"p95": 0.007198820853233337, | |
"p99": 0.007307830023765564, | |
"values": [ | |
0.007287551879882812, | |
0.007044223785400391, | |
0.0069071359634399416, | |
0.006860383987426758, | |
0.0067300481796264645, | |
0.006734911918640137, | |
0.006823808193206787, | |
0.0069699521064758305, | |
0.007038432121276856, | |
0.007089856147766113, | |
0.006941696166992187, | |
0.0069285759925842285, | |
0.006884448051452637, | |
0.006869120121002197, | |
0.00662883186340332, | |
0.006676032066345215, | |
0.006714111804962159, | |
0.006753600120544433, | |
0.006966752052307129, | |
0.007250463962554932, | |
0.006771840095520019, | |
0.006772160053253174, | |
0.006836607933044434, | |
0.0068360638618469236, | |
0.00664796781539917, | |
0.0067461438179016115, | |
0.00676259183883667, | |
0.006755008220672608, | |
0.006729504108428955, | |
0.006768320083618164, | |
0.007212319850921631, | |
0.00719155216217041, | |
0.007043327808380127, | |
0.006797056198120117, | |
0.006931647777557373, | |
0.006609248161315918, | |
0.00653334379196167, | |
0.007362656116485596, | |
0.006645823955535889, | |
0.007124896049499512, | |
0.006907167911529541, | |
0.006992991924285889, | |
0.0069036478996276854, | |
0.006937056064605713, | |
0.0065411200523376465, | |
0.006439455986022949, | |
0.006502336025238037, | |
0.006301375865936279, | |
0.0062230401039123535, | |
0.006230175971984863, | |
0.0062464637756347655, | |
0.006242335796356201, | |
0.006245120048522949, | |
0.006237343788146972, | |
0.006203936100006103, | |
0.0062778878211975095, | |
0.006226687908172607, | |
0.006228608131408691, | |
0.006212768077850342, | |
0.00619536018371582, | |
0.006228096008300781, | |
0.006226463794708252, | |
0.0062154560089111325, | |
0.006219103813171387, | |
0.006204192161560059, | |
0.007162015914916992, | |
0.006574656009674072, | |
0.006428287982940674, | |
0.006285151958465576, | |
0.006183231830596924, | |
0.006210464000701904, | |
0.006203072071075439, | |
0.006212063789367676, | |
0.006246272087097168 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 300.76934580254266 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.854483314434161e-08, | |
"ram": 4.293656577100359e-08, | |
"gpu": 1.5449975568211754e-07, | |
"total": 2.7598115459746275e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7246871.631206616 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1038.897152, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 74, | |
"total": 0.5182678399085998, | |
"mean": 0.007003619458224323, | |
"stdev": 0.00035901418215867096, | |
"p50": 0.007103904008865357, | |
"p90": 0.007478723239898682, | |
"p95": 0.007595118522644042, | |
"p99": 0.0076877188682556155, | |
"values": [ | |
0.0074354238510131836, | |
0.007390272140502929, | |
0.0071682238578796385, | |
0.007252927780151367, | |
0.006981696128845215, | |
0.007152927875518799, | |
0.007246111869812012, | |
0.007668831825256348, | |
0.007571104049682617, | |
0.007589888095855713, | |
0.0072991042137146, | |
0.00721776008605957, | |
0.0072409920692443844, | |
0.007236639976501465, | |
0.007065408229827881, | |
0.007116608142852783, | |
0.00715664005279541, | |
0.007142784118652344, | |
0.007497280120849609, | |
0.007285088062286377, | |
0.007153984069824219, | |
0.007391776084899902, | |
0.007256159782409668, | |
0.007123072147369385, | |
0.007129248142242432, | |
0.007258399963378907, | |
0.00709119987487793, | |
0.007130784034729004, | |
0.007135359764099121, | |
0.007215904235839844, | |
0.007604832172393799, | |
0.007538879871368408, | |
0.007241536140441895, | |
0.007062431812286377, | |
0.007166975975036621, | |
0.006793791770935058, | |
0.006969855785369873, | |
0.007253727912902832, | |
0.006942336082458496, | |
0.007261472225189209, | |
0.007305503845214844, | |
0.007633024215698242, | |
0.0077387838363647465, | |
0.0068261117935180665, | |
0.00682476806640625, | |
0.0068149762153625485, | |
0.006801248073577881, | |
0.006751872062683105, | |
0.006558047771453857, | |
0.006566336154937744, | |
0.006530272006988525, | |
0.006518911838531494, | |
0.006545184135437011, | |
0.006552703857421875, | |
0.006557119846343994, | |
0.0065335679054260255, | |
0.006520703792572021, | |
0.006535583972930908, | |
0.006554175853729248, | |
0.006557119846343994, | |
0.0066202559471130375, | |
0.006517407894134522, | |
0.006540639877319336, | |
0.006558432102203369, | |
0.0070078401565551755, | |
0.007385183811187744, | |
0.0068446722030639645, | |
0.006745952129364014, | |
0.00656006383895874, | |
0.006552576065063476, | |
0.00657692813873291, | |
0.006550784111022949, | |
0.006521152019500732, | |
0.006622496128082275 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 142.78331453684336 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.692158553136045e-08, | |
"ram": 4.1812948424235176e-08, | |
"gpu": 1.830798794607445e-07, | |
"total": 3.018144134163401e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3313294.380744311 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 74, | |
"total": 0.48413887977600095, | |
"mean": 0.0065424172942702835, | |
"stdev": 0.00030302298402500386, | |
"p50": 0.006609920024871827, | |
"p90": 0.0069572607517242434, | |
"p95": 0.007068262410163879, | |
"p99": 0.007144058680534363, | |
"values": [ | |
0.006904831886291504, | |
0.006863872051239014, | |
0.006663167953491211, | |
0.00673689603805542, | |
0.006504447937011719, | |
0.006642687797546387, | |
0.006732800006866455, | |
0.0071485438346862796, | |
0.007046144008636474, | |
0.007062528133392334, | |
0.006781951904296875, | |
0.006715392112731934, | |
0.00673686408996582, | |
0.006706175804138184, | |
0.006562816143035889, | |
0.006621183872222901, | |
0.006649856090545654, | |
0.006636544227600098, | |
0.006968319892883301, | |
0.006774752140045166, | |
0.006649856090545654, | |
0.006874112129211426, | |
0.006748159885406494, | |
0.006628352165222168, | |
0.006632448196411133, | |
0.006730751991271973, | |
0.006598656177520752, | |
0.00662937593460083, | |
0.0066375679969787596, | |
0.006646783828735352, | |
0.007078911781311035, | |
0.007019519805908203, | |
0.006694911956787109, | |
0.006575104236602783, | |
0.006645760059356689, | |
0.006371327877044678, | |
0.006501376152038574, | |
0.006815775871276856, | |
0.006505472183227539, | |
0.0067758078575134275, | |
0.006774784088134766, | |
0.007122943878173828, | |
0.007142399787902832, | |
0.006426655769348145, | |
0.006416384220123291, | |
0.006418432235717773, | |
0.006398975849151611, | |
0.0062791681289672855, | |
0.006173664093017578, | |
0.006181888103485108, | |
0.006146048069000244, | |
0.006135807991027832, | |
0.006160384178161621, | |
0.006168575763702393, | |
0.006172671794891358, | |
0.006149119853973388, | |
0.006137856006622314, | |
0.006147071838378906, | |
0.006171648025512695, | |
0.006173696041107178, | |
0.0062259202003479, | |
0.006135807991027832, | |
0.006157248020172119, | |
0.006172639846801758, | |
0.006540287971496582, | |
0.006931456089019775, | |
0.00643891191482544, | |
0.006351871967315674, | |
0.006176767826080322, | |
0.006166528224945069, | |
0.006177792072296143, | |
0.00616755199432373, | |
0.006138879776000977, | |
0.006239232063293457 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 152.8487033188451 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |