IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
1b6f112
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.2.2+rocm5.7", | |
"_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": {}, | |
"hub_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, | |
"latency": true, | |
"memory": true, | |
"energy": false, | |
"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 7763 64-Core Processor", | |
"cpu_count": 128, | |
"cpu_ram_mb": 1082015.236096, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.15.0-84-generic-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.12", | |
"gpu": [ | |
"Advanced Micro Devices, Inc. [AMD/ATI]" | |
], | |
"gpu_count": 1, | |
"gpu_vram_mb": 68702699520, | |
"optimum_benchmark_version": "0.3.1", | |
"optimum_benchmark_commit": "41836e67badc33c5e7a42b3b53f44695ff51963e", | |
"transformers_version": "4.42.4", | |
"transformers_commit": null, | |
"accelerate_version": "0.32.1", | |
"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": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1053.63456, | |
"max_global_vram": 1107.492864, | |
"max_process_vram": 259746.643968, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035776 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 62, | |
"total": 0.5068163781166076, | |
"mean": 0.008174457711558187, | |
"stdev": 0.0005023132766447945, | |
"p50": 0.007926610469818116, | |
"p90": 0.008637855815887451, | |
"p95": 0.008852991724014282, | |
"p99": 0.01029965991973877, | |
"values": [ | |
0.010792441368103027, | |
0.008525888442993164, | |
0.008820768356323241, | |
0.00864748764038086, | |
0.008458688735961914, | |
0.008301890373229981, | |
0.008256770133972169, | |
0.008286210060119628, | |
0.008319169998168945, | |
0.008198690414428712, | |
0.008551169395446777, | |
0.008323328971862793, | |
0.009984602928161621, | |
0.008281088829040528, | |
0.007910050868988038, | |
0.007922050952911376, | |
0.007891651153564452, | |
0.007894530773162841, | |
0.007853090763092041, | |
0.0078313307762146, | |
0.008110210418701172, | |
0.008050209999084472, | |
0.007859810829162598, | |
0.007843650817871094, | |
0.007867970943450927, | |
0.007868131160736085, | |
0.00790061092376709, | |
0.007876931190490722, | |
0.007879810810089111, | |
0.007897730827331542, | |
0.007855010986328124, | |
0.007852931022644043, | |
0.007879170894622802, | |
0.007931011199951172, | |
0.007951810836791992, | |
0.00792349100112915, | |
0.007978210926055909, | |
0.007921730995178223, | |
0.00789245080947876, | |
0.0080090913772583, | |
0.00788637113571167, | |
0.00785197114944458, | |
0.007883491039276123, | |
0.007926690101623534, | |
0.008393089294433593, | |
0.008854687690734863, | |
0.008289249420166015, | |
0.008877087593078613, | |
0.00881788730621338, | |
0.008451648712158203, | |
0.008310528755187988, | |
0.008411969184875488, | |
0.008131170272827148, | |
0.007884130954742432, | |
0.007893411159515381, | |
0.007914851188659668, | |
0.007926530838012695, | |
0.007906209945678712, | |
0.007917251110076904, | |
0.007902050971984863, | |
0.008084930419921876, | |
0.007900290966033936 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 244.66454786011326 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1053.63456, | |
"max_global_vram": 1107.501056, | |
"max_process_vram": 277192.310784, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.25952 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 62, | |
"total": 0.5036285395622254, | |
"mean": 0.008123040960681055, | |
"stdev": 0.0002528239999753677, | |
"p50": 0.008039250373840331, | |
"p90": 0.00851598424911499, | |
"p95": 0.008625977087020873, | |
"p99": 0.008853773441314697, | |
"values": [ | |
0.00912812614440918, | |
0.00862748908996582, | |
0.00852284812927246, | |
0.008454209327697753, | |
0.008241568565368652, | |
0.008163169860839843, | |
0.008323489189147949, | |
0.008412769317626953, | |
0.008272608757019044, | |
0.00829452896118164, | |
0.008296289443969727, | |
0.008325889587402343, | |
0.008562209129333496, | |
0.007903010845184326, | |
0.007998370170593261, | |
0.007923970222473145, | |
0.008059810638427735, | |
0.007934210777282714, | |
0.008059329986572265, | |
0.00805741024017334, | |
0.007997731208801269, | |
0.008033570289611816, | |
0.007914371013641357, | |
0.007965091228485108, | |
0.007990049839019775, | |
0.008072930335998535, | |
0.00803516960144043, | |
0.00811421012878418, | |
0.007904611110687255, | |
0.007949409961700439, | |
0.007933411121368408, | |
0.007931810855865478, | |
0.007999170780181884, | |
0.00791660976409912, | |
0.00798156976699829, | |
0.008031491279602052, | |
0.008093090057373046, | |
0.008017889976501465, | |
0.00806173038482666, | |
0.008077569961547851, | |
0.007965889930725098, | |
0.0080302095413208, | |
0.007978210926055909, | |
0.008066691398620606, | |
0.008678367614746094, | |
0.008055809974670411, | |
0.008326849937438964, | |
0.008677087783813476, | |
0.008129409790039063, | |
0.008159330368041992, | |
0.008236769676208497, | |
0.008597249031066895, | |
0.0078002910614013675, | |
0.007808451175689697, | |
0.007856451034545898, | |
0.007907330989837646, | |
0.00792301082611084, | |
0.007907491207122802, | |
0.007952449798583984, | |
0.007994049072265625, | |
0.008043331146240234, | |
0.007951010227203369 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 123.10660562225672 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 62, | |
"total": 0.45337832355499263, | |
"mean": 0.007312553605725689, | |
"stdev": 0.000259575798861947, | |
"p50": 0.007174854040145874, | |
"p90": 0.007637876176834106, | |
"p95": 0.007805732131004333, | |
"p99": 0.008105186381340028, | |
"values": [ | |
0.008284769058227538, | |
0.007808452129364014, | |
0.007738370895385743, | |
0.007634851932525635, | |
0.007554532051086426, | |
0.007466211795806885, | |
0.007418373107910156, | |
0.00754333209991455, | |
0.0074063720703125, | |
0.007381732940673828, | |
0.00743645191192627, | |
0.007490373134613037, | |
0.007638212203979492, | |
0.007130053997039795, | |
0.007167492866516113, | |
0.007142053127288818, | |
0.007166853904724121, | |
0.007120614051818848, | |
0.007159012794494629, | |
0.007168774127960205, | |
0.007112614154815674, | |
0.007146374225616455, | |
0.007111333847045899, | |
0.007132453918457031, | |
0.007115172863006592, | |
0.007259333133697509, | |
0.007144134044647216, | |
0.007175014019012451, | |
0.007132773876190186, | |
0.007189413070678711, | |
0.007050693988800049, | |
0.007059013843536377, | |
0.007152934074401856, | |
0.007137732982635498, | |
0.007135973930358887, | |
0.007224614143371582, | |
0.007219973087310791, | |
0.007195652961730957, | |
0.007276133060455322, | |
0.007187013149261475, | |
0.0071527729034423825, | |
0.0072114930152893065, | |
0.007174694061279297, | |
0.00717133378982544, | |
0.007990371227264405, | |
0.007448612213134765, | |
0.007593411922454834, | |
0.007981729984283448, | |
0.007460612773895264, | |
0.007452452182769775, | |
0.007531171798706055, | |
0.00775405216217041, | |
0.0070970931053161625, | |
0.007108613967895507, | |
0.007116292953491211, | |
0.007129094123840332, | |
0.007163972854614258, | |
0.007136293888092041, | |
0.007164933204650879, | |
0.0071639719009399415, | |
0.007213253974914551, | |
0.007146852970123291 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 136.75113427093453 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |