{ "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": 16766.779392, "system": "Linux", "machine": "x86_64", "platform": "Linux-6.8.0-1017-azure-x86_64-with-glibc2.39", "processor": "x86_64", "python_version": "3.10.15", "optimum_benchmark_version": "0.5.0.dev0", "optimum_benchmark_commit": "fc224307c41301d024a8231662a117210adcc42c", "transformers_version": "4.47.0", "transformers_commit": null, "accelerate_version": "1.2.0", "accelerate_commit": null, "diffusers_version": "0.31.0", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.12", "timm_commit": null, "peft_version": null, "peft_commit": null }, "print_report": true, "log_report": true }, "report": { "load_model": { "memory": { "unit": "MB", "max_ram": 1128.009728, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 1.738905370999987 ], "count": 1, "total": 1.738905370999987, "mean": 1.738905370999987, "p50": 1.738905370999987, "p90": 1.738905370999987, "p95": 1.738905370999987, "p99": 1.738905370999987, "stdev": 0, "stdev_": 0 }, "throughput": null, "energy": { "unit": "kWh", "cpu": 0.00020091411059999968, "ram": 8.403008284717558e-06, "gpu": 0, "total": 0.00020931711888471724 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1013.846016, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.10766683900004637, 0.107950164999977, 0.10809216399997013, 0.11041405299999951, 0.1086571779999872, 0.10561827200001517, 0.09983079199997746 ], "count": 7, "total": 0.7482294629999728, "mean": 0.10688992328571041, "p50": 0.107950164999977, "p90": 0.10935992799999213, "p95": 0.10988699049999581, "p99": 0.11030864049999878, "stdev": 0.0031659844829682415, "stdev_": 2.9619110816514977 }, "throughput": { "unit": "samples/s", "value": 18.710837640458575 }, "energy": { "unit": "kWh", "cpu": 5.105279355555662e-06, "ram": 2.1347913165446673e-07, "gpu": 0.0, "total": 5.318758487210128e-06 }, "efficiency": { "unit": "samples/kWh", "value": 376027.6020822049 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1013.846016, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.04843920700000126, 0.050118504000010944, 0.04896830000001273, 0.04876840800000082, 0.04959914600004822, 0.04326124900001105, 0.04287749400003804 ], "count": 7, "total": 0.33203230800012307, "mean": 0.047433186857160435, "p50": 0.04876840800000082, "p90": 0.04980688920003331, "p95": 0.04996269660002213, "p99": 0.05008734252001318, "stdev": 0.002808486487369145, "stdev_": 5.920931468987267 }, "throughput": { "unit": "tokens/s", "value": 42.16457152716239 }, "energy": { "unit": "kWh", "cpu": 3.9127215555537565e-07, "ram": 1.6368483189456796e-08, "gpu": 0.0, "total": 4.0764063874482694e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 4906282.175786578 } }, "per_token": { "memory": null, "latency": { "unit": "s", "values": [ 0.04800552799997604, 0.04800552799997604, 0.10840629599999829, 0.0496686960000261, 0.04800552799997604, 0.10840629599999829, 0.0496686960000261, 0.10856856199995946, 0.04849281400004202, 0.04800552799997604, 0.10840629599999829, 0.0496686960000261, 0.10856856199995946, 0.04849281400004202, 0.11091662999996288, 0.04829653799998823, 0.04800552799997604, 0.10840629599999829, 0.0496686960000261, 0.10856856199995946, 0.04849281400004202, 0.11091662999996288, 0.04829653799998823, 0.1091538640000067, 0.04911001400000714, 0.04800552799997604, 0.10840629599999829, 0.0496686960000261, 0.10856856199995946, 0.04849281400004202, 0.11091662999996288, 0.04829653799998823, 0.1091538640000067, 0.04911001400000714, 0.10613422400001582, 0.042903231000025244, 0.04800552799997604, 0.10840629599999829, 0.0496686960000261, 0.10856856199995946, 0.04849281400004202, 0.11091662999996288, 0.04829653799998823, 0.1091538640000067, 0.04911001400000714, 0.10613422400001582, 0.042903231000025244, 0.10021094099994343, 0.04252077800003917 ], "count": 49, "total": 3.6222464629998967, "mean": 0.07392339720407952, "p50": 0.0496686960000261, "p90": 0.1091538640000067, "p95": 0.11091662999996288, "p99": 0.11091662999996288, "stdev": 0.029948824496890302, "stdev_": 40.513322749779626 }, "throughput": null, "energy": null, "efficiency": null } } }