{ "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.338112, "system": "Linux", "machine": "x86_64", "platform": "Linux-6.5.0-1023-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.14", "optimum_benchmark_version": "0.3.1", "optimum_benchmark_commit": "d0c0a5c5918412583a4f2490ab7e3d1b48375998", "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": 1105.739776, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.880519011000018, "mean": 4.880519011000018, "stdev": 0.0, "p50": 4.880519011000018, "p90": 4.880519011000018, "p95": 4.880519011000018, "p99": 4.880519011000018, "values": [ 4.880519011000018 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.757512622409398e-05, "ram": 2.824456902600332e-06, "gpu": 0, "total": 7.039958312669431e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 959.34464, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.6387683620000644, "mean": 0.04258455746667096, "stdev": 0.0009365716577562458, "p50": 0.04211572400001273, "p90": 0.043623371600000384, "p95": 0.0439347773999998, "p99": 0.044483038680014034, "values": [ 0.04364106599999218, 0.04317169699999113, 0.04334394599999314, 0.04266452600001003, 0.041982665000006136, 0.04462010400001759, 0.041881824000000734, 0.04190543900000421, 0.04168273000001932, 0.043273800999998, 0.04211572400001273, 0.04359683000001269, 0.04118202899999801, 0.04164999900001476, 0.04205598199999372 ] }, "throughput": { "unit": "tokens/s", "value": 46.96538179515687 }, "energy": { "unit": "kWh", "cpu": 1.6268873104342708e-06, "ram": 6.798947397945436e-08, "gpu": 0.0, "total": 1.6948767844137251e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1180026.7832990703 } }, "decode": { "memory": { "unit": "MB", "max_ram": 959.868928, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.3912635929999908, "mean": 0.02608423953333272, "stdev": 0.0005236309221663269, "p50": 0.026088707000013756, "p90": 0.02662415259999875, "p95": 0.026787773699996364, "p99": 0.027053319540005418, "values": [ 0.026645516999991514, 0.026592106000009608, 0.026466341000002558, 0.02582683500000371, 0.026300835999990113, 0.02587305099999071, 0.02544916499999772, 0.025881869000016877, 0.025774355999999443, 0.026439949000007346, 0.02711970600000768, 0.025014927999990277, 0.026270679999981894, 0.025519546999987597, 0.026088707000013756 ] }, "throughput": { "unit": "tokens/s", "value": 38.33732621271602 }, "energy": { "unit": "kWh", "cpu": 1.0658478847256418e-06, "ram": 4.454047784689015e-08, "gpu": 0.0, "total": 1.1103883625725321e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 900585.8073685265 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 15, "total": 0.38594591899999386, "mean": 0.025729727933332926, "stdev": 0.0004798435801624541, "p50": 0.025775378000020055, "p90": 0.026230500600019014, "p95": 0.026394949300012627, "p99": 0.02656012746000158, "values": [ 0.026306461000018544, 0.0260610809999946, 0.02608966299999338, 0.025485051999993402, 0.025940257999991445, 0.025559120999986362, 0.025130406000016592, 0.025558571000004804, 0.025457950999992818, 0.026116560000019717, 0.02660142199999882, 0.024705265999983794, 0.025953412999996317, 0.025205315999983213, 0.025775378000020055 ] }, "throughput": { "unit": "tokens/s", "value": 38.865548932000074 }, "energy": null, "efficiency": null } } }