{ "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": "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": 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.3", "transformers_commit": null, "accelerate_version": "0.31.0", "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": 1031.450624, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210816 }, "latency": { "unit": "s", "count": 71, "total": 0.48975423908233634, "mean": 0.006897947029328682, "stdev": 0.0006439828161385587, "p50": 0.006908095836639404, "p90": 0.0073042879104614255, "p95": 0.007618191957473755, "p99": 0.009899948596954344, "values": [ 0.010236127853393555, 0.009755871772766113, 0.007614943981170654, 0.007192736148834229, 0.006937503814697266, 0.006918752193450927, 0.006982495784759521, 0.007178880214691162, 0.007060927867889404, 0.006908095836639404, 0.007081664085388183, 0.007086495876312256, 0.007035871982574463, 0.0068561921119689945, 0.006947008132934571, 0.0074637441635131835, 0.007045343875885009, 0.007160319805145264, 0.006965536117553711, 0.007071424007415772, 0.007068895816802979, 0.006922976016998291, 0.007019231796264649, 0.006946623802185059, 0.00690447998046875, 0.006887360095977783, 0.007166944026947022, 0.007104544162750244, 0.007045248031616211, 0.007672671794891357, 0.007621439933776855, 0.007229055881500244, 0.007002240180969239, 0.006431839942932129, 0.007046559810638428, 0.0073042879104614255, 0.00742406415939331, 0.007028384208679199, 0.006979680061340332, 0.0069608321189880374, 0.006745855808258056, 0.006751008033752441, 0.006722815990447998, 0.006713664054870606, 0.0067042880058288574, 0.006715680122375488, 0.006716864109039307, 0.006693088054656983, 0.006739456176757813, 0.00651423978805542, 0.006709311962127686, 0.006342847824096679, 0.006337088108062744, 0.0063417601585388185, 0.006323391914367676, 0.006326687812805176, 0.0063136320114135745, 0.0063266558647155765, 0.006346943855285644, 0.006350399971008301, 0.006368256092071533, 0.006396416187286377, 0.006341695785522461, 0.006337279796600342, 0.0063738560676574706, 0.0063438401222229, 0.006300960063934326, 0.00632534408569336, 0.006343999862670899, 0.006316287994384766, 0.006303328037261963 ] }, "throughput": { "unit": "tokens/s", "value": 289.94133928492096 }, "energy": { "unit": "kWh", "cpu": 8.077244481982739e-08, "ram": 4.4161252423207997e-08, "gpu": 1.5882665767346954e-07, "total": 2.8376035491650496e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7048200.939093446 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1031.450624, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.43456 }, "latency": { "unit": "s", "count": 71, "total": 0.5161480011940002, "mean": 0.007269690157661976, "stdev": 0.0005990097216325443, "p50": 0.00724351978302002, "p90": 0.007704192161560058, "p95": 0.00779249620437622, "p99": 0.010090217590332032, "values": [ 0.010237183570861817, 0.010027232170104981, 0.007743680000305176, 0.007453504085540771, 0.007409088134765625, 0.007189504146575928, 0.007324160099029541, 0.007536543846130371, 0.007394495964050293, 0.007481855869293213, 0.007498752117156982, 0.007469823837280273, 0.00745088005065918, 0.007207488059997559, 0.007346144199371338, 0.007776095867156983, 0.00748140811920166, 0.007477312088012695, 0.007400608062744141, 0.007384511947631836, 0.0072633600234985355, 0.007302495956420898, 0.0074215359687805176, 0.007327231884002685, 0.007449984073638916, 0.0073777599334716795, 0.007481184005737305, 0.007411104202270508, 0.007327392101287842, 0.007791776180267334, 0.007908959865570069, 0.007697696208953857, 0.007180255889892578, 0.00704963207244873, 0.007704192161560058, 0.007793216228485107, 0.007694752216339112, 0.0074108800888061524, 0.007313055992126465, 0.00724351978302002, 0.00712505578994751, 0.00709603214263916, 0.007123456001281738, 0.007121312141418457, 0.007156320095062256, 0.0071263999938964845, 0.0071512961387634275, 0.00710262393951416, 0.007092351913452148, 0.007087584018707275, 0.007192927837371826, 0.006706528186798096, 0.006919007778167724, 0.0067023677825927734, 0.006705088138580322, 0.006725183963775635, 0.006696640014648437, 0.006703936100006104, 0.006677087783813477, 0.006688223838806152, 0.006683616161346435, 0.006698272228240967, 0.006685567855834961, 0.006764927864074707, 0.006726912021636963, 0.006741856098175049, 0.0067227201461791996, 0.006688064098358155, 0.006681600093841553, 0.006706783771514893, 0.006708000183105469 ] }, "throughput": { "unit": "tokens/s", "value": 137.55744444569459 }, "energy": { "unit": "kWh", "cpu": 7.783930092622006e-08, "ram": 4.255489187216863e-08, "gpu": 1.4906988493986342e-07, "total": 2.694640777382522e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3711069.795994716 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 71, "total": 0.4826684484481813, "mean": 0.0067981471612419886, "stdev": 0.0005414437005424856, "p50": 0.006772704124450683, "p90": 0.007205887794494629, "p95": 0.007263231992721558, "p99": 0.009418137836456298, "values": [ 0.009531392097473144, 0.009369600296020507, 0.007205887794494629, 0.006936575889587402, 0.006887423992156983, 0.006706175804138184, 0.006804448127746582, 0.007011328220367432, 0.006881279945373535, 0.006945792198181152, 0.006970367908477783, 0.00694271993637085, 0.0069324798583984375, 0.006709248065948486, 0.006750175952911377, 0.0072427520751953125, 0.006947840213775635, 0.006936575889587402, 0.0068731198310852054, 0.006854688167572022, 0.006772704124450683, 0.006774784088134766, 0.006889472007751465, 0.006818816184997558, 0.006941696166992187, 0.006847487926483154, 0.006930431842803955, 0.006862847805023193, 0.0068321280479431154, 0.007266304016113281, 0.00739737606048584, 0.007178239822387696, 0.0067573761940002445, 0.006549439907073975, 0.0071833600997924804, 0.007260159969329834, 0.007208960056304932, 0.006931456089019775, 0.006855648040771484, 0.006817791938781738, 0.006708223819732666, 0.006648831844329834, 0.006710271835327148, 0.006681600093841553, 0.006740992069244385, 0.0067123198509216305, 0.006723584175109864, 0.006688767910003662, 0.006678592205047607, 0.006677504062652588, 0.006780928134918213, 0.006313983917236328, 0.006524928092956543, 0.006307839870452881, 0.006309887886047363, 0.006323200225830078, 0.006292479991912842, 0.006311935901641846, 0.006275072097778321, 0.006295551776885986, 0.006289408206939697, 0.006302720069885254, 0.006292479991912842, 0.006371327877044678, 0.006306816101074219, 0.006347775936126709, 0.006331391811370849, 0.006294528007507324, 0.0062873601913452145, 0.006305759906768799, 0.006316031932830811 ] }, "throughput": { "unit": "tokens/s", "value": 147.09890449286846 }, "energy": null, "efficiency": null } } }