{ "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.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": "66c837b53c9420caaed58be9b5b51d16360a0e19", "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": 1127.456768, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 1.7038184020000244 ], "count": 1, "total": 1.7038184020000244, "mean": 1.7038184020000244, "p50": 1.7038184020000244, "p90": 1.7038184020000244, "p95": 1.7038184020000244, "p99": 1.7038184020000244, "stdev": 0, "stdev_": 0 }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1011.519488, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.11022258600002033, 0.11093912100000125, 0.11717476899997337, 0.11498220300001094, 0.11638121000004276, 0.11125842299998112, 0.1035868550000032 ], "count": 7, "total": 0.784545167000033, "mean": 0.11207788100000471, "p50": 0.11125842299998112, "p90": 0.116698633600015, "p95": 0.11693670129999419, "p99": 0.11712715545997752, "stdev": 0.004316743512477108, "stdev_": 3.851557036911616 }, "throughput": { "unit": "tokens/s", "value": 285.5157477504295 }, "energy": { "unit": "kWh", "cpu": 4.217805534444463e-06, "ram": 1.7627261172362932e-07, "gpu": 0.0, "total": 4.394078146168092e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 7282528.652319482 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1018.748928, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.04513147799997341, 0.04595905200000061, 0.0475423150000438, 0.051792685999998866, 0.05104340999997703, 0.045221266999988075, 0.04454792199999247 ], "count": 7, "total": 0.33123812999997426, "mean": 0.04731973285713918, "p50": 0.04595905200000061, "p90": 0.051343120399985766, "p95": 0.05156790319999231, "p99": 0.05174772943999756, "stdev": 0.0027424970422947883, "stdev_": 5.795673129800911 }, "throughput": { "unit": "tokens/s", "value": 42.265665489661735 }, "energy": { "unit": "kWh", "cpu": 1.5895087433333776e-06, "ram": 6.642491217878442e-08, "gpu": 0.0, "total": 1.655933655512163e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1207777.85591985 } }, "per_token": { "memory": null, "latency": { "unit": "s", "values": [ 0.04415864099996725, 0.04498377099997697, 0.04659321300005104, 0.05066843499997731, 0.049849217999963, 0.044200821000004, 0.04355303400001276 ], "count": 7, "total": 0.3240071329999523, "mean": 0.046286733285707475, "p50": 0.04498377099997697, "p90": 0.050176904799968725, "p95": 0.050422669899973016, "p99": 0.05061928197997645, "stdev": 0.002673552115775224, "stdev_": 5.77606568014332 }, "throughput": { "unit": "tokens/s", "value": 43.208925280055674 }, "energy": null, "efficiency": null } } }