{ "config": { "name": "cpu_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.5.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": 2, "sequence_length": 16, "num_choices": 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": 16757.342208, "system": "Linux", "machine": "x86_64", "platform": "Linux-6.5.0-1025-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.15", "optimum_benchmark_version": "0.5.0.dev0", "optimum_benchmark_commit": "3fa51d0542beea1666aad9ab8f03ecc8c46bd812", "transformers_version": "4.46.3", "transformers_commit": null, "accelerate_version": "1.1.1", "accelerate_commit": null, "diffusers_version": "0.31.0", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.11", "timm_commit": null, "peft_version": null, "peft_commit": null }, "print_report": true, "log_report": true }, "report": { "load_model": { "memory": { "unit": "MB", "max_ram": 1142.759424, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 1.7332212049999498 ], "count": 1, "total": 1.7332212049999498, "mean": 1.7332212049999498, "p50": 1.7332212049999498, "p90": 1.7332212049999498, "p95": 1.7332212049999498, "p99": 1.7332212049999498, "stdev": 0, "stdev_": 0 }, "throughput": null, "energy": { "unit": "kWh", "cpu": 0.0001997405725000006, "ram": 8.349214836904408e-06, "gpu": 0, "total": 0.000208089787336905 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1023.348736, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.11106962700000622, 0.11202101100002437, 0.11065613099998473, 0.1111472219999996, 0.11169229199998654, 0.10664858199999117, 0.10511470800003053 ], "count": 7, "total": 0.7683495730000232, "mean": 0.10976422471428902, "p50": 0.11106962700000622, "p90": 0.11182377960000167, "p95": 0.11192239530001302, "p99": 0.1120012878600221, "stdev": 0.0025226974349829966, "stdev_": 2.2982874807793303 }, "throughput": { "unit": "samples/s", "value": 18.2208730140071 }, "energy": { "unit": "kWh", "cpu": 4.274249871110986e-06, "ram": 1.7863039861745946e-07, "gpu": 0.0, "total": 4.4528802697284454e-06 }, "efficiency": { "unit": "samples/kWh", "value": 449147.4908041864 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1029.71392, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.04620953900001723, 0.04575421199996299, 0.04609820899997885, 0.04663955299997724, 0.04900828500001353, 0.04518945400002394, 0.04551586000002317 ], "count": 7, "total": 0.32441511199999695, "mean": 0.046345015999999566, "p50": 0.04609820899997885, "p90": 0.047587045799991755, "p95": 0.04829766540000264, "p99": 0.04886616108001135, "stdev": 0.0011729629209897964, "stdev_": 2.530936489459422 }, "throughput": { "unit": "tokens/s", "value": 43.15458646081854 }, "energy": { "unit": "kWh", "cpu": 1.8656694455557949e-06, "ram": 7.796762833307932e-08, "gpu": 0.0, "total": 1.9436370738888743e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1028998.6885248867 } }, "per_token": { "memory": null, "latency": { "unit": "s", "values": [ 0.04578367999999955, 0.045334013000001505, 0.045672659999979714, 0.04620209199998726, 0.048465417999977944, 0.044776498000032916, 0.04513370099999747 ], "count": 7, "total": 0.32136806199997636, "mean": 0.04590972314285376, "p50": 0.045672659999979714, "p90": 0.047107422399983535, "p95": 0.047786420199980736, "p99": 0.0483296184399785, "stdev": 0.0011280193335494865, "stdev_": 2.457037978729506 }, "throughput": null, "energy": null, "efficiency": null } } }