
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
86f8142
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.1+cu124", | |
"_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.261056, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.224-212.876.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.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.34.2", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.3", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.9", | |
"timm_commit": null, | |
"peft_version": "0.12.0", | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 800.54272, | |
"max_global_vram": 1362.624512, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 8.00180029296875, | |
"mean": 8.00180029296875, | |
"stdev": 0.0, | |
"p50": 8.00180029296875, | |
"p90": 8.00180029296875, | |
"p95": 8.00180029296875, | |
"p99": 8.00180029296875, | |
"values": [ | |
8.00180029296875 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 2.4179191847189767e-06, | |
"ram": 1.2996162766903803e-06, | |
"gpu": 3.163058086000023e-06, | |
"total": 6.88059354740938e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1202.87232, | |
"max_global_vram": 1373.110272, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 70, | |
"total": 0.4894219856262206, | |
"mean": 0.006991742651803153, | |
"stdev": 0.0003757592036255631, | |
"p50": 0.007014111995697021, | |
"p90": 0.007478963375091552, | |
"p95": 0.00755321934223175, | |
"p99": 0.00799171404361725, | |
"values": [ | |
0.007919040203094483, | |
0.007706943988800049, | |
0.007176383972167969, | |
0.007087391853332519, | |
0.007145792007446289, | |
0.006984640121459961, | |
0.006953728199005127, | |
0.007307263851165771, | |
0.007478432178497314, | |
0.007511648178100586, | |
0.007347487926483155, | |
0.007587232112884521, | |
0.007483744144439698, | |
0.007511168003082275, | |
0.00743993616104126, | |
0.007133471965789795, | |
0.006943808078765869, | |
0.00693171215057373, | |
0.006998144149780274, | |
0.007013343811035157, | |
0.007041984081268311, | |
0.007191296100616455, | |
0.007187295913696289, | |
0.007074719905853272, | |
0.0070193600654602055, | |
0.007140639781951904, | |
0.007082719802856446, | |
0.007072288036346436, | |
0.006973504066467285, | |
0.007027647972106934, | |
0.007031839847564697, | |
0.007014880180358887, | |
0.006989952087402344, | |
0.00696284818649292, | |
0.007113823890686035, | |
0.00723798418045044, | |
0.007309152126312256, | |
0.007046720027923584, | |
0.007164671897888184, | |
0.00697763204574585, | |
0.006955071926116944, | |
0.006839615821838379, | |
0.007028895854949951, | |
0.0066212158203125, | |
0.007107840061187744, | |
0.007350080013275147, | |
0.007426080226898194, | |
0.008153471946716308, | |
0.006897056102752685, | |
0.006948192119598389, | |
0.006864480018615723, | |
0.006819647789001465, | |
0.00667577600479126, | |
0.00674399995803833, | |
0.006475552082061768, | |
0.006475168228149414, | |
0.006496416091918945, | |
0.006478591918945313, | |
0.0064984321594238285, | |
0.006472256183624268, | |
0.006458144187927246, | |
0.0064663681983947756, | |
0.006463295936584472, | |
0.006461408138275147, | |
0.006474175930023193, | |
0.00658355188369751, | |
0.00645743989944458, | |
0.006449408054351806, | |
0.00647980785369873, | |
0.006478271961212158 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 286.05171837727823 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 8.018805236487366e-08, | |
"ram": 4.379106538927606e-08, | |
"gpu": 1.6274787794593598e-07, | |
"total": 2.867269957000857e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 6975276.238348988 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1221.218304, | |
"max_global_vram": 1373.110272, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 70, | |
"total": 0.5131463046073915, | |
"mean": 0.007330661494391306, | |
"stdev": 0.00037284651122177344, | |
"p50": 0.0073773119449615475, | |
"p90": 0.007849366569519043, | |
"p95": 0.00788303050994873, | |
"p99": 0.008130822324752807, | |
"values": [ | |
0.008160608291625977, | |
0.007939231872558595, | |
0.007470975875854493, | |
0.007426047801971435, | |
0.007469312191009521, | |
0.007284480094909668, | |
0.007425536155700683, | |
0.00788640022277832, | |
0.008117440223693848, | |
0.007814752101898194, | |
0.007847040176391602, | |
0.0078789119720459, | |
0.00787663984298706, | |
0.007793024063110352, | |
0.007821087837219238, | |
0.0074898238182067875, | |
0.007275519847869873, | |
0.007382368087768555, | |
0.007351295948028564, | |
0.007360000133514405, | |
0.00744268798828125, | |
0.007657760143280029, | |
0.0075313601493835446, | |
0.007379136085510254, | |
0.0074878082275390626, | |
0.0074202880859375, | |
0.007475359916687012, | |
0.0072499198913574215, | |
0.007375487804412842, | |
0.007481184005737305, | |
0.007282048225402832, | |
0.007383935928344727, | |
0.007371359825134277, | |
0.0073805441856384275, | |
0.007716032028198242, | |
0.007505184173583985, | |
0.007513055801391602, | |
0.007438560009002685, | |
0.00730841588973999, | |
0.007546175956726074, | |
0.007315008163452148, | |
0.007073215961456299, | |
0.007203839778900147, | |
0.007189951896667481, | |
0.0076344962120056155, | |
0.007766784191131592, | |
0.007870304107666015, | |
0.007526144027709961, | |
0.007194591999053955, | |
0.007217887878417969, | |
0.007199295997619629, | |
0.007112736225128174, | |
0.0070548801422119145, | |
0.007023327827453614, | |
0.0067890238761901854, | |
0.006761983871459961, | |
0.006801152229309082, | |
0.006801951885223389, | |
0.006774240016937256, | |
0.0067768959999084475, | |
0.0069303040504455566, | |
0.006762271881103516, | |
0.00680022382736206, | |
0.0067703680992126465, | |
0.006858367919921875, | |
0.0068072319030761715, | |
0.0067775678634643555, | |
0.006749311923980713, | |
0.006793248176574707, | |
0.006792895793914795 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 136.41333742733866 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.626703266803118e-08, | |
"ram": 4.1419008111934396e-08, | |
"gpu": 1.292077649751172e-07, | |
"total": 2.4689380575508275e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 4050324.3770805425 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 70, | |
"total": 0.47921855974197397, | |
"mean": 0.006845979424885342, | |
"stdev": 0.00031921300407859255, | |
"p50": 0.006866431951522827, | |
"p90": 0.0072939521789550784, | |
"p95": 0.0073345535516738895, | |
"p99": 0.007562557492256165, | |
"values": [ | |
0.0075632638931274416, | |
0.007346176147460938, | |
0.0069550080299377445, | |
0.006907904148101806, | |
0.006916096210479736, | |
0.00679423999786377, | |
0.006907904148101806, | |
0.007291903972625732, | |
0.007562240123748779, | |
0.007292928218841553, | |
0.007303167819976806, | |
0.007332863807678222, | |
0.0073359360694885255, | |
0.007243807792663574, | |
0.007279615879058838, | |
0.006978559970855713, | |
0.006791168212890625, | |
0.006869984149932861, | |
0.006855679988861084, | |
0.006853631973266602, | |
0.0069211840629577635, | |
0.007134208202362061, | |
0.006985727787017822, | |
0.006879231929779053, | |
0.006966271877288818, | |
0.006907904148101806, | |
0.006952960014343262, | |
0.006751232147216797, | |
0.006864895820617676, | |
0.006957056045532227, | |
0.006761472225189209, | |
0.006870016098022461, | |
0.006867968082427979, | |
0.006862815856933594, | |
0.007174143791198731, | |
0.006971392154693603, | |
0.0069959678649902345, | |
0.006922239780426025, | |
0.006814720153808594, | |
0.007044095993041993, | |
0.006808576107025147, | |
0.006597631931304931, | |
0.006767615795135498, | |
0.006752255916595459, | |
0.0071157760620117185, | |
0.007250912189483642, | |
0.007305215835571289, | |
0.007078911781311035, | |
0.006758399963378906, | |
0.006776832103729248, | |
0.006760447978973389, | |
0.006696959972381592, | |
0.006647744178771973, | |
0.0066119680404663084, | |
0.006398975849151611, | |
0.006371327877044678, | |
0.006396927833557129, | |
0.006405119895935059, | |
0.006370304107666015, | |
0.006359039783477783, | |
0.006524960041046143, | |
0.00636518383026123, | |
0.00638156795501709, | |
0.00638156795501709, | |
0.006461440086364746, | |
0.006378496170043945, | |
0.006387712001800537, | |
0.0063539199829101565, | |
0.006370304107666015, | |
0.006394879817962646 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 146.07113722325397 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |