{ "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 }, "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.338112, "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": "7f5d48690ca4e72398f773487e70a5e7bfdf8cfd", "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": { "memory": { "unit": "MB", "max_ram": 1131.114496, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 1.693621859000018 ], "count": 1, "total": 1.693621859000018, "mean": 1.693621859000018, "p50": 1.693621859000018, "p90": 1.693621859000018, "p95": 1.693621859000018, "p99": 1.693621859000018, "stdev": 0, "stdev_": 0 }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1012.166656, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.11400328799999215, 0.11576330600001938, 0.11918370600000117, 0.11939126099997566, 0.11534889399996473, 0.11083467100002053 ], "count": 6, "total": 0.6945251259999736, "mean": 0.11575418766666228, "p50": 0.11555609999999206, "p90": 0.11928748349998841, "p95": 0.11933937224998203, "p99": 0.11938088324997694, "stdev": 0.002955828660093664, "stdev_": 2.553539288449394 }, "throughput": { "unit": "tokens/s", "value": 276.4478818870079 }, "energy": { "unit": "kWh", "cpu": 4.084000052222305e-06, "ram": 1.706776109236851e-07, "gpu": 0.0, "total": 4.25467766314599e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 7521133.804608501 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1020.6208, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.050710920000028636, 0.05172293499998659, 0.051874597000050926, 0.05276651799999854, 0.05207895700004883, 0.04650507799999559 ], "count": 6, "total": 0.3056590050001091, "mean": 0.050943167500018184, "p50": 0.05179876600001876, "p90": 0.052422737500023686, "p95": 0.052594627750011114, "p99": 0.052732139950001054, "stdev": 0.002075283129806585, "stdev_": 4.073722211729069 }, "throughput": { "unit": "tokens/s", "value": 39.2594355268405 }, "energy": { "unit": "kWh", "cpu": 1.6398582088890782e-06, "ram": 6.853403440973823e-08, "gpu": 0.0, "total": 1.7083922432988175e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1170691.3373348634 } }, "per_token": { "memory": null, "latency": { "unit": "s", "values": [ 0.04953336800002717, 0.05053506299998389, 0.05066295100004936, 0.051636744999996154, 0.050835852000034265, 0.04548792399998547 ], "count": 6, "total": 0.2986919030000763, "mean": 0.049781983833346054, "p50": 0.05059900700001663, "p90": 0.05123629850001521, "p95": 0.05143652175000568, "p99": 0.05159670034999806, "stdev": 0.002016381584388348, "stdev_": 4.05042432848506 }, "throughput": { "unit": "tokens/s", "value": 40.175176760639985 }, "energy": null, "efficiency": null } } }