{ "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": "c7d418d922cbefab0ec36f45ad29b1b46b499c69", "transformers_version": "4.44.2", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.30.1", "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": 1110.429696, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.698876228000017, "mean": 4.698876228000017, "stdev": 0.0, "p50": 4.698876228000017, "p90": 4.698876228000017, "p95": 4.698876228000017, "p99": 4.698876228000017, "values": [ 4.698876228000017 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.66681327666669e-05, "ram": 2.7865545351353564e-06, "gpu": 0, "total": 6.945468730180225e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 963.780608, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.6567078150000611, "mean": 0.04690770107143294, "stdev": 0.002027394053079682, "p50": 0.04718306100001257, "p90": 0.04863866060001385, "p95": 0.048977441100011274, "p99": 0.04944311462000797, "values": [ 0.04557981599998584, 0.047717435999999225, 0.04857951900001467, 0.04531798499999695, 0.0486640070000135, 0.04688110999998685, 0.04630157600001894, 0.04653430100000833, 0.04817552400001546, 0.04705494600000293, 0.04811693299998865, 0.04955953300000715, 0.047311176000022215, 0.04091395300000045 ] }, "throughput": { "unit": "tokens/s", "value": 42.63692217519505 }, "energy": { "unit": "kWh", "cpu": 1.779645661111121e-06, "ram": 7.437453874515658e-08, "gpu": 0.0, "total": 1.8540201998562775e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1078736.8984194663 } }, "decode": { "memory": { "unit": "MB", "max_ram": 964.56704, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.4096704689999626, "mean": 0.029262176357140186, "stdev": 0.001461812923698542, "p50": 0.02957430949999207, "p90": 0.030471344100004672, "p95": 0.030628160050001442, "p99": 0.03084866240999162, "values": [ 0.030451741999996784, 0.029619884999988244, 0.029061079000001655, 0.029643739999983154, 0.029473120999995217, 0.03047974500000805, 0.02998226399998316, 0.029993675000014264, 0.029482787999995708, 0.029271092000016097, 0.030903787999989163, 0.029528733999995893, 0.02603275099997404, 0.02574606500002119 ] }, "throughput": { "unit": "tokens/s", "value": 34.17380811991425 }, "energy": { "unit": "kWh", "cpu": 8.572341322222068e-07, "ram": 3.582650708574915e-08, "gpu": 0.0, "total": 8.930606393079562e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 1119744.792218043 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.4034106249999354, "mean": 0.02881504464285253, "stdev": 0.00140893188522479, "p50": 0.029103568499991184, "p90": 0.030007116399991672, "p95": 0.030151720349994093, "p99": 0.03035205607000421, "values": [ 0.029984337000001915, 0.029151958999989347, 0.02859016799999381, 0.029170203999996147, 0.029002128999991328, 0.030016878999987284, 0.029516422000000375, 0.029522753999998486, 0.029018248999989282, 0.02883152900000141, 0.03040214000000674, 0.02905517799999302, 0.025714234999981045, 0.02543444200000522 ] }, "throughput": { "unit": "tokens/s", "value": 34.70409337880538 }, "energy": null, "efficiency": null } } }