{ "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.354496, "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": "6351381d30af027b495f2efc26253328f9283823", "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": 955.63776, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.656266832, "mean": 0.046876202285714284, "stdev": 0.0024843992358366826, "p50": 0.04779981250000276, "p90": 0.049471128200002566, "p95": 0.049611201599994104, "p99": 0.049743674719981354, "values": [ 0.044562583000015366, 0.043082114000014826, 0.042491342999994686, 0.04298459199998206, 0.04644029400000704, 0.046724212000015086, 0.0493523410000023, 0.04952203700000268, 0.047977760000009084, 0.04834349099999713, 0.04977679299997817, 0.048646034999990206, 0.048741371999994954, 0.04762186499999643 ] }, "throughput": { "unit": "tokens/s", "value": 42.665572347559994 }, "energy": { "unit": "kWh", "cpu": 1.6467356019549902e-06, "ram": 6.881924505067378e-08, "gpu": 0.0, "total": 1.7155548470056638e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1165803.5903024657 } }, "decode": { "memory": { "unit": "MB", "max_ram": 955.63776, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.41523849399996493, "mean": 0.029659892428568924, "stdev": 0.0013631087549103686, "p50": 0.030512559499996428, "p90": 0.030768484199998624, "p95": 0.030799512949997165, "p99": 0.030815475389997005, "values": [ 0.027958323999996537, 0.027668923999982553, 0.02678200099998662, 0.027963612999997167, 0.030536818999991056, 0.030563208999978997, 0.0304883000000018, 0.030721153000001777, 0.030819465999996964, 0.030788768999997274, 0.030698911000001772, 0.029814503000011428, 0.030572747000007894, 0.02986175500001309 ] }, "throughput": { "unit": "tokens/s", "value": 33.715563952510585 }, "energy": { "unit": "kWh", "cpu": 1.0278601778878104e-06, "ram": 4.2957183529757984e-08, "gpu": 0.0, "total": 1.0708173614175681e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 933866.0690709957 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 13, "total": 0.9991990680000242, "mean": 0.07686146676923264, "stdev": 0.0037387120965235716, "p50": 0.07846468600001799, "p90": 0.08018155040001602, "p95": 0.08036120500000835, "p99": 0.08047753779998856, "values": [ 0.07076899100002265, 0.06928366199997527, 0.07095621100000926, 0.0768606249999948, 0.07729317300001526, 0.07985070799998084, 0.08026426100002482, 0.07881039999998052, 0.07915040400001772, 0.08050662099998362, 0.07846468600001799, 0.07932216399998993, 0.07766716200001156 ] }, "throughput": { "unit": "tokens/s", "value": 13.01042046208122 }, "energy": null, "efficiency": null } } }