{ "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 7643 48-Core Processor", "cpu_count": 96, "cpu_ram_mb": 1082028.982272, "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": "0aac0108c378c328492774ddb431ea89a3c2b507", "transformers_version": "4.43.3", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.29.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.8", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 902.057984, "max_global_vram": 1011.728384, "max_process_vram": 42462.208, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 6.5946552734375, "mean": 6.5946552734375, "stdev": 0.0, "p50": 6.5946552734375, "p90": 6.5946552734375, "p95": 6.5946552734375, "p99": 6.5946552734375, "values": [ 6.5946552734375 ] }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1056.182272, "max_global_vram": 1106.116608, "max_process_vram": 265791.2832, "max_reserved": 725.614592, "max_allocated": 513.035264 }, "latency": { "unit": "s", "count": 66, "total": 0.5192939043045042, "mean": 0.007868089459159157, "stdev": 0.001150082741614681, "p50": 0.007664036989212036, "p90": 0.008047316074371338, "p95": 0.008291713476181031, "p99": 0.011501576280593824, "values": [ 0.008571791648864745, 0.008576432228088378, 0.008321713447570801, 0.008058675765991211, 0.007967955112457275, 0.007930195808410645, 0.008160593986511231, 0.01693398666381836, 0.00820171356201172, 0.007948115825653076, 0.008006195068359374, 0.007999314785003661, 0.007948596000671387, 0.007771317005157471, 0.0076153168678283695, 0.00759323787689209, 0.007622518062591553, 0.007702036857604981, 0.007630198001861572, 0.007622357845306397, 0.007675157070159912, 0.007731156826019287, 0.0076036381721496585, 0.007634518146514893, 0.007663476943969727, 0.007665236949920654, 0.007663637161254883, 0.007646677017211914, 0.007710997104644775, 0.007654996871948242, 0.007677076816558838, 0.007696917057037353, 0.007663317203521728, 0.00765291690826416, 0.007760117053985596, 0.007808597087860108, 0.007661557197570801, 0.007687956809997559, 0.007672597885131836, 0.007663796901702881, 0.0076605968475341795, 0.007662356853485108, 0.0076889171600341795, 0.007655478000640869, 0.007677556991577149, 0.007745876789093018, 0.008035956382751465, 0.007863636016845704, 0.007858995914459228, 0.007664277076721192, 0.007666196823120117, 0.007612117767333984, 0.007479959011077881, 0.00748619794845581, 0.007464437961578369, 0.007477238178253174, 0.007456278800964356, 0.0075681180953979495, 0.0074527587890625, 0.0075001177787780765, 0.0074665179252624515, 0.007486038208007813, 0.007467798233032227, 0.007456119060516357, 0.007499958038330078, 0.00746379804611206 ] }, "throughput": { "unit": "tokens/s", "value": 254.1913142169249 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1056.39936, "max_global_vram": 1107.501056, "max_process_vram": 251994.083328, "max_reserved": 725.614592, "max_allocated": 513.259008 }, "latency": { "unit": "s", "count": 66, "total": 0.479214605331421, "mean": 0.007260827353506377, "stdev": 0.0005566286356572722, "p50": 0.007237080097198486, "p90": 0.007601557016372681, "p95": 0.007776436567306519, "p99": 0.00909542946815489, "values": [ 0.008028915405273437, 0.007941555976867676, 0.007634037971496582, 0.007600596904754639, 0.007518359184265137, 0.007516118049621582, 0.007657877922058106, 0.007815956115722656, 0.007576437950134277, 0.007602517127990723, 0.007564757823944092, 0.011076098442077636, 0.007106200218200683, 0.007107800006866455, 0.007219960212707519, 0.007201879024505615, 0.00709276008605957, 0.007061881065368652, 0.007083000183105469, 0.007089399814605713, 0.007089080810546875, 0.007115800857543945, 0.007080120086669922, 0.00729275894165039, 0.00738779878616333, 0.007298038959503174, 0.00727131986618042, 0.007270518779754639, 0.007294518947601318, 0.007244120121002198, 0.007211160182952881, 0.007288279056549073, 0.00728619909286499, 0.007366518974304199, 0.007251958847045898, 0.007263158798217774, 0.007349878787994385, 0.007262040138244629, 0.007245559215545655, 0.007237880229949951, 0.0072823591232299804, 0.007235159873962402, 0.007393239021301269, 0.007277719020843506, 0.007295478820800781, 0.007236279964447021, 0.0075271577835083, 0.007132761001586914, 0.007087480068206787, 0.00696268081665039, 0.006952762126922607, 0.007047640800476074, 0.00681996202468872, 0.0067929220199584965, 0.006771162033081055, 0.006766522884368896, 0.006858841896057129, 0.00677196216583252, 0.006797882080078125, 0.006775641918182373, 0.006866201877593994, 0.00678284215927124, 0.006786841869354248, 0.006784121990203857, 0.006805881977081298, 0.006800281047821045 ] }, "throughput": { "unit": "tokens/s", "value": 137.72535157678456 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 66, "total": 0.44885029792785647, "mean": 0.006800762089816006, "stdev": 0.0005114592674017534, "p50": 0.00674772310256958, "p90": 0.007044520139694214, "p95": 0.007204600214958191, "p99": 0.008515561103820783, "values": [ 0.007437398910522461, 0.007376598834991455, 0.007103321075439453, 0.0070454001426696776, 0.006984120845794678, 0.006953240871429444, 0.007098200798034668, 0.007238359928131104, 0.007034360885620117, 0.00704364013671875, 0.007016120910644531, 0.01051786231994629, 0.006669403076171875, 0.006685882091522217, 0.006779003143310547, 0.0067716422080993655, 0.00666668176651001, 0.006631803035736084, 0.00665004301071167, 0.0066540417671203615, 0.006671642780303955, 0.006676123142242431, 0.006642043113708496, 0.006772602081298828, 0.006867002010345459, 0.006779801845550537, 0.0067418828010559085, 0.00675180196762085, 0.006773081779479981, 0.006747003078460693, 0.006735002040863037, 0.006783641815185547, 0.006775961875915527, 0.006851481914520264, 0.00675228214263916, 0.0067489218711853025, 0.006809241771697998, 0.006763802051544189, 0.006726521968841553, 0.006748443126678467, 0.006756762027740479, 0.006735483169555664, 0.006875641822814941, 0.006785881996154785, 0.0067322831153869625, 0.006754362106323243, 0.006985880851745605, 0.006762523174285889, 0.0067348418235778805, 0.006589882850646973, 0.006593883991241455, 0.006705082893371582, 0.0064726037979125975, 0.0064511637687683105, 0.006431004047393799, 0.006428605079650879, 0.006509724140167236, 0.006433244228363037, 0.006456443786621094, 0.006435644149780273, 0.006525084018707276, 0.0064390039443969725, 0.006437724113464356, 0.006443324089050293, 0.006452124118804931, 0.006446683883666992 ] }, "throughput": { "unit": "tokens/s", "value": 147.04234419514222 }, "energy": null, "efficiency": null } } }