
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
b79a11e
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.43.1", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"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": 720.449536, | |
"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.1946474609375, | |
"mean": 7.1946474609375, | |
"stdev": 0.0, | |
"p50": 7.1946474609375, | |
"p90": 7.1946474609375, | |
"p95": 7.1946474609375, | |
"p99": 7.1946474609375, | |
"values": [ | |
7.1946474609375 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.893768363528782e-07, | |
"ram": 5.258210349848015e-07, | |
"gpu": 0.0, | |
"total": 1.5151978713376798e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1052.635136, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 76, | |
"total": 0.4893866252899169, | |
"mean": 0.006439297701183118, | |
"stdev": 0.00018623583618427407, | |
"p50": 0.006382272005081176, | |
"p90": 0.006617007970809937, | |
"p95": 0.006704480051994323, | |
"p99": 0.007249576091766357, | |
"values": [ | |
0.007402336120605469, | |
0.00719865608215332, | |
0.006630943775177002, | |
0.006606048107147217, | |
0.00644217586517334, | |
0.0065450558662414554, | |
0.006388735771179199, | |
0.006383647918701172, | |
0.006345952033996582, | |
0.0063656001091003415, | |
0.0064076800346374516, | |
0.00656112003326416, | |
0.006308512210845947, | |
0.006413824081420898, | |
0.006376095771789551, | |
0.006360896110534668, | |
0.006356287956237793, | |
0.00638262414932251, | |
0.0065615358352661135, | |
0.006516704082489014, | |
0.0064031357765197755, | |
0.006385727882385254, | |
0.006338784217834473, | |
0.0063772802352905274, | |
0.0063426241874694825, | |
0.006356063842773437, | |
0.0063376321792602535, | |
0.006401504039764404, | |
0.006406688213348389, | |
0.006364192008972168, | |
0.0063639039993286135, | |
0.006409535884857178, | |
0.006365695953369141, | |
0.006343776226043701, | |
0.0063779520988464355, | |
0.006408991813659668, | |
0.006363327980041504, | |
0.006350304126739502, | |
0.006381919860839844, | |
0.006401663780212403, | |
0.00638262414932251, | |
0.006356671810150146, | |
0.006383903980255127, | |
0.006354176044464112, | |
0.006384384155273437, | |
0.00636956787109375, | |
0.006391456127166748, | |
0.006650688171386719, | |
0.006562751770019531, | |
0.006553855895996094, | |
0.006497951984405517, | |
0.006537536144256592, | |
0.006528160095214844, | |
0.00650108814239502, | |
0.00630675220489502, | |
0.006312704086303711, | |
0.006303391933441162, | |
0.006302048206329345, | |
0.006311647891998291, | |
0.006317215919494629, | |
0.006310431957244873, | |
0.00630406379699707, | |
0.006310304164886474, | |
0.006317024230957031, | |
0.006295423984527588, | |
0.006288832187652588, | |
0.006301760196685791, | |
0.006308288097381592, | |
0.006295328140258789, | |
0.006328735828399658, | |
0.006456575870513916, | |
0.006515456199645996, | |
0.006944447994232178, | |
0.006627967834472656, | |
0.006689824104309082, | |
0.006748447895050049 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 310.5928771754926 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.845988994665757e-08, | |
"ram": 4.28976615075036e-08, | |
"gpu": 1.6337577455629126e-07, | |
"total": 2.847333260104524e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7024116.312702297 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1068.27776, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 76, | |
"total": 0.5124350075721741, | |
"mean": 0.006742565889107554, | |
"stdev": 0.00020363238157353807, | |
"p50": 0.0066815679073333745, | |
"p90": 0.006892063856124878, | |
"p95": 0.0069400879144668574, | |
"p99": 0.007636064052581788, | |
"values": [ | |
0.0075346240997314455, | |
0.007940383911132812, | |
0.006702655792236328, | |
0.006864575862884521, | |
0.0067092800140380856, | |
0.0067086081504821775, | |
0.006650144100189209, | |
0.00669920015335083, | |
0.00668339204788208, | |
0.006712096214294434, | |
0.0067900800704956054, | |
0.006826528072357178, | |
0.006623104095458985, | |
0.006639520168304444, | |
0.006765664100646973, | |
0.006650239944458008, | |
0.006682271957397461, | |
0.006810431957244873, | |
0.006876031875610352, | |
0.006900032043457031, | |
0.006632991790771484, | |
0.006681407928466797, | |
0.006665599822998047, | |
0.0067127361297607425, | |
0.006679232120513916, | |
0.006680799961090088, | |
0.0066341118812561035, | |
0.006630527973175049, | |
0.006706975936889649, | |
0.006673344135284424, | |
0.006671584129333496, | |
0.006655007839202881, | |
0.006746560096740723, | |
0.00666761589050293, | |
0.006749184131622315, | |
0.006622943878173828, | |
0.006648320198059082, | |
0.0066639680862426755, | |
0.006612544059753418, | |
0.0066612157821655275, | |
0.006642111778259277, | |
0.006740799903869629, | |
0.006614848136901856, | |
0.006664031982421875, | |
0.006705567836761474, | |
0.0066715202331542964, | |
0.0067112002372741696, | |
0.006897759914398193, | |
0.006878431797027588, | |
0.0068599038124084475, | |
0.006912447929382324, | |
0.006790624141693115, | |
0.006856063842773438, | |
0.00672870397567749, | |
0.00659276819229126, | |
0.006591807842254638, | |
0.006608672142028808, | |
0.006621664047241211, | |
0.006616479873657226, | |
0.0066852478981018065, | |
0.006619391918182373, | |
0.006593664169311523, | |
0.006609344005584717, | |
0.006598464012145996, | |
0.006595200061798096, | |
0.006654655933380127, | |
0.006602335929870606, | |
0.006587103843688965, | |
0.006681727886199951, | |
0.006615231990814209, | |
0.006822656154632569, | |
0.006808576107025147, | |
0.006886367797851563, | |
0.007023007869720459, | |
0.007278719902038574, | |
0.006902368068695069 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 148.31149097341043 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.568455060382317e-08, | |
"ram": 4.137997144711219e-08, | |
"gpu": 1.5351120333981217e-07, | |
"total": 2.705757253907474e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3695823.0401336513 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 76, | |
"total": 0.4821123194694519, | |
"mean": 0.00634358315091384, | |
"stdev": 0.00018274019392530905, | |
"p50": 0.006283776044845582, | |
"p90": 0.006487551927566528, | |
"p95": 0.006536192059516907, | |
"p99": 0.007117823958396912, | |
"values": [ | |
0.007014400005340577, | |
0.007428095817565918, | |
0.006276095867156982, | |
0.006472703933715821, | |
0.006323200225830078, | |
0.006316031932830811, | |
0.006259712219238281, | |
0.0062975997924804685, | |
0.006289408206939697, | |
0.006306816101074219, | |
0.0063907837867736815, | |
0.00643068790435791, | |
0.0062382397651672365, | |
0.006247424125671387, | |
0.00637337589263916, | |
0.006264832019805908, | |
0.006280191898345947, | |
0.006418432235717773, | |
0.006481919765472412, | |
0.0064880638122558594, | |
0.006247424125671387, | |
0.006294528007507324, | |
0.006280191898345947, | |
0.0063170561790466305, | |
0.006259712219238281, | |
0.006293504238128662, | |
0.006247424125671387, | |
0.006242303848266601, | |
0.0062791681289672855, | |
0.0062863359451293946, | |
0.006280191898345947, | |
0.0062576642036437985, | |
0.006352896213531494, | |
0.006281216144561768, | |
0.006358016014099121, | |
0.006237152099609375, | |
0.006260735988616943, | |
0.006277120113372803, | |
0.0062269439697265625, | |
0.006236159801483154, | |
0.006254591941833496, | |
0.006355967998504639, | |
0.0062269439697265625, | |
0.006262784004211426, | |
0.006315008163452148, | |
0.006275072097778321, | |
0.006315008163452148, | |
0.006494207859039307, | |
0.006472703933715821, | |
0.006426623821258545, | |
0.0065146880149841305, | |
0.006394879817962646, | |
0.006453248023986816, | |
0.006341631889343262, | |
0.006194176197052002, | |
0.006206399917602539, | |
0.006221824169158936, | |
0.006236159801483154, | |
0.006231040000915527, | |
0.006300672054290772, | |
0.006228991985321045, | |
0.006210559844970703, | |
0.006223872184753418, | |
0.006214655876159668, | |
0.0061910400390625, | |
0.006269951820373535, | |
0.0062197761535644535, | |
0.006200287818908691, | |
0.006295551776885986, | |
0.006232063770294189, | |
0.006429696083068847, | |
0.0064133119583129885, | |
0.006487040042877197, | |
0.0066007041931152345, | |
0.006795263767242431, | |
0.006492159843444824 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 157.6396141124031 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |