{ "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-1023-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.14", "optimum_benchmark_version": "0.3.1", "optimum_benchmark_commit": "15551974bf1587da56f13594c8d29dbb2a9cc72d", "transformers_version": "4.43.1", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.29.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.7", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 1121.161216, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.999508577000029, "mean": 4.999508577000029, "stdev": 0.0, "p50": 4.999508577000029, "p90": 4.999508577000029, "p95": 4.999508577000029, "p99": 4.999508577000029, "values": [ 4.999508577000029 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.901350286271837e-05, "ram": 2.884585809480314e-06, "gpu": 0, "total": 7.189808867219869e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 974.78656, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.6536937339998872, "mean": 0.04669240957142051, "stdev": 0.002411470177445133, "p50": 0.045245096999991574, "p90": 0.05004423239998346, "p95": 0.050440481049975006, "p99": 0.05058298340996999, "values": [ 0.04493532700001879, 0.04454583899996578, 0.044629565999969145, 0.044714354000007006, 0.04466232599997966, 0.046878152000033424, 0.044811956999978975, 0.04929482300002519, 0.05061860899996873, 0.04934345399999529, 0.050344565999978386, 0.049326592999989316, 0.04555486699996436, 0.044033301000013125 ] }, "throughput": { "unit": "tokens/s", "value": 42.833514448227575 }, "energy": { "unit": "kWh", "cpu": 1.739835796724771e-06, "ram": 7.271002312108975e-08, "gpu": 0.0, "total": 1.8125458198458607e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1103420.3814886624 } }, "decode": { "memory": { "unit": "MB", "max_ram": 975.572992, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.4064616420001812, "mean": 0.029032974428584372, "stdev": 0.0018256324536103873, "p50": 0.028632922000014105, "p90": 0.03136768960002882, "p95": 0.03143494605001536, "p99": 0.03148326600999155, "values": [ 0.027487650000011854, 0.02909272200002988, 0.027609678000033, 0.02690113199997768, 0.02817312199999833, 0.02711192599997503, 0.030766914000025736, 0.0314953459999856, 0.031402423000031376, 0.030323805000023185, 0.03128664500002287, 0.030804454000019632, 0.02748215900004425, 0.026523666000002777 ] }, "throughput": { "unit": "tokens/s", "value": 34.44359455693425 }, "energy": { "unit": "kWh", "cpu": 1.0445743444077246e-06, "ram": 4.365581908950847e-08, "gpu": 0.0, "total": 1.0882301634972342e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 918923.2512966836 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.4006024190001085, "mean": 0.02861445850000775, "stdev": 0.0017559117726899736, "p50": 0.028268575500021598, "p90": 0.030864076600016686, "p95": 0.030932095500008926, "p99": 0.030976560699989476, "values": [ 0.02713259500001186, 0.028736576000028435, 0.027271855000037704, 0.026549083999952927, 0.02780057500001476, 0.026748345999976664, 0.030257349999999406, 0.030987676999984615, 0.03090216700002202, 0.029830251000021235, 0.03077519900000425, 0.03031315399999812, 0.027104944000029718, 0.026192646000026798 ] }, "throughput": { "unit": "tokens/s", "value": 34.947367604378364 }, "energy": null, "efficiency": null } } }