{ "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": {}, "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": 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": "5ae03a669d2c4893dc609854294ec3bac19528a3", "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": 901.300224, "max_global_vram": 1011.744768, "max_process_vram": 46789.91872, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 7.707935546875, "mean": 7.707935546875, "stdev": 0.0, "p50": 7.707935546875, "p90": 7.707935546875, "p95": 7.707935546875, "p99": 7.707935546875, "values": [ 7.707935546875 ] }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1055.739904, "max_global_vram": 1106.137088, "max_process_vram": 300176.134144, "max_reserved": 725.614592, "max_allocated": 513.035264 }, "latency": { "unit": "s", "count": 54, "total": 0.5089496746063232, "mean": 0.009424993974191172, "stdev": 0.00045289339668588537, "p50": 0.009269617080688476, "p90": 0.01016669912338257, "p95": 0.01029922571182251, "p99": 0.010655763330459596, "values": [ 0.009325696945190429, 0.009427616119384766, 0.009353535652160645, 0.009260897636413573, 0.009304576873779297, 0.009430015563964844, 0.009238817214965821, 0.009318817138671874, 0.00940761661529541, 0.009316097259521485, 0.009278336524963378, 0.009258017539978028, 0.009247937202453614, 0.009519136428833008, 0.00932297706604004, 0.009203778266906739, 0.009114337921142577, 0.009086338996887208, 0.009031779289245605, 0.00901081943511963, 0.009058979034423828, 0.009026179313659668, 0.009049538612365723, 0.00902505874633789, 0.009075458526611329, 0.00908105754852295, 0.009050498962402344, 0.009024579048156739, 0.009012739181518554, 0.009031139373779296, 0.009034019470214844, 0.009067459106445313, 0.009211777687072754, 0.009318177223205566, 0.009196898460388184, 0.00979305362701416, 0.010369529724121094, 0.010261369705200194, 0.010576728820800782, 0.010194010734558105, 0.010238970756530762, 0.01005161190032959, 0.009983451843261718, 0.010012091636657715, 0.00997081184387207, 0.010102972030639649, 0.009801533699035645, 0.010744887351989746, 0.009182977676391601, 0.009397855758666992, 0.009289216995239259, 0.009135137557983399, 0.009037379264831544, 0.00908537769317627 ] }, "throughput": { "unit": "tokens/s", "value": 212.20172718164892 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1055.739904, "max_global_vram": 1107.525632, "max_process_vram": 290768.56832, "max_reserved": 725.614592, "max_allocated": 513.259008 }, "latency": { "unit": "s", "count": 54, "total": 0.4956387300491333, "mean": 0.009178495000909875, "stdev": 0.0004284152086282379, "p50": 0.009022179126739503, "p90": 0.009942477130889893, "p95": 0.01006700382232666, "p99": 0.010382510948181153, "values": [ 0.009108098030090332, 0.009018178939819335, 0.009015620231628418, 0.008931778907775878, 0.009103458404541015, 0.00908249855041504, 0.00903705883026123, 0.009046659469604493, 0.009026179313659668, 0.009344576835632324, 0.009108259201049804, 0.008991938591003418, 0.00907913875579834, 0.009084259033203125, 0.008964739799499511, 0.008903619766235351, 0.00884041976928711, 0.008820099830627441, 0.008878819465637207, 0.008825221061706544, 0.008802821159362793, 0.008780900955200194, 0.008910018920898438, 0.008804579734802247, 0.008846659660339356, 0.008892419815063477, 0.00874362087249756, 0.00878506088256836, 0.008895139694213867, 0.00882042121887207, 0.008866660118103028, 0.008905380249023438, 0.009002498626708984, 0.009082979202270507, 0.009105057716369628, 0.010338970184326172, 0.010103611946105958, 0.010431610107421874, 0.00997305202484131, 0.009952893257141113, 0.009825533866882324, 0.009918172836303711, 0.009673375129699707, 0.009580095291137696, 0.009619935035705567, 0.009468095779418945, 0.01004729175567627, 0.009098498344421387, 0.00915689754486084, 0.009038179397583009, 0.008983457565307617, 0.00901465892791748, 0.008965538978576661, 0.008994020462036133 ] }, "throughput": { "unit": "tokens/s", "value": 108.95032354442301 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 54, "total": 0.45547788047790533, "mean": 0.008434775564405653, "stdev": 0.000371432258656553, "p50": 0.00832106351852417, "p90": 0.00907854700088501, "p95": 0.00917760977745056, "p99": 0.009521028280258179, "values": [ 0.008421222686767578, 0.008341863632202148, 0.008320903778076172, 0.008272583961486817, 0.00840682315826416, 0.008325063705444335, 0.00832138442993164, 0.008337223052978515, 0.008321223258972167, 0.00859818172454834, 0.008330663681030274, 0.008304903984069825, 0.008387462615966797, 0.008369063377380371, 0.008269063949584961, 0.008215785026550293, 0.008140105247497559, 0.008167143821716308, 0.008141863822937011, 0.008138825416564941, 0.008126025199890136, 0.008115144729614257, 0.008253064155578613, 0.008150665283203126, 0.00815258502960205, 0.008187145233154296, 0.008102985382080078, 0.0081137056350708, 0.00817674446105957, 0.008085705757141114, 0.008195144653320312, 0.008162184715270996, 0.008325223922729491, 0.008402823448181152, 0.008297224044799805, 0.009446656227111817, 0.009257377624511719, 0.009604894638061523, 0.009134657859802246, 0.00912137794494629, 0.0090506591796875, 0.00909049892425537, 0.008893059730529786, 0.008804100036621094, 0.008868900299072266, 0.00870858097076416, 0.008786500930786133, 0.008307144165039063, 0.00836874294281006, 0.008346343994140625, 0.008173544883728028, 0.008201384544372558, 0.008184584617614746, 0.008151144981384277 ] }, "throughput": { "unit": "tokens/s", "value": 118.5568000433766 }, "energy": null, "efficiency": null } } }