{ "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.346304, "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": "b880a42960acf7600cf87a7b5756d96d29e2fb24", "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": 948.539392, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.6379554779999523, "mean": 0.04907349830768864, "stdev": 0.0010666836382432667, "p50": 0.049456617000004144, "p90": 0.049933542600007284, "p95": 0.050156655600005706, "p99": 0.0504093367199971, "values": [ 0.05047250699999495, 0.04963225399998805, 0.04764154999998027, 0.04960540499999411, 0.049456617000004144, 0.04654885599998693, 0.04994608800001288, 0.049883360999984916, 0.048579775999996855, 0.047913816999994197, 0.049307980999998335, 0.04911564300002169, 0.049851622999995016 ] }, "throughput": { "unit": "tokens/s", "value": 40.75519514545488 }, "energy": { "unit": "kWh", "cpu": 1.6725711800433975e-06, "ram": 6.989933200280913e-08, "gpu": 0.0, "total": 1.7424705120462067e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1147795.607543093 } }, "decode": { "memory": { "unit": "MB", "max_ram": 948.539392, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.4034393080000598, "mean": 0.031033792923081522, "stdev": 0.0003609664808729454, "p50": 0.03111106100001848, "p90": 0.031282662000012354, "p95": 0.031466616400012984, "p99": 0.031675882480013795, "values": [ 0.03111106100001848, 0.0312922280000123, 0.031728199000014, 0.0309515929999975, 0.030498660999995764, 0.03120739000002004, 0.031085653999980423, 0.03090312400001949, 0.031244398000012552, 0.031234318999992183, 0.03074208399999634, 0.031183795999993436, 0.030256801000007272 ] }, "throughput": { "unit": "tokens/s", "value": 32.222938474795505 }, "energy": { "unit": "kWh", "cpu": 1.0020326353885505e-06, "ram": 4.187678354027073e-08, "gpu": 0.0, "total": 1.0439094189288217e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 957937.5201213548 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 12, "total": 0.9600551610000139, "mean": 0.08000459675000116, "stdev": 0.000877328166393496, "p50": 0.08009505350000268, "p90": 0.08096101209998778, "p95": 0.0809965785999978, "p99": 0.0810171829200081, "values": [ 0.08097550599998726, 0.0793775440000104, 0.08058963799999219, 0.07998787000002494, 0.07776743699997724, 0.08102233400001069, 0.08083056699999247, 0.07983873099999528, 0.07916983700002334, 0.08005119699998886, 0.08030558999999471, 0.0801389100000165 ] }, "throughput": { "unit": "tokens/s", "value": 12.499281799079695 }, "energy": null, "efficiency": null } } }