{ "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.767104, "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": "496d74599887a901aaff2a5946eda97d8b8253a3", "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.065792, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.79189828600002, "mean": 4.79189828600002, "stdev": 0.0, "p50": 4.79189828600002, "p90": 4.79189828600002, "p95": 4.79189828600002, "p99": 4.79189828600002, "values": [ 4.79189828600002 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.694621146111075e-05, "ram": 2.799724473952759e-06, "gpu": 0, "total": 6.974593593506352e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 969.527296, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.6213254570000402, "mean": 0.04438038978571716, "stdev": 0.002069831533082474, "p50": 0.04509165250000535, "p90": 0.046072940700005914, "p95": 0.0461333424000145, "p99": 0.04621803168001634, "values": [ 0.04356078400002161, 0.04607634000001326, 0.04584716100001174, 0.043420201000003544, 0.04581090299998891, 0.0455677789999811, 0.044143493000007084, 0.04493794999999068, 0.04606500899998878, 0.0447199420000004, 0.0462392040000168, 0.04524535500002003, 0.040636301999995794, 0.03905503400000043 ] }, "throughput": { "unit": "tokens/s", "value": 45.06494894832257 }, "energy": { "unit": "kWh", "cpu": 1.55781208644444e-06, "ram": 6.514045142026734e-08, "gpu": 0.0, "total": 1.6229525378647072e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1232321.9276833371 } }, "decode": { "memory": { "unit": "MB", "max_ram": 970.182656, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.3969281509999689, "mean": 0.028352010785712065, "stdev": 0.001607494170766613, "p50": 0.028919357000006585, "p90": 0.02933393110000111, "p95": 0.029383686900000327, "p99": 0.02939031897999115, "values": [ 0.02922824999998852, 0.029379223000006505, 0.029120567999996183, 0.02897680000000946, 0.028728265000012243, 0.028861914000003708, 0.029176372999984324, 0.028990294999999833, 0.02883547499999395, 0.029391976999988856, 0.0284759629999769, 0.028807221999983312, 0.02488341200000832, 0.024072414000016806 ] }, "throughput": { "unit": "tokens/s", "value": 35.270866943375594 }, "energy": { "unit": "kWh", "cpu": 9.322432600832963e-07, "ram": 3.8983804091197156e-08, "gpu": 0.0, "total": 9.71227064174493e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 1029625.3439456641 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.3904897900000037, "mean": 0.027892127857143123, "stdev": 0.0015508869225072956, "p50": 0.02845208849998926, "p90": 0.028836357199992335, "p95": 0.028883076249998398, "p99": 0.028884477650001655, "values": [ 0.028729546999983313, 0.02888482800000247, 0.028649918000013486, 0.028491061000011086, 0.02824616300000571, 0.028393657999998823, 0.02869265900000073, 0.028475882999998703, 0.028349887000018725, 0.028882132999996202, 0.02795235399997864, 0.028428293999979815, 0.02454897699999492, 0.0237644280000211 ] }, "throughput": { "unit": "tokens/s", "value": 35.85240986710527 }, "energy": null, "efficiency": null } } }