{ "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-1024-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.14", "optimum_benchmark_version": "0.3.1", "optimum_benchmark_commit": "c8d76f6e24e813974534bb204a76658d503b7b1f", "transformers_version": "4.43.3", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.29.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.8", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 1121.87392, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.811999754999988, "mean": 4.811999754999988, "stdev": 0.0, "p50": 4.811999754999988, "p90": 4.811999754999988, "p95": 4.811999754999988, "p99": 4.811999754999988, "values": [ 4.811999754999988 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.671512656741673e-05, "ram": 2.788477871007444e-06, "gpu": 0, "total": 6.950360443842417e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 975.228928, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.6551324800000771, "mean": 0.046795177142862646, "stdev": 0.001756417072639396, "p50": 0.047304007500002854, "p90": 0.04834525769995821, "p95": 0.04840265554997529, "p99": 0.04840634391001629, "values": [ 0.04460375000002159, 0.0473144470000193, 0.046974174000013136, 0.04579041499999903, 0.04784157600005301, 0.04659594200001038, 0.04729356799998641, 0.04815368500004524, 0.04840726600002654, 0.0484001729999477, 0.04640408599999546, 0.04821712199998274, 0.04744726299998092, 0.04168901299999561 ] }, "throughput": { "unit": "tokens/s", "value": 42.739447142044774 }, "energy": { "unit": "kWh", "cpu": 1.6257364440847327e-06, "ram": 6.794134851645594e-08, "gpu": 0.0, "total": 1.6936777926011887e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1180862.1502489885 } }, "decode": { "memory": { "unit": "MB", "max_ram": 976.01536, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.40570338499986747, "mean": 0.02897881321427625, "stdev": 0.0013014923458227463, "p50": 0.02936459650001666, "p90": 0.030038168300001188, "p95": 0.0301548583500022, "p99": 0.030327041269995903, "values": [ 0.03003896600000644, 0.029554665999967256, 0.02848173299997825, 0.027983125999980984, 0.02939590099998668, 0.029158527999982198, 0.028178547999971215, 0.029456619999962186, 0.030036306999988938, 0.02933329200004664, 0.030370086999994328, 0.029654438000022765, 0.029118422999999893, 0.024942749999979696 ] }, "throughput": { "unit": "tokens/s", "value": 34.50796941219648 }, "energy": { "unit": "kWh", "cpu": 9.596633690374877e-07, "ram": 4.0106730593265625e-08, "gpu": 0.0, "total": 9.99770099630753e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 1000229.9532355807 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.3991821049999089, "mean": 0.028513007499993494, "stdev": 0.0012553523586559423, "p50": 0.02889091700001245, "p90": 0.029525298300001168, "p95": 0.029648168050005096, "p99": 0.029825240009993193, "values": [ 0.029516695999973308, 0.029072100000007595, 0.02802146799996308, 0.027493806999984827, 0.02892043899998953, 0.028671352999992905, 0.027736716999982036, 0.028943777999984377, 0.029528985000013108, 0.028861395000035373, 0.02986950799999022, 0.02915943900001139, 0.028748475999975653, 0.02463794400000552 ] }, "throughput": { "unit": "tokens/s", "value": 35.071712445634795 }, "energy": null, "efficiency": null } } }