{ "config": { "name": "cpu_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.4.1+cpu", "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", "task": "text-generation", "library": "transformers", "model_type": "gpt2", "model": "openai-community/gpt2", "processor": "openai-community/gpt2", "device": "cpu", "device_ids": null, "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": true, "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": false, "device_isolation_action": null, "numactl": false, "numactl_kwargs": {}, "start_method": "spawn" }, "environment": { "cpu": " AMD EPYC 7763 64-Core Processor", "cpu_count": 4, "cpu_ram_mb": 16766.7712, "system": "Linux", "machine": "x86_64", "platform": "Linux-6.8.0-1014-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.15", "optimum_benchmark_version": "0.5.0", "optimum_benchmark_commit": "0876a1b3ff6de017d3dc76fabb58b5a1d2aecb9e", "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": null, "peft_commit": null }, "print_report": true, "log_report": true }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 1110.994944, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 1.7366943069999934 ], "count": 1, "total": 1.7366943069999934, "mean": 1.7366943069999934, "p50": 1.7366943069999934, "p90": 1.7366943069999934, "p95": 1.7366943069999934, "p99": 1.7366943069999934, "stdev": 0, "stdev_": 0 }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 965.373952, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.045140484000000924, 0.04625627599995141, 0.04552976000002218, 0.04555722199995671, 0.04716941899999938, 0.04743324100002155, 0.04484698700002809, 0.04461182399995778, 0.04537972699995407, 0.04487265099999149, 0.043922718000033, 0.04626104999999825, 0.04275615299997071, 0.043504078000012214 ], "count": 14, "total": 0.6332415899998978, "mean": 0.04523154214284984, "p50": 0.0452601054999775, "p90": 0.04689690829999904, "p95": 0.04726175670000714, "p99": 0.04739894414001867, "stdev": 0.0012655744763065266, "stdev_": 2.7979909955526185 }, "throughput": { "unit": "tokens/s", "value": 44.2169314874036 }, "energy": { "unit": "kWh", "cpu": 1.7101936021739454e-06, "ram": 7.151124956647564e-08, "gpu": 0.0, "total": 1.781704851740421e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1122520.3759457364 } }, "decode": { "memory": { "unit": "MB", "max_ram": 965.373952, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.02890268900000592, 0.02824431999999888, 0.027404073000013796, 0.02843581800004813, 0.02816740700001219, 0.02793821900002058, 0.027404120999960924, 0.02735506900000928, 0.027388922000000093, 0.02773466600001484, 0.028489284999977826, 0.026363629999991645, 0.02694209899999578, 0.026563421999981074 ], "count": 14, "total": 0.38733374000003096, "mean": 0.027666695714287926, "p50": 0.027569393499987882, "p90": 0.028473244899998917, "p95": 0.02863397639998766, "p99": 0.028848946480002267, "stdev": 0.0007176851302293393, "stdev_": 2.5940399158642746 }, "throughput": { "unit": "tokens/s", "value": 36.14454036459328 }, "energy": { "unit": "kWh", "cpu": 1.046229435233474e-06, "ram": 4.3751363041349315e-08, "gpu": 0.0, "total": 1.0899807982748236e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 917447.3546531815 } }, "per_token": { "memory": null, "latency": { "unit": "s", "values": [ 0.028523130999985824, 0.027863570000022264, 0.027003004999983204, 0.028063593000013043, 0.027784963999977208, 0.02756841899997653, 0.02704633399997647, 0.026952838999989126, 0.027015525000024354, 0.027380435999987185, 0.02794659299996738, 0.026029355999980908, 0.026554895999993278, 0.026202398999998877 ], "count": 14, "total": 0.38193505999987565, "mean": 0.02728107571427683, "p50": 0.027213384999981827, "p90": 0.028028492999999342, "p95": 0.028224431300003516, "p99": 0.028463391059989362, "stdev": 0.0006995894567498725, "stdev_": 2.564376361390181 }, "throughput": { "unit": "tokens/s", "value": 36.65544608553234 }, "energy": null, "efficiency": null } } }