{ "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": "78351930eda4599a64ff2da35e08ab39722c146a", "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.41408, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 1.7412234849999777 ], "count": 1, "total": 1.7412234849999777, "mean": 1.7412234849999777, "p50": 1.7412234849999777, "p90": 1.7412234849999777, "p95": 1.7412234849999777, "p99": 1.7412234849999777, "stdev": 0, "stdev_": 0 }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1013.047296, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.1561308980000149, 0.15502711900001032, 0.13959986999998364, 0.10961465100001533, 0.10999248000001671, 0.1078558629999975 ], "count": 6, "total": 0.7782208810000384, "mean": 0.12970348016667307, "p50": 0.12479617500000018, "p90": 0.1555790085000126, "p95": 0.15585495325001375, "p99": 0.15607570905001467, "stdev": 0.021240827783425703, "stdev_": 16.37645170054849 }, "throughput": { "unit": "tokens/s", "value": 246.71658739518006 }, "energy": { "unit": "kWh", "cpu": 4.2741799877777e-06, "ram": 1.7862740477225403e-07, "gpu": 0.0, "total": 4.4528073925499544e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 7186477.468919852 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1021.489152, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.05269852800000763, 0.053036480999992364, 0.04821536299999707, 0.04719742499997892, 0.046133339999983036, 0.047741244999997434 ], "count": 6, "total": 0.29502238199995645, "mean": 0.04917039699999274, "p50": 0.04797830399999725, "p90": 0.052867504499999995, "p95": 0.05295199274999618, "p99": 0.05301958334999313, "stdev": 0.002691505556459183, "stdev_": 5.473833283183742 }, "throughput": { "unit": "tokens/s", "value": 40.674880050293176 }, "energy": { "unit": "kWh", "cpu": 1.7429925288891467e-06, "ram": 7.283687877881631e-08, "gpu": 0.0, "total": 1.8158294076679627e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1101425.05213007 } }, "per_token": { "memory": null, "latency": { "unit": "s", "values": [ 0.051475695000021915, 0.051736214000015934, 0.04715716000004022, 0.04616272499998786, 0.04516100699999015, 0.04671573199999557 ], "count": 6, "total": 0.28840853300005165, "mean": 0.04806808883334194, "p50": 0.046936446000017895, "p90": 0.051605954500018925, "p95": 0.05167108425001743, "p99": 0.05172318805001623, "stdev": 0.0025757561508833134, "stdev_": 5.358557440912164 }, "throughput": { "unit": "tokens/s", "value": 41.60764549916369 }, "energy": null, "efficiency": null } } }