{ "config": { "name": "cpu_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.3.0+cpu", "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", "task": "text-generation", "library": "transformers", "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": {}, "hub_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, "latency": true, "memory": 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", "start_method": "spawn" }, "environment": { "cpu": " AMD EPYC 7763 64-Core Processor", "cpu_count": 4, "cpu_ram_mb": 16757.354496, "system": "Linux", "machine": "x86_64", "platform": "Linux-6.5.0-1021-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.14", "optimum_benchmark_version": "0.2.0", "optimum_benchmark_commit": "83a87c3d95805880a695f5bd4e2d038143845010", "transformers_version": "4.40.2", "transformers_commit": null, "accelerate_version": "0.30.1", "accelerate_commit": null, "diffusers_version": "0.27.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.3", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 956.567552, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.6417347019999511, "mean": 0.042782313466663405, "stdev": 0.0011155284139069143, "p50": 0.042451796999955604, "p90": 0.044056694999983395, "p95": 0.04515687249999018, "p99": 0.04591532809999762, "values": [ 0.0447505569999862, 0.04249865500003125, 0.042375143000015214, 0.0422776809999732, 0.042649728000014875, 0.041965898000000834, 0.042451796999955604, 0.04301590199997918, 0.04240109300002359, 0.04249465799995278, 0.04253846900002145, 0.04231732499999907, 0.04244754000001194, 0.04610494199999948, 0.04144531399998641 ] }, "throughput": { "unit": "tokens/s", "value": 46.74829007455216 }, "energy": { "unit": "kWh", "cpu": 1.6528461266447e-06, "ram": 6.907460337128412e-08, "gpu": 0.0, "total": 1.7219207300159842e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1161493.6536488729 } }, "decode": { "memory": { "unit": "MB", "max_ram": 956.567552, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.40064963499992245, "mean": 0.026709975666661497, "stdev": 0.0009105916473624307, "p50": 0.026479460999951243, "p90": 0.02805338659999279, "p95": 0.02874788189998867, "p99": 0.028904280379987313, "values": [ 0.026693139999963478, 0.026061819000005926, 0.027137320999997883, 0.026258015999985673, 0.02603821500002823, 0.028943379999986973, 0.02654470200002379, 0.026289114000007885, 0.026570630999970035, 0.02633145400000103, 0.026884568000014042, 0.026479460999951243, 0.026393338999980642, 0.028664096999989397, 0.025360378000016226 ] }, "throughput": { "unit": "tokens/s", "value": 37.439195470633344 }, "energy": { "unit": "kWh", "cpu": 9.802532527181844e-07, "ram": 4.09678692157698e-08, "gpu": 0.0, "total": 1.021221121933954e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 979219.8560349338 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.9712254330000292, "mean": 0.0693732452142878, "stdev": 0.0017209723791874476, "p50": 0.06892018199999939, "p90": 0.07050731610002003, "p95": 0.07230408430001489, "p99": 0.07432714325997267, "values": [ 0.06860030900003267, 0.06949209699996572, 0.06857677400000739, 0.06871372099999462, 0.07094241000004331, 0.06900143799998659, 0.06931288199996288, 0.0689590900000212, 0.06888127399997757, 0.06940636600000971, 0.06884702000002108, 0.06880784700001641, 0.07483290799996212, 0.0668512970000279 ] }, "throughput": { "unit": "tokens/s", "value": 14.414779024840033 }, "energy": null, "efficiency": null } } }