{ "config": { "name": "cpu_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.4.0+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": "error", "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.14", "optimum_benchmark_version": "0.4.0", "optimum_benchmark_commit": "a8d6791ab3d8e1f26a8a97b676e5986c1a728520", "transformers_version": "4.44.2", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.30.1", "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": 1121.234944, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.795130403000002, "mean": 4.795130403000002, "stdev": 0.0, "p50": 4.795130403000002, "p90": 4.795130403000002, "p95": 4.795130403000002, "p99": 4.795130403000002, "values": [ 4.795130403000002 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.782199098888938e-05, "ram": 2.8347748437907386e-06, "gpu": 0, "total": 7.065676583268012e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 974.700544, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.6320116089999601, "mean": 0.04213410726666401, "stdev": 0.0013913688657394949, "p50": 0.04175347200001056, "p90": 0.042787591600000494, "p95": 0.04418041540000388, "p99": 0.04640720948000819, "values": [ 0.041104335999989416, 0.04185966999997959, 0.042487743999998884, 0.041536984999993365, 0.042424594999999954, 0.04160273899998401, 0.04136020000001395, 0.04696390800000927, 0.04175347200001056, 0.04216766599998323, 0.0415977590000125, 0.04298749000000157, 0.04181437500000129, 0.04106142699998827, 0.04128924299999426 ] }, "throughput": { "unit": "tokens/s", "value": 47.46748251581862 }, "energy": { "unit": "kWh", "cpu": 1.6480288578703324e-06, "ram": 6.887387813500906e-08, "gpu": 0.0, "total": 1.7169027360053414e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1164888.352763262 } }, "decode": { "memory": { "unit": "MB", "max_ram": 975.486976, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.3919982879999395, "mean": 0.026133219199995967, "stdev": 0.0012615457013340253, "p50": 0.0258765940000103, "p90": 0.026479821799995307, "p95": 0.027817389899999507, "p99": 0.03008785557998237, "values": [ 0.02578873999999587, 0.02620664200000533, 0.0258765940000103, 0.025900309000007837, 0.025919986999980438, 0.02576283199999807, 0.025657042999995383, 0.026297950999975228, 0.025887803999978587, 0.026601069000008692, 0.025502152999990813, 0.03065547199997809, 0.025321123999987094, 0.025467919000021766, 0.025152649000006022 ] }, "throughput": { "unit": "tokens/s", "value": 38.265473241052305 }, "energy": { "unit": "kWh", "cpu": 9.685149891666675e-07, "ram": 4.04764367328541e-08, "gpu": 0.0, "total": 1.0089914258995214e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 991088.6993994964 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 15, "total": 0.38680440199999566, "mean": 0.025786960133333044, "stdev": 0.001249887167125199, "p50": 0.025524714999988873, "p90": 0.02613303919999339, "p95": 0.02745740329999648, "p99": 0.029703401459984204, "values": [ 0.02544933499999047, 0.025860665000010385, 0.02554540400001315, 0.02555841000000214, 0.02557479099999682, 0.025417325000006485, 0.025308179999996128, 0.02595131299997888, 0.025524714999988873, 0.026254190000003064, 0.025169852000004767, 0.030264900999981137, 0.02499966299998846, 0.02514626700002509, 0.02477939100000981 ] }, "throughput": { "unit": "tokens/s", "value": 38.779289797224614 }, "energy": null, "efficiency": null } } }