{ "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": "cd2f6181934acf2424f1183f5fce924d249303d4", "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": 1127.395328, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 1.7190139310000063 ], "count": 1, "total": 1.7190139310000063, "mean": 1.7190139310000063, "p50": 1.7190139310000063, "p90": 1.7190139310000063, "p95": 1.7190139310000063, "p99": 1.7190139310000063, "stdev": 0, "stdev_": 0 }, "throughput": null, "energy": { "unit": "kWh", "cpu": 0.00019066668036111137, "ram": 7.97444607513562e-06, "gpu": 0, "total": 0.000198641126436247 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1013.972992, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.1448013800000183, 0.14604853100001947, 0.10746430600002554, 0.09936349199998062, 0.098739275000014, 0.0986507700000061, 0.10013696800001526 ], "count": 7, "total": 0.7952047220000793, "mean": 0.1136006745714399, "p50": 0.10013696800001526, "p90": 0.14530024040001877, "p95": 0.14567438570001912, "p99": 0.1459737019400194, "stdev": 0.020327082678134177, "stdev_": 17.89345244191408 }, "throughput": { "unit": "samples/s", "value": 17.605529258915297 }, "energy": { "unit": "kWh", "cpu": 4.166347293888876e-06, "ram": 1.7420848075177296e-07, "gpu": 0.0, "total": 4.340555774640645e-06 }, "efficiency": { "unit": "samples/kWh", "value": 460770.48743039824 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1013.972992, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.04626632599999425, 0.04674808699999744, 0.041216456999990214, 0.04131517199999735, 0.041623877999995784, 0.041398265999987416, 0.041643383999996786 ], "count": 7, "total": 0.30021156999995924, "mean": 0.04288736714285132, "p50": 0.041623877999995784, "p90": 0.04645903039999553, "p95": 0.04660355869999648, "p99": 0.04671918133999725, "stdev": 0.002297438950964294, "stdev_": 5.356913011964277 }, "throughput": { "unit": "tokens/s", "value": 46.63377897128316 }, "energy": { "unit": "kWh", "cpu": 1.3423189811111417e-06, "ram": 5.6139261830103635e-08, "gpu": 0.0, "total": 1.3984582429412503e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1430146.3844880927 } }, "per_token": { "memory": null, "latency": { "unit": "s", "values": [ 0.04577660100000003, 0.04577660100000003, 0.14656051800000114, 0.046280021999990595, 0.04577660100000003, 0.14656051800000114, 0.046280021999990595, 0.10795366100001047, 0.04087220399998159, 0.04577660100000003, 0.14656051800000114, 0.046280021999990595, 0.10795366100001047, 0.04087220399998159, 0.09975174699999911, 0.04096703100000809, 0.04577660100000003, 0.14656051800000114, 0.046280021999990595, 0.10795366100001047, 0.04087220399998159, 0.09975174699999911, 0.04096703100000809, 0.09910659100000885, 0.041258785999986, 0.04577660100000003, 0.14656051800000114, 0.046280021999990595, 0.10795366100001047, 0.04087220399998159, 0.09975174699999911, 0.04096703100000809, 0.09910659100000885, 0.041258785999986, 0.09903540900000962, 0.04103152100000784, 0.04577660100000003, 0.14656051800000114, 0.046280021999990595, 0.10795366100001047, 0.04087220399998159, 0.09975174699999911, 0.04096703100000809, 0.09910659100000885, 0.041258785999986, 0.09903540900000962, 0.04103152100000784, 0.10052451199999268, 0.04129808899998011 ], "count": 49, "total": 3.627536475999932, "mean": 0.07403135665305983, "p50": 0.046280021999990595, "p90": 0.14656051800000114, "p95": 0.14656051800000114, "p99": 0.14656051800000114, "stdev": 0.03789151822848584, "stdev_": 51.183066124345736 }, "throughput": null, "energy": null, "efficiency": null } } }