{ "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": "a0fa44f89e357c39216a81807cac957ae2b66da0", "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": 1127.972864, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 1.718475059999946 ], "count": 1, "total": 1.718475059999946, "mean": 1.718475059999946, "p50": 1.718475059999946, "p90": 1.718475059999946, "p95": 1.718475059999946, "p99": 1.718475059999946, "stdev": 0, "stdev_": 0 }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1010.487296, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.11378130399998554, 0.11429892199998903, 0.11450845299998491, 0.12023620400003665, 0.11574349299996811, 0.1180853010000078 ], "count": 6, "total": 0.696653676999972, "mean": 0.11610894616666201, "p50": 0.11512597299997651, "p90": 0.11916075250002223, "p95": 0.11969847825002944, "p99": 0.12012865885003521, "stdev": 0.002321259556939538, "stdev_": 1.999208186428303 }, "throughput": { "unit": "tokens/s", "value": 275.6032248718149 }, "energy": { "unit": "kWh", "cpu": 4.22077407111118e-06, "ram": 1.763944485107796e-07, "gpu": 0.0, "total": 4.39716851962196e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 7277410.419273891 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1018.568704, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.05033313500001668, 0.052910605000022315, 0.053576159999977335, 0.05290791900000613, 0.0526585329999989, 0.047858378999990236 ], "count": 6, "total": 0.3102447310000116, "mean": 0.0517074551666686, "p50": 0.052783226000002514, "p90": 0.053243382499999825, "p95": 0.05340977124998858, "p99": 0.053542882249979586, "stdev": 0.0019995596595705663, "stdev_": 3.8670625988561746 }, "throughput": { "unit": "tokens/s", "value": 38.67914198355733 }, "energy": { "unit": "kWh", "cpu": 1.709584351111208e-06, "ram": 7.144870619962919e-08, "gpu": 0.0, "total": 1.7810330573108377e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1122943.7835476103 } }, "per_token": { "memory": null, "latency": { "unit": "s", "values": [ 0.04914417200001253, 0.05163774499999363, 0.05229480399998465, 0.05168312899996863, 0.05131125399998382, 0.04667390399998794 ], "count": 6, "total": 0.3027450079999312, "mean": 0.050457501333321865, "p50": 0.051474499499988724, "p90": 0.05198896649997664, "p95": 0.052141885249980646, "p99": 0.05226422024998385, "stdev": 0.0019595984160566205, "stdev_": 3.8836612283107885 }, "throughput": { "unit": "tokens/s", "value": 39.63731748799877 }, "energy": null, "efficiency": null } } }