{ "config": { "name": "cpu_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.3.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": "error", "numactl": false, "numactl_kwargs": {}, "start_method": "spawn" }, "environment": { "cpu": " AMD EPYC 7763 64-Core Processor", "cpu_count": 4, "cpu_ram_mb": 16757.342208, "system": "Linux", "machine": "x86_64", "platform": "Linux-6.5.0-1024-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.14", "optimum_benchmark_version": "0.3.1", "optimum_benchmark_commit": "a7a97473b632c48148612a312a4eb89b241c78ba", "transformers_version": "4.42.4", "transformers_commit": null, "accelerate_version": "0.32.1", "accelerate_commit": null, "diffusers_version": "0.29.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.7", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 1103.949824, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 5.034189029999993, "mean": 5.034189029999993, "stdev": 0.0, "p50": 5.034189029999993, "p90": 5.034189029999993, "p95": 5.034189029999993, "p99": 5.034189029999993, "values": [ 5.034189029999993 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.776167551676433e-05, "ram": 2.8322346144034326e-06, "gpu": 0, "total": 7.059391013116776e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 957.304832, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.6220744530000388, "mean": 0.04443388950000277, "stdev": 0.0017111831826938334, "p50": 0.04419783150000001, "p90": 0.04673925839999811, "p95": 0.04713835214999591, "p99": 0.0476757456299984, "values": [ 0.04677664499999423, 0.043974724999998216, 0.044390672000020004, 0.04339041500000462, 0.04456657000000064, 0.042820750999993606, 0.044140695000010055, 0.04605218300000047, 0.04665202300000715, 0.04244049199999722, 0.04425496799998996, 0.047810093999999026, 0.04201571900000545, 0.042788501000018186 ] }, "throughput": { "unit": "tokens/s", "value": 45.010689419837426 }, "energy": { "unit": "kWh", "cpu": 1.6958578773166827e-06, "ram": 7.08719130409463e-08, "gpu": 0.0, "total": 1.7667297903576288e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1132035.0236439675 } }, "decode": { "memory": { "unit": "MB", "max_ram": 958.222336, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.38168505199993774, "mean": 0.027263217999995554, "stdev": 0.00111371870785759, "p50": 0.02714446399998849, "p90": 0.02826827360001971, "p95": 0.028934908200005792, "p99": 0.02976805843998818, "values": [ 0.02668853899999135, 0.027887004999996634, 0.026440244999974993, 0.025771275000010974, 0.027813457999997127, 0.028021266000024525, 0.02633259399999588, 0.029976345999983778, 0.027765016999978798, 0.02690320799999313, 0.026704939000012473, 0.02738571999998385, 0.028374134000017648, 0.025621305999976585 ] }, "throughput": { "unit": "tokens/s", "value": 36.67945581479644 }, "energy": { "unit": "kWh", "cpu": 1.011168922203175e-06, "ram": 4.2259039674945595e-08, "gpu": 0.0, "total": 1.0534279618781202e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 949281.807763233 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.37625699899999177, "mean": 0.02687549992857084, "stdev": 0.0011185561196108778, "p50": 0.02678810899999462, "p90": 0.027887668600013172, "p95": 0.02855098745000646, "p99": 0.029374723089998722, "values": [ 0.026312797000002774, 0.027513838000004398, 0.026047331000000895, 0.02542254400000843, 0.027454658999999992, 0.027633612000016683, 0.02594478999998273, 0.02958065699999679, 0.02738783299997749, 0.02654921799998533, 0.026170672000006334, 0.02702700000000391, 0.027996550000011666, 0.02521549799999434 ] }, "throughput": { "unit": "tokens/s", "value": 37.20861017126304 }, "energy": null, "efficiency": null } } }