
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
da7409c
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.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": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 720.572416, | |
"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.17916357421875, | |
"mean": 7.17916357421875, | |
"stdev": 0.0, | |
"p50": 7.17916357421875, | |
"p90": 7.17916357421875, | |
"p95": 7.17916357421875, | |
"p99": 7.17916357421875, | |
"values": [ | |
7.17916357421875 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.788331058290271e-07, | |
"ram": 5.205172845791139e-07, | |
"gpu": 1.6383346440008648e-06, | |
"total": 3.1376850344090057e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1030.336512, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 79, | |
"total": 0.48673107337951665, | |
"mean": 0.006161152827588817, | |
"stdev": 0.0002027731619327561, | |
"p50": 0.00610643196105957, | |
"p90": 0.00627379207611084, | |
"p95": 0.006441795206069946, | |
"p99": 0.007110896482467651, | |
"values": [ | |
0.007102687835693359, | |
0.007004288196563721, | |
0.007139999866485596, | |
0.00646284818649292, | |
0.006174784183502197, | |
0.006147007942199707, | |
0.00604633617401123, | |
0.006089087963104248, | |
0.006051583766937256, | |
0.006115839958190918, | |
0.006119296073913574, | |
0.006253600120544434, | |
0.0061653761863708495, | |
0.00613651180267334, | |
0.006439455986022949, | |
0.006078879833221435, | |
0.0060850558280944825, | |
0.006158592224121094, | |
0.006109792232513428, | |
0.0061142721176147465, | |
0.0060206718444824215, | |
0.0060421438217163085, | |
0.006201280117034912, | |
0.006120639801025391, | |
0.006035359859466552, | |
0.006089087963104248, | |
0.006134496212005615, | |
0.006104383945465088, | |
0.006139584064483642, | |
0.006065855979919434, | |
0.006090976238250732, | |
0.006161344051361084, | |
0.006097631931304932, | |
0.006271520137786865, | |
0.006069983959197998, | |
0.00608464002609253, | |
0.006097631931304932, | |
0.006061632156372071, | |
0.006094912052154541, | |
0.0061968002319335936, | |
0.0060588159561157226, | |
0.006412928104400635, | |
0.006085760116577148, | |
0.00605404806137085, | |
0.006054272174835205, | |
0.006027328014373779, | |
0.00608790397644043, | |
0.005997344017028809, | |
0.006097343921661377, | |
0.006232192039489746, | |
0.006079808235168457, | |
0.0062828798294067385, | |
0.006292768001556396, | |
0.006006720066070556, | |
0.00611081600189209, | |
0.006106239795684814, | |
0.0061415362358093264, | |
0.006122752189636231, | |
0.006045184135437012, | |
0.006061056137084961, | |
0.006199359893798828, | |
0.006053343772888183, | |
0.00612556791305542, | |
0.006096960067749024, | |
0.006101151943206787, | |
0.00610643196105957, | |
0.0061383042335510256, | |
0.006057375907897949, | |
0.00610537576675415, | |
0.006253024101257324, | |
0.006134016036987305, | |
0.006046559810638428, | |
0.006097023963928223, | |
0.006114816188812256, | |
0.006142303943634033, | |
0.006117792129516602, | |
0.0060793919563293455, | |
0.006120480060577392, | |
0.0061082239151000976 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 324.61457392263793 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.743386574733405e-08, | |
"ram": 4.233895459249138e-08, | |
"gpu": 1.5360397183006693e-07, | |
"total": 2.7337679216989235e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7315909.972186238 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1045.979136, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 79, | |
"total": 0.5121527352333068, | |
"mean": 0.006482946015611479, | |
"stdev": 0.00020360013333458438, | |
"p50": 0.00644652795791626, | |
"p90": 0.006558303928375244, | |
"p95": 0.006640569496154785, | |
"p99": 0.007388694238662719, | |
"values": [ | |
0.007243360042572021, | |
0.007304671764373779, | |
0.007686592102050781, | |
0.006473887920379639, | |
0.006512224197387695, | |
0.006457471847534179, | |
0.00644982385635376, | |
0.006494048118591308, | |
0.006531680107116699, | |
0.006414463996887207, | |
0.006359392166137695, | |
0.006476928234100341, | |
0.006492032051086426, | |
0.006604735851287842, | |
0.006337471961975098, | |
0.006446271896362305, | |
0.00640825605392456, | |
0.006457503795623779, | |
0.006500895977020264, | |
0.00653868818283081, | |
0.00633894395828247, | |
0.0064646401405334475, | |
0.006419456005096436, | |
0.006488255977630615, | |
0.006331168174743653, | |
0.006388256072998047, | |
0.006494495868682861, | |
0.006474815845489502, | |
0.00645740795135498, | |
0.006336192131042481, | |
0.006407328128814697, | |
0.006590303897857666, | |
0.006466559886932373, | |
0.0064534077644348145, | |
0.006492224216461182, | |
0.006353759765625, | |
0.006343711853027343, | |
0.006381247997283936, | |
0.006397823810577393, | |
0.0063853120803833005, | |
0.006484255790710449, | |
0.0064362878799438476, | |
0.0064357762336730955, | |
0.006316639900207519, | |
0.00636787223815918, | |
0.006445888042449951, | |
0.006403264045715332, | |
0.0065114560127258305, | |
0.006366432189941406, | |
0.00644652795791626, | |
0.006764927864074707, | |
0.0065081920623779295, | |
0.006509727954864502, | |
0.006476736068725586, | |
0.0064932479858398435, | |
0.006369919776916504, | |
0.006415328025817871, | |
0.006381152153015136, | |
0.00644220781326294, | |
0.006382207870483398, | |
0.006563168048858642, | |
0.0066267518997192385, | |
0.006388639926910401, | |
0.006398911952972412, | |
0.006472224235534668, | |
0.00638918399810791, | |
0.006376543998718262, | |
0.0064132800102233885, | |
0.006390687942504883, | |
0.006414048194885254, | |
0.006541440010070801, | |
0.006444320201873779, | |
0.00653718376159668, | |
0.006557087898254394, | |
0.006459743976593018, | |
0.006429535865783691, | |
0.006328447818756104, | |
0.006316351890563965, | |
0.006491424083709717 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 154.2508602712279 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.463134011538508e-08, | |
"ram": 4.0804320587765965e-08, | |
"gpu": 1.4585139593915644e-07, | |
"total": 2.612870566423074e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3827208.3311381326 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 79, | |
"total": 0.4813978862762451, | |
"mean": 0.006093644130079051, | |
"stdev": 0.0001796761954027384, | |
"p50": 0.0060590081214904785, | |
"p90": 0.0061765632629394536, | |
"p95": 0.006254489469528198, | |
"p99": 0.006869565382003784, | |
"values": [ | |
0.006713344097137451, | |
0.006779903888702392, | |
0.007187456130981445, | |
0.006086656093597412, | |
0.006128640174865723, | |
0.006073344230651856, | |
0.006057024002075195, | |
0.006111231803894043, | |
0.006138879776000977, | |
0.006030335903167725, | |
0.005984255790710449, | |
0.006096896171569824, | |
0.006111231803894043, | |
0.0061859841346740725, | |
0.005964799880981446, | |
0.006046720027923584, | |
0.00602726411819458, | |
0.00607539176940918, | |
0.006119423866271972, | |
0.006145023822784424, | |
0.005967872142791748, | |
0.006087679862976075, | |
0.006043647766113281, | |
0.006079487800598145, | |
0.005952511787414551, | |
0.006004735946655273, | |
0.006112256050109863, | |
0.0060928001403808595, | |
0.00608358383178711, | |
0.005961728096008301, | |
0.00601804780960083, | |
0.006210559844970703, | |
0.00608358383178711, | |
0.00606822395324707, | |
0.006109183788299561, | |
0.005976160049438476, | |
0.0059688959121704105, | |
0.005986303806304932, | |
0.006023168087005615, | |
0.006003712177276611, | |
0.006100992202758789, | |
0.006052864074707031, | |
0.006052864074707031, | |
0.005942240238189698, | |
0.005992447853088379, | |
0.0060631041526794435, | |
0.006015999794006348, | |
0.006135839939117432, | |
0.005991424083709717, | |
0.006065152168273926, | |
0.006364160060882569, | |
0.00608358383178711, | |
0.0061337599754333495, | |
0.006095871925354004, | |
0.006112256050109863, | |
0.005991424083709717, | |
0.006033408164978027, | |
0.0060067839622497555, | |
0.0060590081214904785, | |
0.005991424083709717, | |
0.006179840087890625, | |
0.006242303848266601, | |
0.006005760192871094, | |
0.006017024040222168, | |
0.006057983875274659, | |
0.006004735946655273, | |
0.006000671863555908, | |
0.006020095825195313, | |
0.00601804780960083, | |
0.006034431934356689, | |
0.006159359931945801, | |
0.0060415358543396, | |
0.006144000053405762, | |
0.00617574405670166, | |
0.006078464031219482, | |
0.006049791812896729, | |
0.005947391986846923, | |
0.005942272186279297, | |
0.006095871925354004 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 164.10541519217782 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |