{ "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": 1131.384832, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 1.7704266750000102 ], "count": 1, "total": 1.7704266750000102, "mean": 1.7704266750000102, "p50": 1.7704266750000102, "p90": 1.7704266750000102, "p95": 1.7704266750000102, "p99": 1.7704266750000102, "stdev": 0, "stdev_": 0 }, "throughput": null, "energy": { "unit": "kWh", "cpu": 0.00019993497607222272, "ram": 8.357487779306238e-06, "gpu": 0, "total": 0.00020829246385152897 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1014.386688, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.14783408299999223, 0.14743117400001893, 0.11171024699999066, 0.10162863400000788, 0.10082855499999255, 0.10343215500000724, 0.1025217909999867 ], "count": 7, "total": 0.8153866389999962, "mean": 0.11648380557142803, "p50": 0.10343215500000724, "p90": 0.14759233760000826, "p95": 0.14771321030000023, "p99": 0.14780990845999384, "stdev": 0.019980035733344993, "stdev_": 17.152629616906882 }, "throughput": { "unit": "samples/s", "value": 17.1697687089524 }, "energy": { "unit": "kWh", "cpu": 3.982604480555507e-06, "ram": 1.664408373936839e-07, "gpu": 0.0, "total": 4.149045317949191e-06 }, "efficiency": { "unit": "samples/kWh", "value": 482038.60086748085 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1022.808064, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.04668609600000195, 0.04664625099999853, 0.04148627700001839, 0.04116522999999006, 0.04115808599999582, 0.041363026999988506, 0.04166488900000331 ], "count": 7, "total": 0.30016985599999657, "mean": 0.04288140799999951, "p50": 0.04148627700001839, "p90": 0.046662188999999896, "p95": 0.046674142500000924, "p99": 0.046683705300001745, "stdev": 0.002399303145292454, "stdev_": 5.595206074605763 }, "throughput": { "unit": "tokens/s", "value": 46.64025957356677 }, "energy": { "unit": "kWh", "cpu": 1.5587437541666564e-06, "ram": 6.514778224543256e-08, "gpu": 0.0, "total": 1.6238915364120896e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1231609.350227235 } }, "per_token": { "memory": null, "latency": { "unit": "s", "values": [ 0.04538736099999596, 0.04533655499997735, 0.040346306999992976, 0.04016835699999888, 0.04007773800000791, 0.040290352999988954, 0.040577594000012596 ], "count": 7, "total": 0.29218426499997463, "mean": 0.04174060928571066, "p50": 0.040346306999992976, "p90": 0.0453568773999848, "p95": 0.04537211919999038, "p99": 0.045384312639994845, "stdev": 0.002294921988133697, "stdev_": 5.498055796035859 }, "throughput": null, "energy": null, "efficiency": null } } }