{ "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": "e1b2533cc248426321f96c19cea6b85683224daa", "transformers_version": "4.44.0", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.30.0", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.8", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 1110.106112, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.431499846000008, "mean": 4.431499846000008, "stdev": 0.0, "p50": 4.431499846000008, "p90": 4.431499846000008, "p95": 4.431499846000008, "p99": 4.431499846000008, "values": [ 4.431499846000008 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.381383197777776e-05, "ram": 2.667249431347984e-06, "gpu": 0, "total": 6.648108140912574e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 964.243456, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.633866939000086, "mean": 0.042257795933339067, "stdev": 0.0022627962995333778, "p50": 0.043015192999973806, "p90": 0.04400327120000611, "p95": 0.04460784380000291, "p99": 0.04521897515999058, "values": [ 0.04132535999997344, 0.043587500000001, 0.043015192999973806, 0.04149027900001556, 0.04428045200000952, 0.042801915000040935, 0.0419240870000408, 0.043266211000002386, 0.045371757999987494, 0.04303129300001274, 0.042888327000014215, 0.04324074300001257, 0.04353674499998306, 0.037164970999981506, 0.03694210500003692 ] }, "throughput": { "unit": "tokens/s", "value": 47.32854508443756 }, "energy": { "unit": "kWh", "cpu": 1.4663247436213562e-06, "ram": 6.12816719834781e-08, "gpu": 0.0, "total": 1.5276064156048343e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1309237.7588687516 } }, "decode": { "memory": { "unit": "MB", "max_ram": 964.374528, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.39309330300000056, "mean": 0.026206220200000036, "stdev": 0.0015553394751897168, "p50": 0.026556994999964445, "p90": 0.02738863559999345, "p95": 0.02774044969998499, "p99": 0.028364591540024547, "values": [ 0.02683275900000126, 0.026556994999964445, 0.02582561999997779, 0.026951650000000882, 0.02736245700003792, 0.026718195000000833, 0.026543048999997154, 0.028520627000034438, 0.027248344000042835, 0.025753525000027366, 0.027406087999963802, 0.026286780999953407, 0.025751773000024514, 0.022579555999982404, 0.02275588399999151 ] }, "throughput": { "unit": "tokens/s", "value": 38.15887954723049 }, "energy": { "unit": "kWh", "cpu": 8.831254926532062e-07, "ram": 3.690828551996629e-08, "gpu": 0.0, "total": 9.200337781731719e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 1086916.615154728 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 15, "total": 0.3862710479999123, "mean": 0.025751403199994152, "stdev": 0.0014939751907894476, "p50": 0.026108548999957293, "p90": 0.026890532600009464, "p95": 0.027231152799993195, "p99": 0.027842508159999398, "values": [ 0.026328889000012623, 0.026108548999957293, 0.02538315499998589, 0.02644016599998622, 0.02687087000003885, 0.026248568999960753, 0.026021865999950933, 0.027995347000000947, 0.026733202999992045, 0.025302123000017218, 0.026903640999989875, 0.025838744999987284, 0.025399356000036732, 0.022270389000027535, 0.0224261799999681 ] }, "throughput": { "unit": "tokens/s", "value": 38.832835330706445 }, "energy": null, "efficiency": null } } }