
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
12fce71
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.0+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.25696, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.220-209.869.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.0", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.0", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.8", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 764.29312, | |
"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.37647119140625, | |
"mean": 7.37647119140625, | |
"stdev": 0.0, | |
"p50": 7.37647119140625, | |
"p90": 7.37647119140625, | |
"p95": 7.37647119140625, | |
"p99": 7.37647119140625, | |
"values": [ | |
7.37647119140625 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.91873134027325e-07, | |
"ram": 5.28102769110433e-07, | |
"gpu": 1.7713903059999973e-06, | |
"total": 3.2913662091377556e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1081.847808, | |
"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.4896615996360779, | |
"mean": 0.006617048643730782, | |
"stdev": 0.00027142372904804185, | |
"p50": 0.006686095952987671, | |
"p90": 0.006895862627029419, | |
"p95": 0.006974804782867432, | |
"p99": 0.007203184556961059, | |
"values": [ | |
0.0072843837738037105, | |
0.007050623893737793, | |
0.006834144115447998, | |
0.006745855808258056, | |
0.006810463905334472, | |
0.006587679862976074, | |
0.006663839817047119, | |
0.006800096035003662, | |
0.006864287853240967, | |
0.0068156800270080566, | |
0.006739136219024658, | |
0.006869247913360596, | |
0.006844736099243164, | |
0.006743840217590332, | |
0.00680617618560791, | |
0.0068624958992004395, | |
0.006619647979736328, | |
0.006703648090362549, | |
0.00673363208770752, | |
0.006712639808654785, | |
0.006909023761749267, | |
0.006952640056610108, | |
0.0067452797889709475, | |
0.006779104232788086, | |
0.006832767963409423, | |
0.006798272132873535, | |
0.006570271968841553, | |
0.006751488208770752, | |
0.006878431797027588, | |
0.006671999931335449, | |
0.006723455905914307, | |
0.0066854400634765625, | |
0.006712096214294434, | |
0.006918015956878662, | |
0.006852255821228027, | |
0.00674777603149414, | |
0.006792160034179687, | |
0.006685855865478515, | |
0.006632736206054687, | |
0.006468224048614502, | |
0.006686336040496827, | |
0.006351200103759766, | |
0.006217343807220459, | |
0.006388351917266845, | |
0.006899040222167968, | |
0.007015967845916748, | |
0.0068884482383728025, | |
0.007173151969909668, | |
0.006627456188201904, | |
0.006443103790283203, | |
0.006441408157348632, | |
0.006397632122039795, | |
0.006400896072387695, | |
0.006455552101135254, | |
0.006397439956665039, | |
0.006409664154052735, | |
0.0063448319435119626, | |
0.006156191825866699, | |
0.006281504154205322, | |
0.0062705278396606445, | |
0.006283199787139893, | |
0.0063357119560241695, | |
0.006344799995422363, | |
0.006515679836273193, | |
0.0064555201530456545, | |
0.0067833919525146485, | |
0.006422976016998291, | |
0.006409152030944824, | |
0.006127168178558349, | |
0.006105055809020996, | |
0.006088128089904785, | |
0.006138463973999023, | |
0.006098591804504395, | |
0.006108160018920898 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 302.2495537938758 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.62917116319425e-08, | |
"ram": 4.1711668028891516e-08, | |
"gpu": 1.4949442158974449e-07, | |
"total": 2.674978012505785e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7476696.969656586 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1097.220096, | |
"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.5148219828605654, | |
"mean": 0.00695705382244007, | |
"stdev": 0.0002865965908458721, | |
"p50": 0.007015695810317993, | |
"p90": 0.007289353656768799, | |
"p95": 0.007355831980705261, | |
"p99": 0.007538060421943664, | |
"values": [ | |
0.007354879856109619, | |
0.007288256168365479, | |
0.007203231811523438, | |
0.007154816150665283, | |
0.007194079875946045, | |
0.006952288150787353, | |
0.007053152084350586, | |
0.007216351985931397, | |
0.007357600212097168, | |
0.007017727851867676, | |
0.0074235520362854, | |
0.0071848959922790525, | |
0.00721340799331665, | |
0.007105567932128906, | |
0.0071194877624511715, | |
0.007031775951385498, | |
0.006990240097045898, | |
0.0070945281982421875, | |
0.007113823890686035, | |
0.007114560127258301, | |
0.007222239971160889, | |
0.007341887950897217, | |
0.007018720149993897, | |
0.007209375858306884, | |
0.007117504119873047, | |
0.007129216194152832, | |
0.00699507188796997, | |
0.00701366376876831, | |
0.00709116792678833, | |
0.0070070080757141115, | |
0.007084127902984619, | |
0.007050496101379394, | |
0.007167679786682129, | |
0.007225664138793946, | |
0.00734281587600708, | |
0.007125279903411865, | |
0.006993087768554687, | |
0.007220160007476806, | |
0.006950272083282471, | |
0.006743775844573975, | |
0.006893824100494385, | |
0.0065552000999450685, | |
0.006614016056060791, | |
0.007080128192901611, | |
0.007289824008941651, | |
0.007516831874847412, | |
0.007179967880249024, | |
0.00759545612335205, | |
0.006711359977722168, | |
0.006619872093200684, | |
0.006646111965179443, | |
0.006759647846221924, | |
0.006755104064941406, | |
0.00665228796005249, | |
0.006721407890319824, | |
0.006827968120574951, | |
0.006676191806793213, | |
0.006648704051971436, | |
0.006671807765960693, | |
0.006655200004577637, | |
0.00674454402923584, | |
0.0066152639389038086, | |
0.006662367820739746, | |
0.006720863819122315, | |
0.00690342378616333, | |
0.006960224151611328, | |
0.006602784156799316, | |
0.006602272033691407, | |
0.006409056186676025, | |
0.006431168079376221, | |
0.00654585599899292, | |
0.006417791843414306, | |
0.006402783870697022, | |
0.006499231815338135 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 143.73900583814466 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.113263320687832e-08, | |
"ram": 3.8895457812578455e-08, | |
"gpu": 1.4051266912630315e-07, | |
"total": 2.5054076014575994e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3991366.5122522125 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 74, | |
"total": 0.48003791856765754, | |
"mean": 0.006486998899562939, | |
"stdev": 0.00023983819335597175, | |
"p50": 0.006520831823349, | |
"p90": 0.006777241706848145, | |
"p95": 0.006828462386131287, | |
"p99": 0.007022827744483947, | |
"values": [ | |
0.006819871902465821, | |
0.0067686400413513184, | |
0.00667849588394165, | |
0.006639616012573242, | |
0.0066754879951477055, | |
0.00643071985244751, | |
0.006555647850036621, | |
0.006668223857879639, | |
0.00684441614151001, | |
0.006500351905822754, | |
0.006890495777130127, | |
0.006669312000274658, | |
0.0066979842185974124, | |
0.00659660816192627, | |
0.006606847763061524, | |
0.006554624080657959, | |
0.006491136074066162, | |
0.006575104236602783, | |
0.0066078720092773435, | |
0.006595583915710449, | |
0.006708223819732666, | |
0.00678604793548584, | |
0.006527999877929688, | |
0.006654975891113281, | |
0.006603775978088379, | |
0.006597631931304931, | |
0.006491136074066162, | |
0.006508543968200684, | |
0.006603775978088379, | |
0.0064921917915344235, | |
0.006583295822143555, | |
0.006550528049468994, | |
0.006648799896240234, | |
0.006702079772949219, | |
0.006818816184997558, | |
0.006599679946899414, | |
0.0065136637687683106, | |
0.006724607944488525, | |
0.00643071985244751, | |
0.006285344123840332, | |
0.006426623821258545, | |
0.006131711959838867, | |
0.00618393611907959, | |
0.006594560146331787, | |
0.006780928134918213, | |
0.0069816322326660156, | |
0.006714367866516113, | |
0.007134208202362061, | |
0.006307839870452881, | |
0.006221824169158936, | |
0.006253568172454834, | |
0.006364160060882569, | |
0.006351871967315674, | |
0.0062382397651672365, | |
0.0062904319763183595, | |
0.006433792114257812, | |
0.006285312175750732, | |
0.0062576642036437985, | |
0.006281216144561768, | |
0.006260735988616943, | |
0.006351871967315674, | |
0.0062269439697265625, | |
0.006269951820373535, | |
0.006322175979614258, | |
0.006377471923828125, | |
0.006550528049468994, | |
0.006210559844970703, | |
0.006184959888458252, | |
0.006014976024627685, | |
0.006014976024627685, | |
0.006147071838378906, | |
0.00603545618057251, | |
0.006020095825195313, | |
0.00611737585067749 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 154.15448892204606 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |