{ "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": "70875ef900aa5b32d2b7eeaedc4a76bc99f650db", "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": 958.09536, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.655829790000098, "mean": 0.050448445384622925, "stdev": 0.001325910148403248, "p50": 0.050153078999983336, "p90": 0.05201939460001768, "p95": 0.05255225320001387, "p99": 0.05303437144000213, "values": [ 0.05149502099999381, 0.050153078999983336, 0.048295480000007274, 0.05124032100002296, 0.049729693000017505, 0.04908831700001315, 0.05080917700001919, 0.049987753999999995, 0.0531549009999992, 0.0500788239999963, 0.05215048800002364, 0.048691826999998966, 0.05095490800002267 ] }, "throughput": { "unit": "tokens/s", "value": 39.644432742215194 }, "energy": { "unit": "kWh", "cpu": 1.715715726216634e-06, "ram": 7.170085375480375e-08, "gpu": 0.0, "total": 1.7874165799714379e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1118933.337874688 } }, "decode": { "memory": { "unit": "MB", "max_ram": 958.09536, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.4143186459999697, "mean": 0.03187066507692075, "stdev": 0.0006297440782345491, "p50": 0.03199312300000656, "p90": 0.032721548400019174, "p95": 0.03281484860000887, "p99": 0.032874893719994136, "values": [ 0.032072783000018035, 0.03199312300000656, 0.03144916700000522, 0.03207294999998567, 0.03091117399998211, 0.03232994900000108, 0.03102393300000017, 0.032764811000021155, 0.03288990499999045, 0.03254849800001125, 0.031442423999976654, 0.031158094999995, 0.03166183399997635 ] }, "throughput": { "unit": "tokens/s", "value": 31.376816190891276 }, "energy": { "unit": "kWh", "cpu": 1.0241475811711066e-06, "ram": 4.280297568444454e-08, "gpu": 0.0, "total": 1.0669505568555504e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 937250.5535281196 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 12, "total": 0.986792706000017, "mean": 0.08223272550000142, "stdev": 0.0016796134686277381, "p50": 0.08236614800000552, "p90": 0.08362959369999601, "p95": 0.08477850575000047, "p99": 0.08586974755000483, "values": [ 0.08216666000001283, 0.07977263699999071, 0.08333376999999587, 0.0807148140000038, 0.08134840700000723, 0.0819278870000062, 0.08269180199999937, 0.08614255800000592, 0.08260311600000136, 0.08366246299999602, 0.07986295599999949, 0.08256563599999822 ] }, "throughput": { "unit": "tokens/s", "value": 12.160608734778986 }, "energy": null, "efficiency": null } } }