{ "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": "be6c0cc173107a696ca3849a0bcc734c42fb41a4", "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": 1115.99616, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.884205576999989, "mean": 4.884205576999989, "stdev": 0.0, "p50": 4.884205576999989, "p90": 4.884205576999989, "p95": 4.884205576999989, "p99": 4.884205576999989, "values": [ 4.884205576999989 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.713829896666744e-05, "ram": 2.8077985140536654e-06, "gpu": 0, "total": 6.994609748072111e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 969.457664, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.6530796290000183, "mean": 0.04664854492857273, "stdev": 0.0026761363595974763, "p50": 0.047904950000003055, "p90": 0.049016953099985015, "p95": 0.04929085164998526, "p99": 0.04960598153000149, "values": [ 0.049684764000005543, 0.04762940599999865, 0.04804710499999487, 0.048872772000009945, 0.04907874499997433, 0.04834948699999586, 0.04885417799999914, 0.048385525000014695, 0.04776279500001124, 0.045887472999993406, 0.04293998400001442, 0.04242910199999983, 0.042602635000008604, 0.04255565799999772 ] }, "throughput": { "unit": "tokens/s", "value": 42.87379173481955 }, "energy": { "unit": "kWh", "cpu": 1.6945301164251439e-06, "ram": 7.085756908190667e-08, "gpu": 0.0, "total": 1.7653876855070504e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1132895.6333042306 } }, "decode": { "memory": { "unit": "MB", "max_ram": 970.244096, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.40459134800002516, "mean": 0.0288993820000018, "stdev": 0.0017901057925813393, "p50": 0.02974874900000657, "p90": 0.03062837560000844, "p95": 0.030794966400006275, "p99": 0.030849131680002414, "values": [ 0.03021168099999727, 0.03075850900000887, 0.030324731000007432, 0.029694247000009, 0.030235846000010724, 0.02980325100000414, 0.03086267300000145, 0.02969185199998492, 0.03020702200001324, 0.026684783000007428, 0.026035363000005418, 0.026746517999981734, 0.027177430999984153, 0.026157441000009385 ] }, "throughput": { "unit": "tokens/s", "value": 34.60281607405784 }, "energy": { "unit": "kWh", "cpu": 1.0140022991304237e-06, "ram": 4.240070661693674e-08, "gpu": 0.0, "total": 1.0564030057473602e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 946608.4387866186 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.39786108600003445, "mean": 0.02841864900000246, "stdev": 0.0017212201633743074, "p50": 0.02921290599999793, "p90": 0.030085596400016356, "p95": 0.03025356020001766, "p99": 0.030318504040004086, "values": [ 0.029680852000012692, 0.030209848000026795, 0.029795675999992, 0.02914247000001069, 0.0297111090000044, 0.0292691060000152, 0.030334740000000693, 0.02915670599998066, 0.02967585300001474, 0.02630015700000854, 0.02559483299998533, 0.026399962999988702, 0.026798133999989204, 0.025791639000004807 ] }, "throughput": { "unit": "tokens/s", "value": 35.188161126164495 }, "energy": null, "efficiency": null } } }