{
    "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.338112,
            "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": "1e6f9712dc17e792bdaa02aa527364d60a088987",
            "transformers_version": "4.44.2",
            "transformers_commit": null,
            "accelerate_version": "0.33.0",
            "accelerate_commit": null,
            "diffusers_version": "0.30.2",
            "diffusers_commit": null,
            "optimum_version": null,
            "optimum_commit": null,
            "timm_version": "1.0.9",
            "timm_commit": null,
            "peft_version": null,
            "peft_commit": null
        }
    },
    "report": {
        "load": {
            "memory": {
                "unit": "MB",
                "max_ram": 1112.592384,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "count": 1,
                "total": 4.747635889999998,
                "mean": 4.747635889999998,
                "stdev": 0.0,
                "p50": 4.747635889999998,
                "p90": 4.747635889999998,
                "p95": 4.747635889999998,
                "p99": 4.747635889999998,
                "values": [
                    4.747635889999998
                ]
            },
            "throughput": null,
            "energy": {
                "unit": "kWh",
                "cpu": 6.765920762222162e-05,
                "ram": 2.8279739605713583e-06,
                "gpu": 0,
                "total": 7.048718158279298e-05
            },
            "efficiency": null
        },
        "prefill": {
            "memory": {
                "unit": "MB",
                "max_ram": 965.935104,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "count": 15,
                "total": 0.6540535110000292,
                "mean": 0.043603567400001944,
                "stdev": 0.0024272337499643233,
                "p50": 0.04247085399998696,
                "p90": 0.04689948100000265,
                "p95": 0.04718272500000183,
                "p99": 0.04754169620001164,
                "values": [
                    0.04478227699999593,
                    0.046763074000011784,
                    0.046990418999996564,
                    0.04595684599999572,
                    0.0476314390000141,
                    0.042250140000021474,
                    0.04184940100000745,
                    0.04156681199998502,
                    0.04493870000001721,
                    0.04247085399998696,
                    0.04214269999999942,
                    0.04499302299998931,
                    0.04064376600001651,
                    0.040615701999996645,
                    0.04045835799999509
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 45.86780667858637
            },
            "energy": {
                "unit": "kWh",
                "cpu": 1.6114057135555666e-06,
                "ram": 6.734389651446399e-08,
                "gpu": 0.0,
                "total": 1.6787496100700307e-06
            },
            "efficiency": {
                "unit": "tokens/kWh",
                "value": 1191362.897720386
            }
        },
        "decode": {
            "memory": {
                "unit": "MB",
                "max_ram": 966.721536,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "count": 15,
                "total": 0.39776813500000685,
                "mean": 0.026517875666667124,
                "stdev": 0.0015948898306610813,
                "p50": 0.0257437060000143,
                "p90": 0.029259092199998803,
                "p95": 0.02940345309999941,
                "p99": 0.029438647420004713,
                "values": [
                    0.029070832000002156,
                    0.02938459899999657,
                    0.02837989900001503,
                    0.02944744600000604,
                    0.026422607000000653,
                    0.02606851499999152,
                    0.02571395100000018,
                    0.025768553000006023,
                    0.025630764999988287,
                    0.0257437060000143,
                    0.02560864299999821,
                    0.025206521000001203,
                    0.025150666999991245,
                    0.025239072999994505,
                    0.02493235800000093
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 37.71041136816991
            },
            "energy": {
                "unit": "kWh",
                "cpu": 9.531918211666303e-07,
                "ram": 3.983682043801704e-08,
                "gpu": 0.0,
                "total": 9.930286416046476e-07
            },
            "efficiency": {
                "unit": "tokens/kWh",
                "value": 1007020.2994186424
            }
        },
        "per_token": {
            "memory": null,
            "latency": {
                "unit": "s",
                "count": 15,
                "total": 0.392209677999972,
                "mean": 0.0261473118666648,
                "stdev": 0.0015360000415957538,
                "p50": 0.025409872000011546,
                "p90": 0.0287923716000023,
                "p95": 0.028933663700004785,
                "p99": 0.02896360073999688,
                "values": [
                    0.02860448999999221,
                    0.028917626000009022,
                    0.027928415000019413,
                    0.0289710849999949,
                    0.026045240999991393,
                    0.025723989999988817,
                    0.025355900999983305,
                    0.025441540999992185,
                    0.025277904999995826,
                    0.025409872000011546,
                    0.025277504000001727,
                    0.024894977999991852,
                    0.024842489999997497,
                    0.024894958999993833,
                    0.024623681000008446
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 38.24484922577834
            },
            "energy": null,
            "efficiency": null
        }
    }
}