
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
4026570
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.2.2", | |
"_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.14", | |
"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": 1054.818304, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.007552 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 57, | |
"total": 0.49191423797607414, | |
"mean": 0.008630074350457442, | |
"stdev": 0.0003417954487186925, | |
"p50": 0.00870531177520752, | |
"p90": 0.00890665626525879, | |
"p95": 0.009058726692199707, | |
"p99": 0.009690799217224119, | |
"values": [ | |
0.009267807960510254, | |
0.009152447700500489, | |
0.009031488418579101, | |
0.008939200401306153, | |
0.008725855827331543, | |
0.008675583839416504, | |
0.008709183692932129, | |
0.00881715202331543, | |
0.00875814437866211, | |
0.008725600242614746, | |
0.00877948760986328, | |
0.008769439697265626, | |
0.008727199554443359, | |
0.008618080139160156, | |
0.008720640182495118, | |
0.008652159690856934, | |
0.008762144088745117, | |
0.008884960174560547, | |
0.00869593620300293, | |
0.008807456016540528, | |
0.00874841594696045, | |
0.00870531177520752, | |
0.008774656295776367, | |
0.00863167953491211, | |
0.008800383567810058, | |
0.00866812801361084, | |
0.009035296440124511, | |
0.008864640235900879, | |
0.008775903701782226, | |
0.008720159530639648, | |
0.008709312438964844, | |
0.008690624237060547, | |
0.008433504104614258, | |
0.008714112281799316, | |
0.008763903617858887, | |
0.010229151725769043, | |
0.008773695945739747, | |
0.00841919994354248, | |
0.008464832305908204, | |
0.008396767616271972, | |
0.008266304016113281, | |
0.008270624160766602, | |
0.008302623748779298, | |
0.00825385570526123, | |
0.008249343872070313, | |
0.008256159782409667, | |
0.008301631927490234, | |
0.008249792098999023, | |
0.008227711677551269, | |
0.008244895935058593, | |
0.00822755241394043, | |
0.008249471664428711, | |
0.008235712051391602, | |
0.008247200012207032, | |
0.008249695777893067, | |
0.008267423629760743, | |
0.008274592399597169 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 231.7477137255473 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0256202912878717e-07, | |
"ram": 5.6014190768103455e-08, | |
"gpu": 1.7562514050000058e-07, | |
"total": 3.342013603968912e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 5984416.09461086 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1054.818304, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.4576 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 57, | |
"total": 0.5091560058593749, | |
"mean": 0.008932561506304825, | |
"stdev": 0.0003786992386458687, | |
"p50": 0.00902729606628418, | |
"p90": 0.00924041633605957, | |
"p95": 0.009357491493225097, | |
"p99": 0.0101621325302124, | |
"values": [ | |
0.009326111793518067, | |
0.009476223945617675, | |
0.009327808380126952, | |
0.009084351539611816, | |
0.009130880355834961, | |
0.009015007972717285, | |
0.009081119537353516, | |
0.00913152027130127, | |
0.009081024169921875, | |
0.009116576194763184, | |
0.009150400161743164, | |
0.009161120414733886, | |
0.009183808326721192, | |
0.008994784355163574, | |
0.00902729606628418, | |
0.00904851245880127, | |
0.009200960159301759, | |
0.00916380786895752, | |
0.009112640380859375, | |
0.00908944034576416, | |
0.009010527610778809, | |
0.008993087768554687, | |
0.009076319694519042, | |
0.009083040237426758, | |
0.00908463954925537, | |
0.009263168334960938, | |
0.009225248336791992, | |
0.009100480079650879, | |
0.009041536331176757, | |
0.009065312385559082, | |
0.008894368171691895, | |
0.008720383644104004, | |
0.008852864265441894, | |
0.009043744087219238, | |
0.009913536071777343, | |
0.010478528022766113, | |
0.008688960075378418, | |
0.008540032386779785, | |
0.008713600158691406, | |
0.00859654426574707, | |
0.008523615837097168, | |
0.008522527694702148, | |
0.00857084846496582, | |
0.008519040107727052, | |
0.008525759696960448, | |
0.008505056381225586, | |
0.008504575729370117, | |
0.008522944450378418, | |
0.008484640121459962, | |
0.008550880432128906, | |
0.008483424186706542, | |
0.008509056091308594, | |
0.008537952423095702, | |
0.008602720260620117, | |
0.008533663749694824, | |
0.008465087890625, | |
0.00850489616394043 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 111.94997082238673 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.794997443869651e-08, | |
"ram": 5.314214358703399e-08, | |
"gpu": 1.6430105736666498e-07, | |
"total": 3.153931753923955e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3170645.6512759128 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 56, | |
"total": 0.9843640384674076, | |
"mean": 0.01757792925834656, | |
"stdev": 0.000706714329871945, | |
"p50": 0.017735183715820314, | |
"p90": 0.018086912155151368, | |
"p95": 0.01844096040725708, | |
"p99": 0.01967738876342774, | |
"values": [ | |
0.018720767974853517, | |
0.018380800247192384, | |
0.018100223541259765, | |
0.017884159088134767, | |
0.017737728118896484, | |
0.01779305648803711, | |
0.017996768951416015, | |
0.017878015518188475, | |
0.01786675262451172, | |
0.017967103958129883, | |
0.017967103958129883, | |
0.01791798400878906, | |
0.0176711368560791, | |
0.017763328552246094, | |
0.017727487564086913, | |
0.01800601577758789, | |
0.01807360076904297, | |
0.017827840805053712, | |
0.017923072814941408, | |
0.017830911636352538, | |
0.017725439071655275, | |
0.017895423889160156, | |
0.01773263931274414, | |
0.01792099189758301, | |
0.017937408447265626, | |
0.01830297660827637, | |
0.018001920700073244, | |
0.017861631393432616, | |
0.017794048309326172, | |
0.017656831741333007, | |
0.017532928466796875, | |
0.017253376007080077, | |
0.017757183074951173, | |
0.01862144088745117, | |
0.02084659194946289, | |
0.017542144775390626, | |
0.01704243278503418, | |
0.017199167251586912, | |
0.017028032302856447, | |
0.01681305694580078, | |
0.01680793571472168, | |
0.016897024154663084, | |
0.01680588722229004, | |
0.01680793571472168, | |
0.016784383773803712, | |
0.016827392578125, | |
0.01679769515991211, | |
0.016739328384399413, | |
0.016825344085693358, | |
0.016745471954345705, | |
0.01678233528137207, | |
0.01678643226623535, | |
0.016876544952392578, | |
0.016818208694458006, | |
0.016758752822875977, | |
0.01680384063720703 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 56.8895223835975 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |