
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
f9a5bff
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.0+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-211.872.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.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.1", | |
"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": 791.007232, | |
"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.390802734375, | |
"mean": 7.390802734375, | |
"stdev": 0.0, | |
"p50": 7.390802734375, | |
"p90": 7.390802734375, | |
"p95": 7.390802734375, | |
"p99": 7.390802734375, | |
"values": [ | |
7.390802734375 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.924653951387876e-07, | |
"ram": 5.200153670656921e-07, | |
"gpu": 1.7219458220000313e-06, | |
"total": 3.234426584204511e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1206.276096, | |
"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.48896009731292733, | |
"mean": 0.006607568882607126, | |
"stdev": 0.0002420499852407544, | |
"p50": 0.006638927936553955, | |
"p90": 0.006723651218414307, | |
"p95": 0.006813628935813903, | |
"p99": 0.007678355860710142, | |
"values": [ | |
0.008000864028930663, | |
0.007559072017669677, | |
0.0068700799942016605, | |
0.0065155520439147945, | |
0.006461599826812744, | |
0.00647273588180542, | |
0.006465983867645264, | |
0.00645363187789917, | |
0.00678323221206665, | |
0.006727807998657227, | |
0.006705984115600586, | |
0.00662992000579834, | |
0.006461503982543945, | |
0.006679935932159424, | |
0.00671395206451416, | |
0.006676864147186279, | |
0.0064505600929260255, | |
0.006439680099487304, | |
0.006404096126556396, | |
0.006657695770263672, | |
0.0067285442352294925, | |
0.006696032047271728, | |
0.006696159839630127, | |
0.006689439773559571, | |
0.006679999828338623, | |
0.006675424098968506, | |
0.006702144145965577, | |
0.006652927875518798, | |
0.0064431681632995605, | |
0.0064271998405456545, | |
0.006526688098907471, | |
0.006420639991760254, | |
0.006457664012908935, | |
0.006441823959350586, | |
0.006421120166778565, | |
0.006418240070343017, | |
0.006411200046539307, | |
0.0064052481651306154, | |
0.0066629118919372555, | |
0.0066752958297729495, | |
0.006446303844451905, | |
0.006424032211303711, | |
0.006402304172515869, | |
0.006409920215606689, | |
0.006432096004486084, | |
0.006640927791595459, | |
0.006732511997222901, | |
0.0070310401916503906, | |
0.0064503359794616695, | |
0.006711071968078614, | |
0.00669974422454834, | |
0.006687424182891846, | |
0.006655519962310791, | |
0.0066497278213500976, | |
0.006629568099975586, | |
0.0065186238288879395, | |
0.006709248065948486, | |
0.006678463935852051, | |
0.006654784202575683, | |
0.006649983882904053, | |
0.006668032169342041, | |
0.006658495903015137, | |
0.006694464206695556, | |
0.006709343910217285, | |
0.00643891191482544, | |
0.006411231994628906, | |
0.00641318416595459, | |
0.0063854079246521, | |
0.006648447990417481, | |
0.006636928081512452, | |
0.006422463893890381, | |
0.006511936187744141, | |
0.006385951995849609, | |
0.006399040222167969 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 302.6831858332239 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 8.047189844219347e-08, | |
"ram": 4.3997552935154534e-08, | |
"gpu": 1.5852114783783928e-07, | |
"total": 2.8299059921518726e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7067372.57543736 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1224.68352, | |
"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.5163179521560668, | |
"mean": 0.006977269623730635, | |
"stdev": 0.00027364577813936337, | |
"p50": 0.007020944118499756, | |
"p90": 0.007126863908767701, | |
"p95": 0.007170012760162353, | |
"p99": 0.008312570219039916, | |
"values": [ | |
0.008303359985351562, | |
0.008337471961975098, | |
0.007124032020568848, | |
0.006764575958251953, | |
0.0067749757766723635, | |
0.006778495788574219, | |
0.006751455783843994, | |
0.00708512020111084, | |
0.007207744121551514, | |
0.00705836820602417, | |
0.007102047920227051, | |
0.006833151817321777, | |
0.006805344104766846, | |
0.007145088195800781, | |
0.007070335865020752, | |
0.007038911819458008, | |
0.006736512184143066, | |
0.006773536205291748, | |
0.006771840095520019, | |
0.007079552173614502, | |
0.00702396821975708, | |
0.007112383842468262, | |
0.0070423359870910645, | |
0.007014495849609375, | |
0.007057536125183106, | |
0.007124288082122803, | |
0.007027872085571289, | |
0.007026175975799561, | |
0.006728256225585937, | |
0.006759488105773926, | |
0.006773312091827393, | |
0.006758368015289307, | |
0.0068046717643737795, | |
0.00676639986038208, | |
0.006875328063964844, | |
0.006767039775848389, | |
0.006758528232574463, | |
0.006753087997436524, | |
0.00706108808517456, | |
0.007021312236785889, | |
0.006729152202606201, | |
0.006753183841705322, | |
0.0067339520454406734, | |
0.006755871772766113, | |
0.007080895900726318, | |
0.00727891206741333, | |
0.00702620792388916, | |
0.007148831844329834, | |
0.0069740481376647945, | |
0.007095232009887696, | |
0.0070742077827453615, | |
0.007072512149810791, | |
0.007070559978485108, | |
0.007020576000213623, | |
0.007029376029968262, | |
0.0070160961151123045, | |
0.007113791942596435, | |
0.006993919849395752, | |
0.007030591964721679, | |
0.007024640083312988, | |
0.007149695873260498, | |
0.007034048080444336, | |
0.007127967834472657, | |
0.007045343875885009, | |
0.006721183776855468, | |
0.006743584156036377, | |
0.006760543823242188, | |
0.006758815765380859, | |
0.007101247787475586, | |
0.007017536163330078, | |
0.006738848209381103, | |
0.006743872165679931, | |
0.006743040084838867, | |
0.006811808109283448 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 143.32253932094943 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.637286825188534e-08, | |
"ram": 4.175162127566092e-08, | |
"gpu": 1.5236725876742325e-07, | |
"total": 2.7049174829496956e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3696970.448464499 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 74, | |
"total": 0.48637241744995086, | |
"mean": 0.006572600235810151, | |
"stdev": 0.00025162695163501186, | |
"p50": 0.006616064071655273, | |
"p90": 0.0067176449298858645, | |
"p95": 0.006760756850242615, | |
"p99": 0.007766220679283142, | |
"values": [ | |
0.007749631881713868, | |
0.007811071872711181, | |
0.006719488143920899, | |
0.006372352123260498, | |
0.006384640216827392, | |
0.006388735771179199, | |
0.00636518383026123, | |
0.006686719894409179, | |
0.006797344207763672, | |
0.0066375679969787596, | |
0.006677504062652588, | |
0.006428671836853027, | |
0.0064174079895019534, | |
0.006741055965423584, | |
0.0066713600158691405, | |
0.0066344962120056155, | |
0.0063498239517211915, | |
0.006385663986206055, | |
0.006372352123260498, | |
0.0066826238632202144, | |
0.006627327919006347, | |
0.006713344097137451, | |
0.006643712043762207, | |
0.006616064071655273, | |
0.006658048152923584, | |
0.006713344097137451, | |
0.006604735851287842, | |
0.006627359867095947, | |
0.006341631889343262, | |
0.006370304107666015, | |
0.006386688232421875, | |
0.006340608119964599, | |
0.006395904064178467, | |
0.006378464221954346, | |
0.006486015796661377, | |
0.006362112045288086, | |
0.006371327877044678, | |
0.006359039783477783, | |
0.0066406397819519045, | |
0.006622208118438721, | |
0.006343679904937744, | |
0.006342656135559082, | |
0.006348800182342529, | |
0.006360064029693604, | |
0.006662112236022949, | |
0.006873087882995605, | |
0.006619135856628418, | |
0.006739967823028564, | |
0.006573056221008301, | |
0.006686783790588379, | |
0.006675456047058105, | |
0.006662144184112549, | |
0.006648831844329834, | |
0.006609920024871826, | |
0.006622176170349121, | |
0.0066078720092773435, | |
0.0067123198509216305, | |
0.00658739185333252, | |
0.006632448196411133, | |
0.006616064071655273, | |
0.006738944053649902, | |
0.006636544227600098, | |
0.006703104019165039, | |
0.006636544227600098, | |
0.006333439826965332, | |
0.006334464073181153, | |
0.006366208076477051, | |
0.006362112045288086, | |
0.00669593620300293, | |
0.006620160102844238, | |
0.006349855899810791, | |
0.006354944229125976, | |
0.006358016014099121, | |
0.006425600051879882 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 152.14678576548755 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |