We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b25b7d commit 565c1efCopy full SHA for 565c1ef
vllm/platforms/cpu.py
@@ -115,6 +115,9 @@ def check_and_update_config(cls, vllm_config: VllmConfig) -> None:
115
# Environment variables for CPU executor
116
#
117
118
+ # Set default threads num for OpenMP parallel
119
+ os.environ["OMP_NUM_THREADS"] = str(torch.get_num_threads())
120
+
121
# Disable torch async compiling which won't work with daemonic processes
122
os.environ["TORCHINDUCTOR_COMPILE_THREADS"] = "1"
123
0 commit comments