{
    "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-1023-azure-x86_64-with-glibc2.35",
            "processor": "x86_64",
            "python_version": "3.10.14",
            "optimum_benchmark_version": "0.3.1",
            "optimum_benchmark_commit": "25912a6d02929e242ccb030ce6895e556366bb93",
            "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": 1115.598848,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "count": 1,
                "total": 4.763042686000006,
                "mean": 4.763042686000006,
                "stdev": 0.0,
                "p50": 4.763042686000006,
                "p90": 4.763042686000006,
                "p95": 4.763042686000006,
                "p99": 4.763042686000006,
                "values": [
                    4.763042686000006
                ]
            },
            "throughput": null,
            "energy": {
                "unit": "kWh",
                "cpu": 6.690249178144668e-05,
                "ram": 2.7963459764066556e-06,
                "gpu": 0,
                "total": 6.969883775785333e-05
            },
            "efficiency": null
        },
        "prefill": {
            "memory": {
                "unit": "MB",
                "max_ram": 969.723904,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "count": 15,
                "total": 0.6336398070000371,
                "mean": 0.04224265380000247,
                "stdev": 0.001191928176695095,
                "p50": 0.04200544500000092,
                "p90": 0.044199246800013726,
                "p95": 0.04478161050001006,
                "p99": 0.04484592929998996,
                "values": [
                    0.04474715400002083,
                    0.04203643299999271,
                    0.041766568000014104,
                    0.04139119399999913,
                    0.04178999100000169,
                    0.04248976200000243,
                    0.04239397400002076,
                    0.04486200899998494,
                    0.04215402299999482,
                    0.04131322800000703,
                    0.04200544500000092,
                    0.04337738600000307,
                    0.04055527799999936,
                    0.040967518999991626,
                    0.04178984300000366
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 47.34551028609578
            },
            "energy": {
                "unit": "kWh",
                "cpu": 1.5972502496507434e-06,
                "ram": 6.675181242540019e-08,
                "gpu": 0.0,
                "total": 1.6640020620761437e-06
            },
            "efficiency": {
                "unit": "tokens/kWh",
                "value": 1201921.587467649
            }
        },
        "decode": {
            "memory": {
                "unit": "MB",
                "max_ram": 969.723904,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "count": 15,
                "total": 0.38858509099998173,
                "mean": 0.025905672733332115,
                "stdev": 0.0005211902404577274,
                "p50": 0.02587298999998211,
                "p90": 0.026585190799988823,
                "p95": 0.026896299099990983,
                "p99": 0.02712524781999605,
                "values": [
                    0.02630250499998965,
                    0.0262040309999918,
                    0.02550558100000444,
                    0.025486725999996906,
                    0.02677364799998827,
                    0.025610158000006322,
                    0.02587298999998211,
                    0.025721696999994492,
                    0.02596219800000199,
                    0.025922102000009772,
                    0.025986453000001575,
                    0.027182484999997314,
                    0.025429399000017838,
                    0.025464604999996254,
                    0.025160513000002993
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 38.60158391923664
            },
            "energy": {
                "unit": "kWh",
                "cpu": 9.763378269142574e-07,
                "ram": 4.080092487643015e-08,
                "gpu": 0.0,
                "total": 1.017138751790688e-06
            },
            "efficiency": {
                "unit": "tokens/kWh",
                "value": 983150.0355674042
            }
        },
        "per_token": {
            "memory": null,
            "latency": {
                "unit": "s",
                "count": 15,
                "total": 0.3835303079999619,
                "mean": 0.02556868719999746,
                "stdev": 0.0005076716188062939,
                "p50": 0.02553810199998452,
                "p90": 0.026208298399990327,
                "p95": 0.026512943600002357,
                "p99": 0.02677337272000784,
                "values": [
                    0.025960603999976684,
                    0.02586888299998691,
                    0.025167015999983278,
                    0.025166637000012315,
                    0.02637342799999942,
                    0.025275550999992902,
                    0.02553810199998452,
                    0.025385998000018617,
                    0.02562019699999496,
                    0.02556864999999675,
                    0.025662194999995336,
                    0.026838480000009213,
                    0.02511134300002027,
                    0.025144826000001785,
                    0.024848397999988947
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 39.11033805443478
            },
            "energy": null,
            "efficiency": null
        }
    }
}