Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
565c1efa
Unverified
Commit
565c1efa
authored
Feb 12, 2025
by
Li, Jiang
Committed by
GitHub
Feb 11, 2025
Browse files
[CI/Build][Bugfix] Fix CPU backend default threads num (#13077)
parent
2b25b7d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
vllm/platforms/cpu.py
vllm/platforms/cpu.py
+3
-0
No files found.
vllm/platforms/cpu.py
View file @
565c1efa
...
...
@@ -115,6 +115,9 @@ class CpuPlatform(Platform):
# Environment variables for CPU executor
#
# Set default threads num for OpenMP parallel
os
.
environ
[
"OMP_NUM_THREADS"
]
=
str
(
torch
.
get_num_threads
())
# Disable torch async compiling which won't work with daemonic processes
os
.
environ
[
"TORCHINDUCTOR_COMPILE_THREADS"
]
=
"1"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment