{ "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.4.0", "optimum_benchmark_commit": "ca2be18fea34395d17487b7c6eecaa82f8012043", "transformers_version": "4.44.2", "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": 1116.16, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.792877836000002, "mean": 4.792877836000002, "stdev": 0.0, "p50": 4.792877836000002, "p90": 4.792877836000002, "p95": 4.792877836000002, "p99": 4.792877836000002, "values": [ 4.792877836000002 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.848147475555525e-05, "ram": 2.863962156671208e-06, "gpu": 0, "total": 7.134543691222645e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 969.895936, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.6222532119999755, "mean": 0.04786563169230581, "stdev": 0.0032245586378619965, "p50": 0.04761672899996938, "p90": 0.05094374600001857, "p95": 0.0527936778000253, "p99": 0.05470691316003239, "values": [ 0.046474518000025, 0.04719916999999896, 0.04719742700001461, 0.045040241999970476, 0.04920392099995752, 0.04843456599996898, 0.04761672899996938, 0.04764062499998545, 0.05518522200003417, 0.04642604800000072, 0.051199315000019396, 0.04992147000001523, 0.04071395900001562 ] }, "throughput": { "unit": "tokens/s", "value": 41.78363325186182 }, "energy": { "unit": "kWh", "cpu": 1.6228640053240605e-06, "ram": 6.786031366992522e-08, "gpu": 0.0, "total": 1.6907243189939858e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1182924.9615277548 } }, "decode": { "memory": { "unit": "MB", "max_ram": 970.420224, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.395390333000023, "mean": 0.030414641000001772, "stdev": 0.002112208761572304, "p50": 0.030583938000006583, "p90": 0.031595779400015546, "p95": 0.032998123999993814, "p99": 0.03463422319997107, "values": [ 0.030843271999970057, 0.03022389599999542, 0.030583938000006583, 0.030581614000027457, 0.03144006500002661, 0.03115379100000837, 0.03163470800001278, 0.030764394000016182, 0.03504324799996539, 0.030219617999989623, 0.029909749000012198, 0.0275170549999757, 0.02547498500001666 ] }, "throughput": { "unit": "tokens/s", "value": 32.87890197355746 }, "energy": { "unit": "kWh", "cpu": 9.69338005092696e-07, "ram": 4.053364300940839e-08, "gpu": 0.0, "total": 1.0098716481021053e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 990224.848751168 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 13, "total": 0.3892856230000916, "mean": 0.02994504792308397, "stdev": 0.002060232692134355, "p50": 0.030119912000031945, "p90": 0.031108038400009263, "p95": 0.03249869880000915, "p99": 0.034121495760009564, "values": [ 0.030323501999987457, 0.02974212700001999, 0.030119912000031945, 0.030074157000001378, 0.030954720000011093, 0.030683963999990738, 0.031146368000008806, 0.030244394000021657, 0.03452719500000967, 0.029719604999968396, 0.029404186000022037, 0.027185035000002244, 0.025160458000016206 ] }, "throughput": { "unit": "tokens/s", "value": 33.394503243694004 }, "energy": null, "efficiency": null } } }