{ "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": "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", "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.2.0", "optimum_benchmark_commit": "6422f8f56820540ec4876445962a50a44754b92e", "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": "1.0.3", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 1045.17632, "max_global_vram": 1118.420992, "max_process_vram": 298939.015168, "max_reserved": 725.614592, "max_allocated": 512.832512 }, "latency": { "unit": "s", "count": 55, "total": 0.5023045377731324, "mean": 0.009132809777693315, "stdev": 0.0006018544559813079, "p50": 0.009191329002380372, "p90": 0.009691839218139648, "p95": 0.00984756679534912, "p99": 0.010813051433563233, "values": [ 0.011714200019836425, 0.009274527549743653, 0.009215489387512207, 0.008784770011901855, 0.008660131454467774, 0.008478852272033691, 0.008363011360168458, 0.00925596809387207, 0.009471327781677245, 0.00935484790802002, 0.009381248474121093, 0.009799806594848633, 0.009725566864013671, 0.009959007263183594, 0.009641247749328613, 0.00944108772277832, 0.009367327690124511, 0.009339967727661132, 0.010045406341552734, 0.009617246627807618, 0.009762846946716308, 0.009560288429260254, 0.009535167694091797, 0.009474528312683106, 0.009439008712768555, 0.009599327087402344, 0.009554368019104004, 0.008568129539489745, 0.008321731567382813, 0.008311491966247558, 0.008172932624816895, 0.008098213195800782, 0.008251651763916016, 0.00809037208557129, 0.008987489700317383, 0.009244769096374512, 0.00881997013092041, 0.008607490539550781, 0.008923169136047363, 0.009245087623596191, 0.009131169319152832, 0.009119809150695801, 0.009225728034973145, 0.009191329002380372, 0.009154369354248047, 0.009291648864746094, 0.009125728607177735, 0.00907900905609131, 0.009184928894042968, 0.008829250335693359, 0.009047490119934082, 0.008889570236206054, 0.008548451423645019, 0.008501730918884277, 0.008525251388549804 ] }, "throughput": { "unit": "tokens/s", "value": 218.99065552476037 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1045.17632, "max_global_vram": 1118.420992, "max_process_vram": 270515.306496, "max_reserved": 725.614592, "max_allocated": 513.056256 }, "latency": { "unit": "s", "count": 55, "total": 0.5088627586364746, "mean": 0.009252050157026813, "stdev": 0.0006519687783885451, "p50": 0.009278847694396972, "p90": 0.009848894882202149, "p95": 0.009944334506988525, "p99": 0.011147012290954592, "values": [ 0.009219808578491211, 0.009661087036132813, 0.009100289344787597, 0.008825570106506348, 0.008678689956665039, 0.008491010665893554, 0.008434532165527343, 0.009506688117980958, 0.00920060920715332, 0.009486687660217286, 0.009550687789916992, 0.009970206260681153, 0.009933246612548827, 0.009770047187805176, 0.009629886627197265, 0.009486528396606445, 0.009457247734069824, 0.009860286712646485, 0.009916605949401856, 0.009831807136535645, 0.009755967140197754, 0.009770207405090332, 0.00959180736541748, 0.009500288009643554, 0.009609247207641601, 0.012361878395080567, 0.010112126350402833, 0.008685730934143066, 0.00848237133026123, 0.008369251251220703, 0.008363011360168458, 0.008241572380065919, 0.008273411750793457, 0.008191493034362793, 0.00927052879333496, 0.009196768760681153, 0.008687010765075684, 0.009026209831237792, 0.009307808876037597, 0.009283808708190918, 0.009398528099060059, 0.009253088951110839, 0.009408928871154786, 0.009326369285583495, 0.009278847694396972, 0.009284768104553223, 0.009269728660583496, 0.009255007743835449, 0.009283808708190918, 0.008916609764099121, 0.009270208358764648, 0.008774370193481444, 0.008591330528259278, 0.008754851341247559, 0.008704289436340332 ] }, "throughput": { "unit": "tokens/s", "value": 108.08415248813938 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 54, "total": 0.9925950279235841, "mean": 0.018381389405992293, "stdev": 0.001094082289675191, "p50": 0.01850081729888916, "p90": 0.019691404342651368, "p95": 0.019849700736999508, "p99": 0.020936798534393307, "values": [ 0.01887513542175293, 0.018470176696777342, 0.017693859100341797, 0.017431779861450194, 0.017026021957397462, 0.016853864669799806, 0.01874825668334961, 0.018755775451660156, 0.0188591365814209, 0.01894153594970703, 0.019775131225585937, 0.019735132217407227, 0.019811452865600584, 0.01933353614807129, 0.018990976333618164, 0.018887775421142578, 0.01911897659301758, 0.020089372634887696, 0.019484254837036134, 0.019589372634887695, 0.019386016845703125, 0.019191616058349608, 0.01903817558288574, 0.0190383358001709, 0.021892406463623046, 0.019920732498168944, 0.017294662475585938, 0.016876102447509766, 0.016718984603881836, 0.016561704635620116, 0.016372743606567382, 0.01655914306640625, 0.016311464309692384, 0.018250978469848633, 0.0184800968170166, 0.017582979202270508, 0.017620420455932616, 0.018268577575683592, 0.01856585693359375, 0.018560897827148436, 0.01841289520263672, 0.01866841506958008, 0.018527296066284178, 0.0185007381439209, 0.018614015579223632, 0.018433055877685546, 0.018374658584594725, 0.018500896453857423, 0.017819139480590822, 0.01830953788757324, 0.01774873924255371, 0.01716650199890137, 0.017249059677124024, 0.01730665969848633 ] }, "throughput": { "unit": "tokens/s", "value": 54.40285159695285 }, "energy": null, "efficiency": null } } }