{ "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": "1af9eb008cb7e5a73696ea580f926b32aa726d12", "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": 1132.703744, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 1.730253227999981 ], "count": 1, "total": 1.730253227999981, "mean": 1.730253227999981, "p50": 1.730253227999981, "p90": 1.730253227999981, "p95": 1.730253227999981, "p99": 1.730253227999981, "stdev": 0, "stdev_": 0 }, "throughput": null, "energy": { "unit": "kWh", "cpu": 0.00019672284745555704, "ram": 8.223102295501465e-06, "gpu": 0, "total": 0.0002049459497510585 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1022.5664, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.10655142900003511, 0.10516570799995861, 0.14514814799997566, 0.14752209499999935, 0.10692142400000648, 0.1005066989999932, 0.10115070900002365 ], "count": 7, "total": 0.8129662119999921, "mean": 0.11613803028571315, "p50": 0.10655142900003511, "p90": 0.14609772679998514, "p95": 0.14680991089999224, "p99": 0.14737965817999793, "stdev": 0.01924557602912211, "stdev_": 16.57129536446911 }, "throughput": { "unit": "samples/s", "value": 17.220887895892204 }, "energy": { "unit": "kWh", "cpu": 3.997591352222212e-06, "ram": 1.6706695323427882e-07, "gpu": 0.0, "total": 4.164658305456491e-06 }, "efficiency": { "unit": "samples/kWh", "value": 480231.47478380677 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1024.217088, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.04267334299998993, 0.04612380100002156, 0.04842634499999576, 0.048040290000017194, 0.042047637999985454, 0.04170034700001679, 0.04195379199995841 ], "count": 7, "total": 0.3109655559999851, "mean": 0.04442365085714073, "p50": 0.04267334299998993, "p90": 0.04819471200000862, "p95": 0.04831052850000219, "p99": 0.04840318169999705, "stdev": 0.002783054615863886, "stdev_": 6.264803910002217 }, "throughput": { "unit": "tokens/s", "value": 45.021063361759175 }, "energy": { "unit": "kWh", "cpu": 1.7027010033332754e-06, "ram": 7.114485638775241e-08, "gpu": 0.0, "total": 1.7738458597210286e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1127493.6821819108 } }, "per_token": { "memory": null, "latency": { "unit": "s", "values": [ 0.041795905999947536, 0.045036860000038814, 0.04728590400003441, 0.046914205000007314, 0.04115245700000969, 0.040768827000022156, 0.040973210999993626 ], "count": 7, "total": 0.30392737000005354, "mean": 0.04341819571429336, "p50": 0.041795905999947536, "p90": 0.04706288460001815, "p95": 0.047174394300026276, "p99": 0.04726360206003278, "stdev": 0.0026876389812656456, "stdev_": 6.190121300643705 }, "throughput": null, "energy": null, "efficiency": null } } }