{
    "config": {
        "name": "cpu_inference_transformers_text-generation_openai-community/gpt2",
        "backend": {
            "name": "pytorch",
            "version": "2.4.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": null,
            "numactl": false,
            "numactl_kwargs": {},
            "start_method": "spawn"
        },
        "environment": {
            "cpu": " AMD EPYC 7763 64-Core Processor",
            "cpu_count": 4,
            "cpu_ram_mb": 16766.7712,
            "system": "Linux",
            "machine": "x86_64",
            "platform": "Linux-6.8.0-1014-azure-x86_64-with-glibc2.35",
            "processor": "x86_64",
            "python_version": "3.10.15",
            "optimum_benchmark_version": "0.4.0",
            "optimum_benchmark_commit": "a1444c36681b929bf906510506a895d0c17c0e4a",
            "transformers_version": "4.44.2",
            "transformers_commit": null,
            "accelerate_version": "0.34.2",
            "accelerate_commit": null,
            "diffusers_version": "0.30.3",
            "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": 1116.151808,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "count": 1,
                "total": 4.804630282000005,
                "mean": 4.804630282000005,
                "stdev": 0.0,
                "p50": 4.804630282000005,
                "p90": 4.804630282000005,
                "p95": 4.804630282000005,
                "p99": 4.804630282000005,
                "values": [
                    4.804630282000005
                ]
            },
            "throughput": null,
            "energy": {
                "unit": "kWh",
                "cpu": 6.74911343555547e-05,
                "ram": 2.822540012855956e-06,
                "gpu": 0,
                "total": 7.031367436841066e-05
            },
            "efficiency": null
        },
        "prefill": {
            "memory": {
                "unit": "MB",
                "max_ram": 969.744384,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "count": 15,
                "total": 0.6513595879999912,
                "mean": 0.043423972533332744,
                "stdev": 0.0028770375984023527,
                "p50": 0.04498897599995644,
                "p90": 0.04633787560002247,
                "p95": 0.04652240200001643,
                "p99": 0.04670838919998232,
                "values": [
                    0.04543820600002846,
                    0.04621054000000413,
                    0.045431753999992,
                    0.046754885999973794,
                    0.0464227660000347,
                    0.04605069999996658,
                    0.04554504500003986,
                    0.04498897599995644,
                    0.04451004200001307,
                    0.04148533999995152,
                    0.03970579499997484,
                    0.039975389000005634,
                    0.03948272900004213,
                    0.03993215799999916,
                    0.03942526200000884
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 46.0575088671304
            },
            "energy": {
                "unit": "kWh",
                "cpu": 1.5616891904444782e-06,
                "ram": 6.530318374344422e-08,
                "gpu": 0.0,
                "total": 1.6269923741879224e-06
            },
            "efficiency": {
                "unit": "tokens/kWh",
                "value": 1229262.0615374772
            }
        },
        "decode": {
            "memory": {
                "unit": "MB",
                "max_ram": 970.661888,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "count": 15,
                "total": 0.39987949900000785,
                "mean": 0.02665863326666719,
                "stdev": 0.00196692793227169,
                "p50": 0.027807305000010274,
                "p90": 0.02880536780002103,
                "p95": 0.02912732550000783,
                "p99": 0.02916181869996308,
                "values": [
                    0.02917044199995189,
                    0.028161135000004833,
                    0.027971562000004724,
                    0.0291088470000318,
                    0.027846627999963403,
                    0.02801550400005226,
                    0.028350149000004876,
                    0.027807305000010274,
                    0.02756215599998768,
                    0.02482681600002934,
                    0.024242936000007376,
                    0.024567702000013014,
                    0.02417482799995696,
                    0.02409827500002848,
                    0.023975213999960943
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 37.51130037301488
            },
            "energy": {
                "unit": "kWh",
                "cpu": 9.330014151110062e-07,
                "ram": 3.9012040167580325e-08,
                "gpu": 0.0,
                "total": 9.72013455278586e-07
            },
            "efficiency": {
                "unit": "tokens/kWh",
                "value": 1028792.3429140113
            }
        },
        "per_token": {
            "memory": null,
            "latency": {
                "unit": "s",
                "count": 15,
                "total": 0.393454093999992,
                "mean": 0.0262302729333328,
                "stdev": 0.001875923090103431,
                "p50": 0.02731540600001381,
                "p90": 0.02828409579997242,
                "p95": 0.028612032399979625,
                "p99": 0.028647535279984596,
                "values": [
                    0.028656410999985837,
                    0.02765182400003141,
                    0.02750394800000322,
                    0.028593012999976963,
                    0.027329320999967877,
                    0.027507345000003625,
                    0.027820719999965604,
                    0.02731540600001381,
                    0.02708742900000516,
                    0.02449406400000953,
                    0.02391514300001063,
                    0.024265888999991603,
                    0.023863205999987258,
                    0.023784489000036046,
                    0.02366588600000341
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 38.12388847579333
            },
            "energy": null,
            "efficiency": null
        }
    }
}