{ "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", "library": "transformers", "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": {}, "hub_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, "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.3504, "system": "Linux", "machine": "x86_64", "platform": "Linux-6.5.0-1021-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.14", "optimum_benchmark_version": "0.2.0", "optimum_benchmark_commit": "90aae7d9a74aeabd69ab3338806fa9a29ef64627", "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": "1.0.3", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 956.7232, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.6258788679999725, "mean": 0.04814452830769019, "stdev": 0.004376968506651717, "p50": 0.04566476600001579, "p90": 0.05484389800001282, "p95": 0.055370293600014976, "p99": 0.05570783392001204, "values": [ 0.04695222999998805, 0.044760942999971576, 0.04451632799998606, 0.04525409100000388, 0.04566476600001579, 0.04409622700001137, 0.045268688000021484, 0.044984027999987575, 0.04602086799997096, 0.055089010000017424, 0.0557922190000113, 0.05386344999999437, 0.05361601999999266 ] }, "throughput": { "unit": "tokens/s", "value": 41.541584688878075 }, "energy": { "unit": "kWh", "cpu": 1.7272950370530578e-06, "ram": 7.218419799145343e-08, "gpu": 0.0, "total": 1.7994792350445112e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1111432.663989884 } }, "decode": { "memory": { "unit": "MB", "max_ram": 956.7232, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.39207534599995597, "mean": 0.030159641999996614, "stdev": 0.0025159574615901226, "p50": 0.028508955999996033, "p90": 0.033911745199986854, "p95": 0.03424447819998022, "p99": 0.03458325883998441, "values": [ 0.028508955999996033, 0.027907666000032805, 0.02824889099997563, 0.028801740000005793, 0.02798887599999489, 0.028103600000008555, 0.02809538599996131, 0.028449143999978332, 0.03181754000002002, 0.03396216099997673, 0.03466795399998546, 0.03371008200002734, 0.03181334999999308 ] }, "throughput": { "unit": "tokens/s", "value": 33.15689224693424 }, "energy": { "unit": "kWh", "cpu": 1.0148386333299717e-06, "ram": 4.2416143902064284e-08, "gpu": 0.0, "total": 1.057254777232036e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 945845.8089147322 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 12, "total": 0.9427989480000178, "mean": 0.07856657900000148, "stdev": 0.007011150610211693, "p50": 0.07388548350002111, "p90": 0.08888338910002176, "p95": 0.08970115210000529, "p99": 0.0903604736199867, "values": [ 0.07276532899999211, 0.0727404429999865, 0.07406680100001495, 0.07370416600002727, 0.07219099099995674, 0.07340109200004008, 0.07342239199999767, 0.07772605999997495, 0.0890268460000243, 0.09052530399998204, 0.08759227699999883, 0.0856372470000224 ] }, "throughput": { "unit": "tokens/s", "value": 12.728058326174303 }, "energy": null, "efficiency": null } } }