{ "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": "6646634d4624f02d9aa14bd6ca3ed947e6cd1ec9", "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": 1110.433792, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 1.8439514359999976 ], "count": 1, "total": 1.8439514359999976, "mean": 1.8439514359999976, "p50": 1.8439514359999976, "p90": 1.8439514359999976, "p95": 1.8439514359999976, "p99": 1.8439514359999976, "stdev": 0, "stdev_": 0 }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 965.074944, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.056430689000023904, 0.05799998200001255, 0.053368826999985686, 0.05450180299999374, 0.0513360169999828, 0.05146752200005267, 0.052014924999980394, 0.0497121420000326, 0.05412935699996524, 0.05074722800003428, 0.041460639000035826, 0.04882735799998272, 0.04387996099995917 ], "count": 13, "total": 0.6658764500000416, "mean": 0.05122126538461858, "p50": 0.05146752200005267, "p90": 0.056044911800017874, "p95": 0.05705840620001936, "p99": 0.05781166684001391, "stdev": 0.004429110683978865, "stdev_": 8.647015357236564 }, "throughput": { "unit": "tokens/s", "value": 39.04628253484318 }, "energy": { "unit": "kWh", "cpu": 1.7615863120773471e-06, "ram": 7.365914098079379e-08, "gpu": 0.0, "total": 1.835245453058141e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1089772.4861093224 } }, "decode": { "memory": { "unit": "MB", "max_ram": 965.074944, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.034691286999986914, 0.03278733000001921, 0.03384833199999093, 0.0321897729999705, 0.03216233099999499, 0.03219475199995259, 0.03227385000002414, 0.03107355699995651, 0.03574725200002149, 0.026221727999995892, 0.02525910899998962, 0.028222588000005544, 0.02873638800002709 ], "count": 13, "total": 0.4054082769999354, "mean": 0.03118525207691811, "p50": 0.0321897729999705, "p90": 0.03452269599998772, "p95": 0.03511367300000074, "p99": 0.03562053620001734, "stdev": 0.0030568106316180422, "stdev_": 9.80210332781165 }, "throughput": { "unit": "tokens/s", "value": 32.06643953152952 }, "energy": { "unit": "kWh", "cpu": 1.0692497379227636e-06, "ram": 4.4709187323199937e-08, "gpu": 0.0, "total": 1.1139589252459642e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 897699.1676593445 } }, "per_token": { "memory": null, "latency": { "unit": "s", "values": [ 0.03410803700000997, 0.032240648000026795, 0.03326486200001, 0.03163775100000521, 0.03159408900000926, 0.03165981199998669, 0.0316856310000162, 0.030566398999951616, 0.035144145000003846, 0.02588265499997533, 0.02492494499995246, 0.027830606000009084, 0.028302075999988574 ], "count": 13, "total": 0.39884165599994503, "mean": 0.030680127384611157, "p50": 0.03163775100000521, "p90": 0.03393940200000998, "p95": 0.03452248020000752, "p99": 0.03501981204000458, "stdev": 0.0029670366429921024, "stdev_": 9.670874588611838 }, "throughput": { "unit": "tokens/s", "value": 32.59438878671638 }, "energy": null, "efficiency": null } } }