{
    "config": {
        "name": "cpu_inference_transformers_text-generation_openai-community/gpt2",
        "backend": {
            "name": "pytorch",
            "version": "2.4.0+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-1025-azure-x86_64-with-glibc2.35",
            "processor": "x86_64",
            "python_version": "3.10.14",
            "optimum_benchmark_version": "0.4.0",
            "optimum_benchmark_commit": "45c18f3ef39c33fbf649d84b1a79c61f6f0cec33",
            "transformers_version": "4.43.4",
            "transformers_commit": null,
            "accelerate_version": "0.33.0",
            "accelerate_commit": null,
            "diffusers_version": "0.29.2",
            "diffusers_commit": null,
            "optimum_version": null,
            "optimum_commit": null,
            "timm_version": "1.0.8",
            "timm_commit": null,
            "peft_version": null,
            "peft_commit": null
        }
    },
    "report": {
        "load": {
            "memory": {
                "unit": "MB",
                "max_ram": 1123.033088,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "count": 1,
                "total": 5.034611192,
                "mean": 5.034611192,
                "stdev": 0.0,
                "p50": 5.034611192,
                "p90": 5.034611192,
                "p95": 5.034611192,
                "p99": 5.034611192,
                "values": [
                    5.034611192
                ]
            },
            "throughput": null,
            "energy": {
                "unit": "kWh",
                "cpu": 7.145569573333306e-05,
                "ram": 2.9866620335716904e-06,
                "gpu": 0,
                "total": 7.444235776690475e-05
            },
            "efficiency": null
        },
        "prefill": {
            "memory": {
                "unit": "MB",
                "max_ram": 976.633856,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "count": 12,
                "total": 0.6195790649999822,
                "mean": 0.051631588749998514,
                "stdev": 0.003263103185561798,
                "p50": 0.050387689499984845,
                "p90": 0.05567043539999759,
                "p95": 0.05743018409999934,
                "p99": 0.0590079616200029,
                "values": [
                    0.05940240600000379,
                    0.05581654799999569,
                    0.05071615499997506,
                    0.04982490899999448,
                    0.05228182600001219,
                    0.052202125999997406,
                    0.04783920800002761,
                    0.048573487999988174,
                    0.05435542200001464,
                    0.05005922399999463,
                    0.049467687999992904,
                    0.04904006499998559
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 38.73597633580581
            },
            "energy": {
                "unit": "kWh",
                "cpu": 1.8712243370370313e-06,
                "ram": 7.819694685404168e-08,
                "gpu": 0.0,
                "total": 1.949421283891073e-06
            },
            "efficiency": {
                "unit": "tokens/kWh",
                "value": 1025945.5031741376
            }
        },
        "decode": {
            "memory": {
                "unit": "MB",
                "max_ram": 977.420288,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "count": 12,
                "total": 0.38567040400005226,
                "mean": 0.03213920033333769,
                "stdev": 0.0019006041354823987,
                "p50": 0.03209250600002633,
                "p90": 0.0341456934999826,
                "p95": 0.0345922167999845,
                "p99": 0.035014539359987114,
                "values": [
                    0.03401427099998955,
                    0.03288300600002003,
                    0.031914306000032866,
                    0.0322707060000198,
                    0.035120119999987764,
                    0.030369133000021975,
                    0.030831751999983226,
                    0.03416029599998183,
                    0.03173143299994763,
                    0.031522931000040444,
                    0.033163252999997894,
                    0.027689197000029253
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 31.11465094427721
            },
            "energy": {
                "unit": "kWh",
                "cpu": 1.549198502777901e-06,
                "ram": 6.474836350752985e-08,
                "gpu": 0.0,
                "total": 1.613946866285431e-06
            },
            "efficiency": {
                "unit": "tokens/kWh",
                "value": 619599.0840154134
            }
        },
        "per_token": {
            "memory": null,
            "latency": {
                "unit": "s",
                "count": 12,
                "total": 0.37992053799996484,
                "mean": 0.0316600448333304,
                "stdev": 0.0018612350401384212,
                "p50": 0.0315954520000048,
                "p90": 0.033624582199973926,
                "p95": 0.03407087929998909,
                "p99": 0.03449331186000393,
                "values": [
                    0.033496207999974104,
                    0.03235662700001285,
                    0.031423684000003504,
                    0.03176722000000609,
                    0.03459892000000764,
                    0.029876967999996396,
                    0.030337282999994386,
                    0.03363884599997391,
                    0.031240980999996282,
                    0.031066954000039004,
                    0.03275163899996869,
                    0.02736520799999198
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 31.58555223987683
            },
            "energy": null,
            "efficiency": null
        }
    }
}