{ "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": "5", "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": 1082015.256576, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.15.0-101-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.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": 1043.247104, "max_global_vram": 68702.69952, "max_process_vram": 45415.432192, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 8.367431640625, "mean": 8.367431640625, "stdev": 0.0, "p50": 8.367431640625, "p90": 8.367431640625, "p95": 8.367431640625, "p99": 8.367431640625, "values": [ 8.367431640625 ] }, "throughput": null, "energy": null, "efficiency": null, "measures": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1212.612608, "max_global_vram": 68702.69952, "max_process_vram": 281661.939712, "max_reserved": 725.614592, "max_allocated": 513.035264 }, "latency": { "unit": "s", "count": 58, "total": 0.5181479825973512, "mean": 0.00893358590685088, "stdev": 0.0007658238908340112, "p50": 0.008807076454162597, "p90": 0.009048018646240235, "p95": 0.009226009798049927, "p99": 0.011787808895111083, "values": [ 0.009214513778686524, 0.009291153907775879, 0.008987794876098633, 0.008765715599060059, 0.0087524356842041, 0.00874587631225586, 0.008729235649108887, 0.008773877143859863, 0.008827316284179687, 0.008723636627197266, 0.008847636222839355, 0.008839956283569336, 0.008781076431274414, 0.008978675842285157, 0.008846675872802735, 0.008761555671691894, 0.00886491584777832, 0.00900091552734375, 0.008996115684509278, 0.008777396202087402, 0.008710516929626464, 0.008773076057434081, 0.008849716186523438, 0.01451640796661377, 0.008962835311889648, 0.009006196022033692, 0.009082514762878418, 0.009002676010131836, 0.008876115798950195, 0.008902996063232423, 0.009028915405273438, 0.008907635688781739, 0.008893715858459472, 0.008837716102600097, 0.008819315910339355, 0.008740276336669921, 0.00879483699798584, 0.008785395622253419, 0.00872107696533203, 0.008851635932922363, 0.009033234596252441, 0.008854195594787598, 0.009729392051696777, 0.009148754119873048, 0.008638997077941895, 0.008756436347961426, 0.008596117019653321, 0.00861899757385254, 0.00865611743927002, 0.008658677101135255, 0.008641716957092285, 0.0086332368850708, 0.008594358444213867, 0.008665716171264649, 0.008574836730957032, 0.008591156959533691, 0.008597077369689942, 0.008588916778564453 ] }, "throughput": { "unit": "tokens/s", "value": 223.8742673830745 }, "energy": null, "efficiency": null, "measures": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1212.637184, "max_global_vram": 68702.69952, "max_process_vram": 302773.57568, "max_reserved": 725.614592, "max_allocated": 513.259008 }, "latency": { "unit": "s", "count": 58, "total": 0.48895133638381966, "mean": 0.008430195454893442, "stdev": 0.0014566379032155664, "p50": 0.008228679180145264, "p90": 0.008515173816680908, "p95": 0.008637028551101685, "p99": 0.01333178178787231, "values": [ 0.008822996139526368, 0.00851243782043457, 0.008276119232177734, 0.008245399475097656, 0.008183320045471192, 0.008159799575805664, 0.008177240371704102, 0.008159479141235352, 0.00820139980316162, 0.008408597946166992, 0.008344119071960449, 0.008226038932800293, 0.008218198776245118, 0.00821099853515625, 0.008231319427490235, 0.008145879745483399, 0.00821660041809082, 0.008494518280029296, 0.008202519416809082, 0.008231319427490235, 0.008262518882751466, 0.008239639282226563, 0.008456117630004882, 0.008195638656616211, 0.00820300006866455, 0.008555316925048828, 0.008521557807922363, 0.008388117790222168, 0.008358838081359864, 0.008414677619934082, 0.008394198417663574, 0.00843483829498291, 0.008370358467102051, 0.00833579921722412, 0.008253398895263673, 0.008392599105834961, 0.008249078750610352, 0.00821147918701172, 0.008178519248962403, 0.0086049165725708, 0.00843163776397705, 0.008288759231567383, 0.019308544158935546, 0.007978681087493897, 0.007930360794067382, 0.007922201156616212, 0.007959801197052002, 0.007952600002288819, 0.00881899642944336, 0.00817707920074463, 0.007957080841064453, 0.007929399967193603, 0.008020279884338379, 0.00794844102859497, 0.007911320209503175, 0.00790700101852417, 0.007908121109008789, 0.007912120819091796 ] }, "throughput": { "unit": "tokens/s", "value": 118.62121173234885 }, "energy": null, "efficiency": null, "measures": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 58, "total": 0.46045883321762093, "mean": 0.007938945400303809, "stdev": 0.001471732096120413, "p50": 0.007727161884307861, "p90": 0.007956408739089966, "p95": 0.008075255966186523, "p99": 0.012937635641098018, "values": [ 0.008151960372924805, 0.007918840885162353, 0.00778092098236084, 0.007743641853332519, 0.007685401916503906, 0.007670842170715332, 0.007694682121276855, 0.007683961868286133, 0.007707481861114502, 0.007905721187591553, 0.0078388409614563, 0.007739480972290039, 0.007724442005157471, 0.00772252082824707, 0.007711000919342041, 0.007657082080841065, 0.007700441837310791, 0.007941880226135255, 0.00770556116104126, 0.007708442211151123, 0.0077551608085632325, 0.0077298817634582516, 0.007951321125030518, 0.007651641845703125, 0.007689402103424072, 0.007982359886169434, 0.007968279838562011, 0.007866361141204835, 0.007827321052551269, 0.007900600910186767, 0.007871321201324463, 0.007904120922088623, 0.007841081142425536, 0.007809240818023682, 0.007741880893707275, 0.007883161067962647, 0.007731320858001709, 0.007706361770629883, 0.0076865220069885255, 0.008061719894409179, 0.007904440879821777, 0.007776922225952149, 0.018969663619995115, 0.007540283203125, 0.00747756290435791, 0.00749724292755127, 0.007551483154296875, 0.007534361839294433, 0.008387158393859864, 0.007749082088470459, 0.007533563137054443, 0.0074978828430175785, 0.007595962047576905, 0.007519803047180176, 0.007494682788848877, 0.007494682788848877, 0.007492602825164795, 0.007489243030548096 ] }, "throughput": { "unit": "tokens/s", "value": 125.96131470582124 }, "energy": null, "efficiency": null, "measures": null } } }