
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
1641014
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", | |
"model": "openai-community/gpt2", | |
"library": "transformers", | |
"device": "cuda", | |
"device_ids": "0", | |
"seed": 42, | |
"inter_op_num_threads": null, | |
"intra_op_num_threads": null, | |
"hub_kwargs": { | |
"revision": "main", | |
"force_download": false, | |
"local_files_only": false, | |
"trust_remote_code": false | |
}, | |
"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", | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7R32", | |
"cpu_count": 16, | |
"cpu_ram_mb": 66697.289728, | |
"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.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.40.2", | |
"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": "0.9.16", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1082.990592, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.007552 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 56, | |
"total": 0.4926286087036132, | |
"mean": 0.00879693944113595, | |
"stdev": 0.00030912263723220575, | |
"p50": 0.008795504093170165, | |
"p90": 0.009069727897644042, | |
"p95": 0.009426983833312988, | |
"p99": 0.009966625690460206, | |
"values": [ | |
0.010050208091735839, | |
0.009493056297302247, | |
0.009404959678649903, | |
0.009898240089416505, | |
0.008651007652282714, | |
0.008577728271484375, | |
0.00857369613647461, | |
0.008592127799987793, | |
0.008584575653076172, | |
0.008593888282775878, | |
0.00892956829071045, | |
0.008887295722961425, | |
0.008553024291992187, | |
0.00857596778869629, | |
0.008563936233520508, | |
0.008610560417175292, | |
0.008551839828491212, | |
0.00854531192779541, | |
0.008543647766113282, | |
0.008732000350952148, | |
0.0087958402633667, | |
0.008809727668762207, | |
0.008800992012023926, | |
0.00880412769317627, | |
0.008795167922973633, | |
0.008837056159973145, | |
0.008833696365356445, | |
0.008941311836242676, | |
0.008858400344848633, | |
0.008797151565551758, | |
0.008803135871887207, | |
0.008774432182312011, | |
0.008807552337646485, | |
0.008773216247558594, | |
0.008556159973144531, | |
0.008529791831970215, | |
0.008518176078796387, | |
0.008523167610168457, | |
0.008946399688720703, | |
0.009190848350524902, | |
0.009188735961914062, | |
0.008950719833374024, | |
0.008891807556152344, | |
0.008808095932006836, | |
0.008826144218444824, | |
0.008780415534973145, | |
0.008819680213928222, | |
0.008848992347717285, | |
0.008808128356933594, | |
0.00880617618560791, | |
0.008550368309020995, | |
0.008558752059936524, | |
0.00853228759765625, | |
0.008561823844909668, | |
0.008526623725891113, | |
0.008560864448547364 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 227.35179813193525 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0548019772551169e-07, | |
"ram": 5.76682307778852e-08, | |
"gpu": 2.0154145916814056e-07, | |
"total": 3.6468988767153744e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 5484111.481043656 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1082.990592, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.4576 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 56, | |
"total": 0.5076416349411011, | |
"mean": 0.009065029195376806, | |
"stdev": 0.0002477928485440631, | |
"p50": 0.00909160041809082, | |
"p90": 0.009442512035369874, | |
"p95": 0.009590255737304688, | |
"p99": 0.009769503831863403, | |
"values": [ | |
0.00974185562133789, | |
0.009803296089172363, | |
0.009658368110656738, | |
0.008965984344482422, | |
0.008841216087341308, | |
0.00883459186553955, | |
0.00886310386657715, | |
0.008867232322692872, | |
0.008827327728271484, | |
0.008900192260742188, | |
0.009117312431335449, | |
0.00908841609954834, | |
0.00894758415222168, | |
0.008863295555114746, | |
0.008828800201416015, | |
0.008824416160583496, | |
0.008839232444763184, | |
0.008826496124267579, | |
0.008804320335388183, | |
0.009120096206665039, | |
0.009112895965576172, | |
0.00909068775177002, | |
0.00909558391571045, | |
0.009091744422912598, | |
0.009101759910583497, | |
0.009099776268005372, | |
0.009399456024169922, | |
0.009127424240112305, | |
0.009092767715454102, | |
0.00909721565246582, | |
0.009098464012145997, | |
0.009091456413269043, | |
0.009114784240722656, | |
0.009112064361572265, | |
0.008835071563720704, | |
0.008835807800292968, | |
0.008876064300537109, | |
0.00875868797302246, | |
0.009520000457763671, | |
0.009567551612854004, | |
0.009456031799316407, | |
0.00914668846130371, | |
0.009122367858886718, | |
0.00942899227142334, | |
0.009202879905700683, | |
0.009074048042297363, | |
0.00914579200744629, | |
0.009104991912841797, | |
0.00912611198425293, | |
0.009096447944641112, | |
0.00882140827178955, | |
0.008822015762329102, | |
0.008814240455627441, | |
0.008833824157714843, | |
0.008908639907836914, | |
0.008854751586914062 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 110.31404074352052 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.979624060572692e-08, | |
"ram": 5.457317424025047e-08, | |
"gpu": 1.5923948079737716e-07, | |
"total": 3.1360889564335475e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3188685.0592950955 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 55, | |
"total": 0.9821245498657225, | |
"mean": 0.017856809997558593, | |
"stdev": 0.0004653419756720284, | |
"p50": 0.017921024322509766, | |
"p90": 0.01836501121520996, | |
"p95": 0.018868735885620116, | |
"p99": 0.019207537078857424, | |
"values": [ | |
0.0192993278503418, | |
0.019129344940185547, | |
0.01903001594543457, | |
0.017546239852905272, | |
0.01744076728820801, | |
0.01746227264404297, | |
0.017459199905395507, | |
0.01746124839782715, | |
0.017500160217285156, | |
0.018084863662719726, | |
0.01800294494628906, | |
0.017534975051879884, | |
0.01745510482788086, | |
0.01742848014831543, | |
0.017459199905395507, | |
0.017406976699829102, | |
0.01740390396118164, | |
0.01737932777404785, | |
0.017864704132080078, | |
0.017936384201049805, | |
0.017926143646240233, | |
0.017927167892456054, | |
0.017921024322509766, | |
0.017925119400024413, | |
0.017963008880615236, | |
0.01822003173828125, | |
0.018132991790771484, | |
0.017979391098022462, | |
0.017923072814941408, | |
0.017923072814941408, | |
0.017897472381591797, | |
0.017949695587158202, | |
0.017911808013916015, | |
0.01740492820739746, | |
0.01741414451599121, | |
0.01741312026977539, | |
0.017290271759033204, | |
0.018426847457885743, | |
0.018799615859985352, | |
0.018689023971557618, | |
0.018168832778930662, | |
0.018025472640991212, | |
0.018272256851196288, | |
0.018074623107910158, | |
0.01786777687072754, | |
0.018008064270019532, | |
0.01797222328186035, | |
0.01794972801208496, | |
0.017939424514770506, | |
0.01741823959350586, | |
0.017399808883666993, | |
0.01738137626647949, | |
0.01741107177734375, | |
0.0174704647064209, | |
0.01744179153442383 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 56.00104386711408 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |