{ "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", "model": "openai-community/gpt2", "library": "transformers", "device": "cpu", "device_ids": null, "seed": 42, "inter_op_num_threads": null, "intra_op_num_threads": null, "hub_kwargs": { "revision": "main", "force_download": false, "local_files_only": false, "trust_remote_code": false }, "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.338112, "system": "Linux", "machine": "x86_64", "platform": "Linux-6.5.0-1018-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.14", "optimum_benchmark_version": "0.2.0", "optimum_benchmark_commit": "3e2eebdc0f80ae6deeb2e1faad3e889ed5a4df2d", "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": "0.9.16", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 958.312448, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.6226214250000339, "mean": 0.04447295892857385, "stdev": 0.0006497683664670401, "p50": 0.04445699649998858, "p90": 0.04529145000000767, "p95": 0.04560630480000612, "p99": 0.045885101759996015, "values": [ 0.045954800999993495, 0.04446333299998173, 0.044494441000011875, 0.04426547500000311, 0.04376506200000563, 0.04499464299999545, 0.04426369099999761, 0.04452789300000859, 0.043635319999992817, 0.04387021799999502, 0.04445065999999542, 0.04541865300001291, 0.043626325000019506, 0.04489091000002077 ] }, "throughput": { "unit": "tokens/s", "value": 44.97114759582595 }, "energy": { "unit": "kWh", "cpu": 1.6963920155585101e-06, "ram": 7.089398842205409e-08, "gpu": 0.0, "total": 1.767286003980564e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1131678.741016044 } }, "decode": { "memory": { "unit": "MB", "max_ram": 958.312448, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.3892796470000519, "mean": 0.027805689071432278, "stdev": 0.0009139966924691778, "p50": 0.02751088150000669, "p90": 0.028758083700014935, "p95": 0.0293590112500155, "p99": 0.030069515850009054, "values": [ 0.0284717760000035, 0.027489577000011423, 0.028459322999992764, 0.027429003000008834, 0.02726347500001225, 0.027557150999996338, 0.027213382000013553, 0.02688716399998725, 0.027532186000001957, 0.028088781999997536, 0.028880787000019836, 0.02703322499999672, 0.030247142000007443, 0.026726674000002504 ] }, "throughput": { "unit": "tokens/s", "value": 35.963863273843685 }, "energy": { "unit": "kWh", "cpu": 1.0036530932366561e-06, "ram": 4.1946113965940766e-08, "gpu": 0.0, "total": 1.0455992072025971e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 956389.4015139955 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 13, "total": 0.9377388369999835, "mean": 0.07213375669230643, "stdev": 0.0007910113430319274, "p50": 0.07195642499999622, "p90": 0.0731509747999894, "p95": 0.07340619199998741, "p99": 0.07365363199999024, "values": [ 0.07198634099998458, 0.07295490600000676, 0.07172076599999855, 0.07105912399998715, 0.07256558100002053, 0.07149065799998766, 0.07143760900001439, 0.07115158700000279, 0.07195642499999622, 0.07319999199998506, 0.07267799000001673, 0.07371549199999095, 0.07182236599999214 ] }, "throughput": { "unit": "tokens/s", "value": 13.863134901812996 }, "energy": null, "efficiency": null } } }