{ "config": { "name": "cpu_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.4.1+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": null, "numactl": false, "numactl_kwargs": {}, "start_method": "spawn" }, "environment": { "cpu": " AMD EPYC 7763 64-Core Processor", "cpu_count": 4, "cpu_ram_mb": 16766.7712, "system": "Linux", "machine": "x86_64", "platform": "Linux-6.8.0-1014-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.15", "optimum_benchmark_version": "0.5.0", "optimum_benchmark_commit": "a16a29b43c99d2eff09a41f73234f2547a1a3069", "transformers_version": "4.45.2", "transformers_commit": null, "accelerate_version": "1.0.0", "accelerate_commit": null, "diffusers_version": "0.30.3", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.9", "timm_commit": null, "peft_version": null, "peft_commit": null }, "print_report": true, "log_report": true }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 1110.216704, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 1.7462414089999925 ], "count": 1, "total": 1.7462414089999925, "mean": 1.7462414089999925, "p50": 1.7462414089999925, "p90": 1.7462414089999925, "p95": 1.7462414089999925, "p99": 1.7462414089999925, "stdev": 0, "stdev_": 0 }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 965.12, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.05847291100002394, 0.0587350079999851, 0.05800987999998597, 0.05725703900003509, 0.055814736000002085, 0.05529255499999408, 0.05864264599995295, 0.05605609499997399, 0.06479728400000795, 0.06296450499996809, 0.0558096969999724 ], "count": 11, "total": 0.6418523559999016, "mean": 0.05835021418180924, "p50": 0.05800987999998597, "p90": 0.06296450499996809, "p95": 0.06388089449998802, "p99": 0.06461400610000397, "stdev": 0.002890596433308884, "stdev_": 4.953874589564114 }, "throughput": { "unit": "tokens/s", "value": 34.27579535129629 }, "energy": { "unit": "kWh", "cpu": 2.2610128570988415e-06, "ram": 9.453839677954192e-08, "gpu": 0.0, "total": 2.355551253878383e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 849058.1543097512 } }, "decode": { "memory": { "unit": "MB", "max_ram": 965.12, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.035946590999969885, 0.03657780600002525, 0.03574008599997569, 0.03549218599999904, 0.03713386000003993, 0.038886989999980415, 0.03568703900003811, 0.03687295399998902, 0.040660860000002685, 0.035020719000044664, 0.03839390299998513 ], "count": 11, "total": 0.4064129940000498, "mean": 0.03694663581818635, "p50": 0.03657780600002525, "p90": 0.038886989999980415, "p95": 0.03977392499999155, "p99": 0.04048347300000046, "stdev": 0.0016431275989033322, "stdev_": 4.44729963233765 }, "throughput": { "unit": "tokens/s", "value": 27.066063739090612 }, "energy": { "unit": "kWh", "cpu": 1.452573656537359e-06, "ram": 6.074364657406553e-08, "gpu": 0.0, "total": 1.5133173031114244e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 660799.9511695075 } }, "per_token": { "memory": null, "latency": { "unit": "s", "values": [ 0.0354772879999814, 0.036117790000048444, 0.03531505600000173, 0.03508891600000652, 0.03667405500004861, 0.038397408999969684, 0.03529696300000751, 0.03637859499997376, 0.04013882899999999, 0.03456992000002401, 0.03776601499998833 ], "count": 11, "total": 0.40122083600005, "mean": 0.03647462145455, "p50": 0.036117790000048444, "p90": 0.038397408999969684, "p95": 0.039268118999984836, "p99": 0.03996468699999696, "stdev": 0.0016023211121905627, "stdev_": 4.392975302532392 }, "throughput": { "unit": "tokens/s", "value": 27.416322914990957 }, "energy": null, "efficiency": null } } }