{ "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": "f8984237ed319b3e2359229f9a715248aa496ad5", "transformers_version": "4.44.2", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.30.2", "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": 1120.997376, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.817695952999998, "mean": 4.817695952999998, "stdev": 0.0, "p50": 4.817695952999998, "p90": 4.817695952999998, "p95": 4.817695952999998, "p99": 4.817695952999998, "values": [ 4.817695952999998 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.773925950555571e-05, "ram": 2.831335126010108e-06, "gpu": 0, "total": 7.057059463156583e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 974.35648, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.6525908280001431, "mean": 0.04350605520000954, "stdev": 0.0026428602654081272, "p50": 0.042000638999979856, "p90": 0.04733701180001617, "p95": 0.047611198500010235, "p99": 0.04791959330002328, "values": [ 0.045335292999993726, 0.04744598700000324, 0.047173549000035564, 0.04564084300000104, 0.04799669200002654, 0.042000638999979856, 0.04174655600002097, 0.04134698100000378, 0.04165098800001488, 0.042298965000043154, 0.041645146999996996, 0.041204144999994696, 0.046024998000007145, 0.040768313000000944, 0.040311732000020584 ] }, "throughput": { "unit": "tokens/s", "value": 45.9706123849988 }, "energy": { "unit": "kWh", "cpu": 1.575150347555488e-06, "ram": 6.582821309684959e-08, "gpu": 0.0, "total": 1.6409785606523378e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1218784.9664561984 } }, "decode": { "memory": { "unit": "MB", "max_ram": 975.142912, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.39532712799990577, "mean": 0.026355141866660384, "stdev": 0.0016425696594828349, "p50": 0.025568035999981475, "p90": 0.028765444999987722, "p95": 0.028840855300001068, "p99": 0.028877267060007625, "values": [ 0.028886370000009265, 0.028681588999972973, 0.028821348999997554, 0.028605226000024686, 0.025245024999946963, 0.025613692000035826, 0.025094092999950135, 0.024916050999991057, 0.025568035999981475, 0.025186064999957125, 0.025196213000015177, 0.027901885000005677, 0.026449570000011136, 0.024445604999982606, 0.024716359000024113 ] }, "throughput": { "unit": "tokens/s", "value": 37.94325999303437 }, "energy": { "unit": "kWh", "cpu": 9.560905684167279e-07, "ram": 3.995728038672081e-08, "gpu": 0.0, "total": 9.96047848803448e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 1003967.8326711912 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 15, "total": 0.3894108639997853, "mean": 0.025960724266652354, "stdev": 0.001576295914858571, "p50": 0.025199238999960016, "p90": 0.02828385119998984, "p95": 0.02836672859996838, "p99": 0.028400329719967202, "values": [ 0.02840872999996691, 0.02818653600002108, 0.028348727999969014, 0.028087952000021232, 0.02490423999995528, 0.025287214000002223, 0.024714575999951194, 0.024575976999983595, 0.025199238999960016, 0.02484466899994686, 0.024837034000029234, 0.027404128000000583, 0.026101191000009294, 0.024100761999989118, 0.024409887999979674 ] }, "throughput": { "unit": "tokens/s", "value": 38.519726558035295 }, "energy": null, "efficiency": null } } }