{ "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": 1078.755328, "max_global_vram": 68702.69952, "max_process_vram": 49663.83616, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 8.723337890625, "mean": 8.723337890625, "stdev": 0.0, "p50": 8.723337890625, "p90": 8.723337890625, "p95": 8.723337890625, "p99": 8.723337890625, "values": [ 8.723337890625 ] }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1248.13312, "max_global_vram": 68702.69952, "max_process_vram": 275409.195008, "max_reserved": 725.614592, "max_allocated": 513.035264 }, "latency": { "unit": "s", "count": 56, "total": 0.5353316631317139, "mean": 0.00955949398449489, "stdev": 0.0030006633645807616, "p50": 0.009041738033294677, "p90": 0.009249257564544679, "p95": 0.01812135553359985, "p99": 0.021567067050933843, "values": [ 0.0091934175491333, 0.00896397876739502, 0.008930218696594239, 0.008548619270324707, 0.008584939956665039, 0.008407499313354492, 0.008283980369567871, 0.008210539817810059, 0.008340620040893554, 0.009021417617797851, 0.010539653778076172, 0.008039660453796386, 0.017779956817626952, 0.008296460151672362, 0.008402058601379395, 0.008005101203918457, 0.008040781021118165, 0.00800253963470459, 0.008031661033630372, 0.009037418365478516, 0.008213900566101074, 0.008087660789489746, 0.008604458808898926, 0.008073740959167481, 0.008031181335449219, 0.008035660743713379, 0.008033740997314453, 0.019145551681518554, 0.008528139114379883, 0.00808046054840088, 0.009075818061828613, 0.009111658096313476, 0.009053737640380859, 0.00904605770111084, 0.009215977668762207, 0.00903725814819336, 0.00921053695678711, 0.009084458351135255, 0.009223177909851074, 0.009066858291625977, 0.009075178146362304, 0.009004298210144044, 0.022877384185791015, 0.009089418411254883, 0.009048618316650391, 0.009275337219238282, 0.009099818229675294, 0.0090873384475708, 0.00908029842376709, 0.009079338073730469, 0.009122697830200196, 0.009107337951660157, 0.009092137336730957, 0.009100297927856445, 0.009076618194580078, 0.0204949893951416 ] }, "throughput": { "unit": "tokens/s", "value": 209.2160948313706 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1248.13312, "max_global_vram": 68702.69952, "max_process_vram": 294893.387776, "max_reserved": 725.614592, "max_allocated": 513.259008 }, "latency": { "unit": "s", "count": 56, "total": 0.4793585214614869, "mean": 0.00855997359752655, "stdev": 0.0004437749362492994, "p50": 0.00872501850128174, "p90": 0.008945818901062011, "p95": 0.009024378776550292, "p99": 0.009512945127487182, "values": [ 0.008862857818603515, 0.008719818115234375, 0.00860141944885254, 0.00849213981628418, 0.00859725856781006, 0.008272780418395995, 0.008042221069335937, 0.008078060150146484, 0.00855949878692627, 0.009636937141418457, 0.007941580772399903, 0.007824141025543213, 0.007863020896911621, 0.007925580978393555, 0.00835886001586914, 0.008030540466308593, 0.00779870080947876, 0.007936460971832275, 0.0087052583694458, 0.00823214054107666, 0.007884459972381592, 0.0077889409065246586, 0.008573739051818848, 0.007930220127105713, 0.007976460933685302, 0.008470060348510743, 0.007914700984954833, 0.008379980087280274, 0.008176621437072753, 0.008286700248718262, 0.008864137649536133, 0.008953898429870606, 0.008867018699645996, 0.008910218238830566, 0.008901577949523926, 0.009013419151306152, 0.008921258926391602, 0.008906858444213867, 0.008867498397827148, 0.008905258178710938, 0.008813578605651856, 0.008911178588867188, 0.008914857864379884, 0.008798378944396973, 0.008818058967590333, 0.008730218887329102, 0.008878058433532714, 0.008816299438476562, 0.009411497116088867, 0.008853419303894043, 0.009057257652282715, 0.008955339431762695, 0.008837418556213379, 0.008868296623229981, 0.008937739372253417, 0.008784619331359864 ] }, "throughput": { "unit": "tokens/s", "value": 116.82279023488523 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 56, "total": 0.43852485704421995, "mean": 0.007830801018646786, "stdev": 0.00040568347969272125, "p50": 0.00805430030822754, "p90": 0.008203819751739502, "p95": 0.008271659851074219, "p99": 0.008472091722488403, "values": [ 0.008077099800109863, 0.007953259944915771, 0.007816940784454345, 0.007693901062011719, 0.00788766098022461, 0.007412941932678223, 0.007314221858978271, 0.007354541778564453, 0.007816141128540038, 0.008125579833984375, 0.007285741806030274, 0.007240142822265625, 0.007124302864074707, 0.0072451019287109375, 0.00768926191329956, 0.007367822170257568, 0.0071649417877197264, 0.007279182910919189, 0.008055500030517578, 0.007553582191467285, 0.007207181930541992, 0.007188621997833252, 0.00787614107131958, 0.007212781906127929, 0.0072163019180297855, 0.007788461208343506, 0.007211342811584472, 0.00764126205444336, 0.007449902057647705, 0.007543821811676025, 0.008144940376281738, 0.00820125961303711, 0.00811742115020752, 0.008206379890441895, 0.0081875, 0.008267339706420898, 0.00828462028503418, 0.00820814037322998, 0.008180780410766602, 0.008137900352478028, 0.008123981475830077, 0.008157099723815918, 0.008173740386962891, 0.008099020957946778, 0.008113900184631347, 0.00810478115081787, 0.00811341953277588, 0.008134060859680176, 0.008687338829040527, 0.008158860206604003, 0.008152780532836914, 0.008295980453491211, 0.008130861282348632, 0.00816797924041748, 0.008127981185913086, 0.0080531005859375 ] }, "throughput": { "unit": "tokens/s", "value": 127.70085686238093 }, "energy": null, "efficiency": null } } }