{ "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": "1c20082e96a83cbb10a6021fdbbcd050ed6631b4", "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": 1130.156032, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 1.7518439339999645 ], "count": 1, "total": 1.7518439339999645, "mean": 1.7518439339999645, "p50": 1.7518439339999645, "p90": 1.7518439339999645, "p95": 1.7518439339999645, "p99": 1.7518439339999645, "stdev": 0, "stdev_": 0 }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1013.764096, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.11482946600000332, 0.10986263000000918, 0.12022401000001537, 0.11545033599998078, 0.11175593800004435, 0.11261633499998425, 0.10987641900004519 ], "count": 7, "total": 0.7946151340000824, "mean": 0.11351644771429749, "p50": 0.11261633499998425, "p90": 0.11735980559999462, "p95": 0.118791907800005, "p99": 0.1199375895600133, "stdev": 0.003400947830472351, "stdev_": 2.9959956455226524 }, "throughput": { "unit": "tokens/s", "value": 281.8974751618269 }, "energy": { "unit": "kWh", "cpu": 4.274442129999949e-06, "ram": 1.7863904753974038e-07, "gpu": 0.0, "total": 4.453081177539689e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 7186035.628858642 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1022.787584, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.04428247300000976, 0.04683273500000951, 0.04846455199998445, 0.04807323099998939, 0.04684263399997235, 0.04994926300003044, 0.04895961599999055 ], "count": 7, "total": 0.33340450399998645, "mean": 0.047629214857140924, "p50": 0.04807323099998939, "p90": 0.0493554748000065, "p95": 0.04965236890001847, "p99": 0.04988988418002805, "stdev": 0.001711361184617112, "stdev_": 3.5930913195822543 }, "throughput": { "unit": "tokens/s", "value": 41.9910344102627 }, "energy": { "unit": "kWh", "cpu": 1.8845040200000077e-06, "ram": 7.876028354826605e-08, "gpu": 0.0, "total": 1.9632643035482744e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1018711.5389330576 } }, "per_token": { "memory": null, "latency": { "unit": "s", "values": [ 0.04345139200000858, 0.04600004999997509, 0.04754943299997194, 0.04688928000001624, 0.045959795999976905, 0.04901483899999448, 0.047934120999968854 ], "count": 7, "total": 0.3267989109999121, "mean": 0.046685558714273157, "p50": 0.04688928000001624, "p90": 0.0483664081999791, "p95": 0.04869062359998679, "p99": 0.048949995919992946, "stdev": 0.0016573957034614036, "stdev_": 3.5501250260387023 }, "throughput": { "unit": "tokens/s", "value": 42.83980003839048 }, "energy": null, "efficiency": null } } }