{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.3.1+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": "6", "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": "warn", "numactl": false, "numactl_kwargs": {}, "start_method": "spawn" }, "environment": { "cpu": " AMD EPYC 7763 64-Core Processor", "cpu_count": 128, "cpu_ram_mb": 1082014.482432, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.15.0-122-generic-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.12", "gpu": [ "Advanced Micro Devices, Inc. [AMD/ATI]", "Advanced Micro Devices, Inc. [AMD/ATI]", "Advanced Micro Devices, Inc. [AMD/ATI]", "Advanced Micro Devices, Inc. [AMD/ATI]", "Advanced Micro Devices, Inc. [AMD/ATI]", "Advanced Micro Devices, Inc. [AMD/ATI]", "Advanced Micro Devices, Inc. [AMD/ATI]", "Advanced Micro Devices, Inc. [AMD/ATI]" ], "gpu_count": 8, "gpu_vram_mb": 549621596160, "optimum_benchmark_version": "0.5.0", "optimum_benchmark_commit": null, "transformers_version": "4.45.2", "transformers_commit": null, "accelerate_version": "1.0.0", "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.13.0", "peft_commit": null }, "print_report": true, "log_report": true }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 1105.199104, "max_global_vram": 68702.69952, "max_process_vram": 4719.816704, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "values": [ 0.08140890502929687 ], "count": 1, "total": 0.08140890502929687, "mean": 0.08140890502929687, "p50": 0.08140890502929687, "p90": 0.08140890502929687, "p95": 0.08140890502929687, "p99": 0.08140890502929687, "stdev": 0, "stdev_": 0 }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1271.476224, "max_global_vram": 68702.69952, "max_process_vram": 293908.529152, "max_reserved": 725.614592, "max_allocated": 513.235456 }, "latency": { "unit": "s", "values": [ 0.00840032958984375, 0.009163532257080078, 0.009169450759887695, 0.00917633056640625, 0.009160011291503907, 0.009126252174377441, 0.009146890640258788, 0.00917617130279541, 0.009141772270202637, 0.009186251640319824, 0.009187211036682129, 0.00916833209991455, 0.009162411689758301, 0.009297131538391113, 0.009130890846252442, 0.009247052192687987, 0.00917489242553711, 0.00915969181060791, 0.009193930625915527, 0.009163050651550294, 0.009145450592041016, 0.00928689193725586, 0.00915713119506836, 0.009238091468811035, 0.009172971725463868, 0.009246891975402832, 0.009169610977172851, 0.009151532173156738, 0.00919265079498291, 0.008656330108642578, 0.008708331108093261, 0.009258412361145019, 0.009132330894470214, 0.009101291656494141, 0.008166569709777832, 0.008168971061706543, 0.009012491226196288, 0.009181772232055664, 0.008363210678100585, 0.008216490745544433, 0.00814801025390625, 0.008104809761047363, 0.008277291297912598, 0.008134249687194825, 0.008104490280151368, 0.00828113079071045, 0.008083049774169921, 0.008180970191955567, 0.00815680980682373, 0.00817216968536377, 0.00855233097076416, 0.009045612335205079, 0.008905611038208007, 0.008200489997863769, 0.008193450927734375, 0.008110250473022461, 0.008081609725952149, 0.008107050895690918 ], "count": 58, "total": 0.510298399925232, "mean": 0.008798248274572965, "p50": 0.009131610870361328, "p90": 0.00920717887878418, "p95": 0.009248756217956542, "p99": 0.009291294965744018, "stdev": 0.00046738690102333556, "stdev_": 5.3122722437157055 }, "throughput": { "unit": "tokens/s", "value": 227.31797712278956 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1271.476224, "max_global_vram": 68702.69952, "max_process_vram": 310669.754368, "max_reserved": 725.614592, "max_allocated": 513.257984 }, "latency": { "unit": "s", "values": [ 0.008212329864501954, 0.008716330528259278, 0.009072972297668456, 0.009016012191772461, 0.008868651390075684, 0.008860811233520508, 0.008809771537780762, 0.008822251319885253, 0.008952971458435058, 0.008886091232299805, 0.008918411254882812, 0.008885130882263184, 0.008944491386413574, 0.008806731224060059, 0.008960810661315918, 0.008965291023254395, 0.008892650604248048, 0.008968331336975098, 0.008878891944885253, 0.009054572105407714, 0.008835050582885742, 0.008857131004333496, 0.008777291297912597, 0.008871850967407226, 0.008901611328125, 0.008746090888977051, 0.00872097110748291, 0.008815690994262696, 0.008922411918640136, 0.008549611091613769, 0.00860641098022461, 0.008874731063842773, 0.008854250907897949, 0.008155850410461426, 0.007996970176696778, 0.008038570404052734, 0.008900330543518067, 0.008848650932312012, 0.00790592908859253, 0.007952809810638428, 0.007993929862976075, 0.00803505039215088, 0.00801537036895752, 0.008004969596862792, 0.007787690162658691, 0.008008649826049805, 0.007946569919586182, 0.007774889945983887, 0.00795152997970581, 0.007971529960632323, 0.007950570106506348, 0.008779530525207519, 0.007997769832611084, 0.007993929862976075, 0.008131529808044434, 0.008068010330200196, 0.008008009910583496, 0.00808912944793701 ], "count": 58, "total": 0.4941343808174135, "mean": 0.008519558289955402, "p50": 0.008778410911560057, "p90": 0.008955323219299316, "p95": 0.008975483465194703, "p99": 0.009062484188079834, "stdev": 0.0004340541169001842, "stdev_": 5.094796022605257 }, "throughput": { "unit": "tokens/s", "value": 117.37697729928142 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "values": [ 0.007372649192810059, 0.007988170146942138, 0.008257930755615234, 0.008132011413574218, 0.007991849899291992, 0.008019209861755371, 0.008063051223754883, 0.00798753023147583, 0.00807600975036621, 0.008081130027770996, 0.008058569908142089, 0.007992330074310303, 0.008097769737243653, 0.00802688980102539, 0.008067689895629882, 0.008087530136108398, 0.008072010040283203, 0.00815248966217041, 0.008006731033325195, 0.008135849952697755, 0.008021289825439454, 0.008010569572448731, 0.007963210105895997, 0.00801537036895752, 0.008095529556274414, 0.008004329681396484, 0.0080076904296875, 0.007995210170745849, 0.008151050567626952, 0.007614409923553467, 0.007901450157165528, 0.00804720973968506, 0.008061610221862792, 0.007358088970184327, 0.007181448936462402, 0.007244648933410644, 0.00811697006225586, 0.007953289985656739, 0.007125607967376709, 0.007082408905029297, 0.007138248920440674, 0.007205769062042237, 0.007177128791809082, 0.007140169143676758, 0.007145449161529541, 0.0071337690353393554, 0.007170568943023681, 0.007100489139556885, 0.007108169078826904, 0.007146889209747314, 0.0071782488822937016, 0.007953609943389893, 0.007288488864898681, 0.007204329013824463, 0.007275689125061035, 0.0071697688102722165, 0.00719952917098999, 0.007375368118286133 ], "count": 58, "total": 0.44673047924041753, "mean": 0.0077022496420761635, "p50": 0.007987850189208983, "p90": 0.008103529834747315, "p95": 0.008138130044937134, "p99": 0.008197829332351685, "stdev": 0.0004204158587512796, "stdev_": 5.4583514984325445 }, "throughput": { "unit": "tokens/s", "value": 129.83219792528655 }, "energy": null, "efficiency": null } } }