{ "config": { "name": "cpu_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.3.0+cpu", "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", "task": "text-generation", "model": "openai-community/gpt2", "library": "transformers", "device": "cpu", "device_ids": null, "seed": 42, "inter_op_num_threads": null, "intra_op_num_threads": null, "hub_kwargs": { "revision": "main", "force_download": false, "local_files_only": false, "trust_remote_code": false }, "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, "latency": true, "memory": 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", "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-1018-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.14", "optimum_benchmark_version": "0.2.0", "optimum_benchmark_commit": "a1b82bb7f67b3f3680a50df8b7281faa4fcbf3b9", "transformers_version": "4.40.2", "transformers_commit": null, "accelerate_version": "0.30.1", "accelerate_commit": null, "diffusers_version": "0.27.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "0.9.16", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 949.051392, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.6153932619999409, "mean": 0.047337943230764686, "stdev": 0.0015734775953318693, "p50": 0.047914752999986376, "p90": 0.04841116839999131, "p95": 0.048477497999999744, "p99": 0.04854072600000791, "values": [ 0.04855653300000995, 0.047639868000004526, 0.04835660999998481, 0.04795962699998313, 0.047628887000001896, 0.048304692999977306, 0.04755912600001011, 0.04818492800001195, 0.048424807999992936, 0.047914752999986376, 0.04736688699998126, 0.04398664699999699, 0.04350989499999969 ] }, "throughput": { "unit": "tokens/s", "value": 42.249406364157586 }, "energy": { "unit": "kWh", "cpu": 1.709942598849679e-06, "ram": 7.146015882199207e-08, "gpu": 0.0, "total": 1.781402757671671e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1122710.7353387282 } }, "decode": { "memory": { "unit": "MB", "max_ram": 949.051392, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.38661631800002283, "mean": 0.029739716769232524, "stdev": 0.0011171013748241222, "p50": 0.03016380299999355, "p90": 0.03055844879998517, "p95": 0.030688758599984566, "p99": 0.030804068519991006, "values": [ 0.0305926669999792, 0.03016380299999355, 0.030421576000009054, 0.03006071000001498, 0.0301450480000085, 0.030326057000024775, 0.030184741999988773, 0.030165606999986494, 0.030832895999992616, 0.029872347000008403, 0.02926838800001974, 0.026824779999998327, 0.027757696999998416 ] }, "throughput": { "unit": "tokens/s", "value": 33.625068044849655 }, "energy": { "unit": "kWh", "cpu": 1.024248200722171e-06, "ram": 4.2800493624781654e-08, "gpu": 0.0, "total": 1.0670486943469527e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 937164.3536961663 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 12, "total": 0.9232734640000047, "mean": 0.07693945533333373, "stdev": 0.002687055910638835, "p50": 0.0778170509999967, "p90": 0.07875482420002129, "p95": 0.07898692285000664, "p99": 0.07920613656998796, "values": [ 0.07784581999999318, 0.07876272700002573, 0.07807001899999477, 0.07775228500000253, 0.07868369899998129, 0.07775354700001458, 0.07838956800000574, 0.0792609399999833, 0.07778828200000021, 0.07679571599999235, 0.07088428300002647, 0.0712865779999845 ] }, "throughput": { "unit": "tokens/s", "value": 12.997232637891496 }, "energy": null, "efficiency": null } } }