{ "config": { "name": "cpu_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.4.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": 1, "num_choices": 2, "sequence_length": 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.7712, "system": "Linux", "machine": "x86_64", "platform": "Linux-6.8.0-1014-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.15", "optimum_benchmark_version": "0.5.0", "optimum_benchmark_commit": "0600d2e2ba71f8a4277cfa9b8287625223e3f7a0", "transformers_version": "4.45.1", "transformers_commit": null, "accelerate_version": "0.34.2", "accelerate_commit": null, "diffusers_version": "0.30.3", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.9", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 1111.06048, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 1.790591667000001 ], "count": 1, "total": 1.790591667000001, "mean": 1.790591667000001, "p50": 1.790591667000001, "p90": 1.790591667000001, "p95": 1.790591667000001, "p99": 1.790591667000001, "stdev": 0, "stdev_": 0 }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 966.094848, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.04779684499999348, 0.04823342600002434, 0.0468707709999876, 0.04826850300000274, 0.049693103999999266, 0.048049555999995164, 0.05005285199999321, 0.04875219500002004, 0.04899965499998871, 0.04866071000000716, 0.04931937500001027, 0.05295265499998436, 0.047345274999997855 ], "count": 13, "total": 0.6349949220000042, "mean": 0.04884576323076955, "p50": 0.04866071000000716, "p90": 0.04998090239999442, "p95": 0.05121277319998967, "p99": 0.05260467863998542, "stdev": 0.0014656849563456642, "stdev_": 3.0006388669189246 }, "throughput": { "unit": "tokens/s", "value": 40.945209322476806 }, "energy": { "unit": "kWh", "cpu": 1.8489259267677083e-06, "ram": 7.731162726250194e-08, "gpu": 0.0, "total": 1.9262375540302102e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1038293.5354029719 } }, "decode": { "memory": { "unit": "MB", "max_ram": 966.094848, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.02934604200001445, 0.02922708699998111, 0.029442246000002115, 0.028867020999996384, 0.028983972999981233, 0.028673661999988553, 0.029034399000011035, 0.029682132999994337, 0.029641757000007374, 0.030191513999994868, 0.03062405699998294, 0.029529840000009244, 0.02858556699999326 ], "count": 13, "total": 0.3818292979999569, "mean": 0.029371484461535147, "p50": 0.02934604200001445, "p90": 0.030089637799994764, "p95": 0.030364531199990098, "p99": 0.030572151839984373, "stdev": 0.0005605914016322275, "stdev_": 1.9086246810792868 }, "throughput": { "unit": "tokens/s", "value": 34.04662782058559 }, "energy": { "unit": "kWh", "cpu": 1.0555291954545103e-06, "ram": 4.4136976437911626e-08, "gpu": 0.0, "total": 1.0996661718924225e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 909366.8838417514 } }, "per_token": { "memory": null, "latency": { "unit": "s", "values": [ 0.028868603000006487, 0.02881984100000068, 0.02901469200000406, 0.028440708999994513, 0.028535248999986607, 0.028262879999999768, 0.02862539000000197, 0.029234920999982705, 0.029208882000006042, 0.0297780459999899, 0.030051796999998714, 0.029094116000010217, 0.028177132999985588 ], "count": 13, "total": 0.37611225899996725, "mean": 0.028931712230766713, "p50": 0.028868603000006487, "p90": 0.029669420999988462, "p95": 0.029887546399993425, "p99": 0.030018946879997656, "stdev": 0.0005333648552812227, "stdev_": 1.8435302101271045 }, "throughput": { "unit": "tokens/s", "value": 34.56414857246419 }, "energy": null, "efficiency": null } } }