{ "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": "30d59f77b3a4baa0f318abd9cdf0d949062137ca", "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": 1139.523584, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 1.7314716399999952 ], "count": 1, "total": 1.7314716399999952, "mean": 1.7314716399999952, "p50": 1.7314716399999952, "p90": 1.7314716399999952, "p95": 1.7314716399999952, "p99": 1.7314716399999952, "stdev": 0, "stdev_": 0 }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1026.29376, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.10497549600000866, 0.10531619500000033, 0.10812076100000922, 0.10596555500001159, 0.10530701799999065, 0.10334926199999472, 0.09877722900000663 ], "count": 7, "total": 0.7318115160000218, "mean": 0.1045445022857174, "p50": 0.10530701799999065, "p90": 0.10682763740001064, "p95": 0.10747419920000993, "p99": 0.10799144864000937, "stdev": 0.0026955453501389033, "stdev_": 2.5783712114980926 }, "throughput": { "unit": "tokens/s", "value": 306.0897445620319 }, "energy": { "unit": "kWh", "cpu": 3.917944212777782e-06, "ram": 1.637375273390398e-07, "gpu": 0.0, "total": 4.081681740116822e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 7839905.714717515 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1026.371584, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.04224208100001192, 0.045039424000009376, 0.0427991579999798, 0.04220509199998901, 0.04259433300001092, 0.041592571999984784, 0.04100522799998885 ], "count": 7, "total": 0.29747788799997466, "mean": 0.04249684114285352, "p50": 0.04224208100001192, "p90": 0.04369526439999163, "p95": 0.0443673442000005, "p99": 0.0449050080400076, "stdev": 0.0011806935294424918, "stdev_": 2.7783089229469544 }, "throughput": { "unit": "tokens/s", "value": 47.062321485895424 }, "energy": { "unit": "kWh", "cpu": 1.5316857587500277e-06, "ram": 6.402364059602202e-08, "gpu": 0.0, "total": 1.59570939934605e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1253361.0448240987 } }, "per_token": { "memory": null, "latency": { "unit": "s", "values": [ 0.041837331000010636, 0.04455237900000952, 0.042385260999992624, 0.04179825800000003, 0.042201064000011, 0.04123598300000708, 0.04065107399998169 ], "count": 7, "total": 0.2946613500000126, "mean": 0.04209447857143037, "p50": 0.041837331000010636, "p90": 0.04325210819999938, "p95": 0.04390224360000445, "p99": 0.044422351920008506, "stdev": 0.0011408951557322867, "stdev_": 2.7103201998245328 }, "throughput": { "unit": "tokens/s", "value": 47.51216947862148 }, "energy": null, "efficiency": null } } }