
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
374d3ad
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.0+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.29792, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.215-203.850.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.2.1", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.41.0", | |
"transformers_commit": null, | |
"accelerate_version": "0.30.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.27.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.3", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1059.442688, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.0096 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 59, | |
"total": 0.5000637474060058, | |
"mean": 0.008475656735695015, | |
"stdev": 0.0006246176885057328, | |
"p50": 0.008268287658691406, | |
"p90": 0.008677888298034668, | |
"p95": 0.008958787059783934, | |
"p99": 0.010804948692321783, | |
"values": [ | |
0.012844544410705566, | |
0.009328000068664551, | |
0.009253727912902831, | |
0.008692064285278321, | |
0.008282912254333497, | |
0.008185312271118165, | |
0.008234208106994628, | |
0.008254079818725587, | |
0.008270848274230956, | |
0.008255935668945313, | |
0.008233792304992675, | |
0.008268608093261718, | |
0.008266271591186524, | |
0.008263520240783691, | |
0.008333120346069336, | |
0.008237792015075683, | |
0.008268159866333008, | |
0.008242912292480468, | |
0.008317567825317384, | |
0.008601408004760742, | |
0.008653663635253906, | |
0.008623871803283691, | |
0.00821571159362793, | |
0.008245792388916016, | |
0.008202336311340331, | |
0.008167488098144531, | |
0.008250495910644532, | |
0.008264960289001465, | |
0.008623647689819335, | |
0.008926015853881836, | |
0.00868006420135498, | |
0.00862566375732422, | |
0.008269184112548828, | |
0.00867734432220459, | |
0.008592384338378906, | |
0.00858796787261963, | |
0.008644576072692872, | |
0.008255616188049316, | |
0.008592767715454102, | |
0.008593152046203614, | |
0.0086014404296875, | |
0.008599072456359864, | |
0.008586272239685059, | |
0.008268287658691406, | |
0.008248064041137695, | |
0.008230272293090821, | |
0.00824185562133789, | |
0.008242976188659669, | |
0.008248991966247558, | |
0.008225472450256347, | |
0.008276991844177246, | |
0.008254719734191894, | |
0.008232128143310547, | |
0.008223456382751465, | |
0.008283488273620606, | |
0.008230239868164062, | |
0.008233823776245118, | |
0.008275232315063476, | |
0.008233471870422364 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 235.96991506003897 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0151722435711231e-07, | |
"ram": 5.550494612786375e-08, | |
"gpu": 1.7883680023931488e-07, | |
"total": 3.358589707242909e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 5954880.3942527855 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1059.442688, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.46016 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 59, | |
"total": 0.5110139179229736, | |
"mean": 0.008661252846152094, | |
"stdev": 0.0005985544805990099, | |
"p50": 0.00845142364501953, | |
"p90": 0.0088460542678833, | |
"p95": 0.009326988792419433, | |
"p99": 0.011132227821350102, | |
"values": [ | |
0.012571295738220216, | |
0.009322175979614258, | |
0.010090144157409667, | |
0.008455360412597656, | |
0.008482784271240234, | |
0.008362688064575196, | |
0.008454079627990723, | |
0.008415264129638672, | |
0.008404831886291503, | |
0.008401311874389649, | |
0.008421024322509766, | |
0.00849788761138916, | |
0.00841702365875244, | |
0.008410400390625, | |
0.008441535949707032, | |
0.008372096061706543, | |
0.008379776000976563, | |
0.008415936470031738, | |
0.008660767555236816, | |
0.00875209617614746, | |
0.008721216201782227, | |
0.008699999809265137, | |
0.008339520454406738, | |
0.008317215919494629, | |
0.008804384231567383, | |
0.008362751960754394, | |
0.008382623672485351, | |
0.008471776008605957, | |
0.008740320205688476, | |
0.009137696266174316, | |
0.00880246353149414, | |
0.008844287872314453, | |
0.009370304107666016, | |
0.008817760467529297, | |
0.00877999973297119, | |
0.008822048187255859, | |
0.008743328094482422, | |
0.008853119850158691, | |
0.008765727996826171, | |
0.008769503593444824, | |
0.008738847732543945, | |
0.008745439529418945, | |
0.00880345630645752, | |
0.008404735565185548, | |
0.008376480102539063, | |
0.008382111549377442, | |
0.008386816024780273, | |
0.008431839942932128, | |
0.008410688400268554, | |
0.008386591911315917, | |
0.008482912063598632, | |
0.008394368171691894, | |
0.008349727630615235, | |
0.008401663780212402, | |
0.008392095565795898, | |
0.008379424095153808, | |
0.00842470359802246, | |
0.00845142364501953, | |
0.008396063804626465 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 115.45673792957871 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.479191633118804e-08, | |
"ram": 5.183309751542575e-08, | |
"gpu": 1.641370624819991e-07, | |
"total": 3.1076207632861286e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3217895.863659239 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 58, | |
"total": 0.9875916519165038, | |
"mean": 0.01702744227442248, | |
"stdev": 0.0005469336083603947, | |
"p50": 0.016731136322021486, | |
"p90": 0.017490636253356933, | |
"p95": 0.0177167368888855, | |
"p99": 0.019116065311431885, | |
"values": [ | |
0.01892451286315918, | |
0.019369983673095705, | |
0.017328128814697266, | |
0.01677824020385742, | |
0.01660108757019043, | |
0.016711679458618164, | |
0.016693248748779296, | |
0.016703487396240235, | |
0.016681983947753908, | |
0.016655359268188476, | |
0.01681100845336914, | |
0.016716800689697265, | |
0.016699392318725585, | |
0.01679769515991211, | |
0.01664102363586426, | |
0.016673791885375978, | |
0.016669696807861328, | |
0.01700351905822754, | |
0.017385471343994142, | |
0.017386495590209963, | |
0.017374208450317383, | |
0.016587776184082033, | |
0.016586751937866212, | |
0.01701478385925293, | |
0.016542720794677734, | |
0.01668716812133789, | |
0.016746463775634764, | |
0.017391584396362306, | |
0.01807360076904297, | |
0.017530879974365234, | |
0.017481727600097655, | |
0.01765376091003418, | |
0.017511423110961915, | |
0.017442815780639647, | |
0.01742950439453125, | |
0.017415168762207032, | |
0.017136640548706054, | |
0.01738444709777832, | |
0.01736396789550781, | |
0.01739571189880371, | |
0.017369087219238282, | |
0.01741312026977539, | |
0.016706560134887697, | |
0.016659456253051756, | |
0.01663692855834961, | |
0.016652288436889647, | |
0.016705535888671876, | |
0.016680959701538087, | |
0.0166297607421875, | |
0.016788480758666992, | |
0.016686080932617187, | |
0.016607263565063476, | |
0.01664918327331543, | |
0.016699392318725585, | |
0.01662873649597168, | |
0.016692224502563476, | |
0.016745471954345705, | |
0.016657407760620118 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 58.72872648067262 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |