mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-05-06 01:25:42 +08:00
[torch.compile] force inductor threads (#10620)
Signed-off-by: Jee Jee Li <pandaleefree@gmail.com>
This commit is contained in:
parent
a30a605d21
commit
7c2134beda
@ -3,6 +3,8 @@ import os
|
|||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
from typing import TYPE_CHECKING, Optional
|
from typing import TYPE_CHECKING, Optional
|
||||||
|
|
||||||
|
import torch
|
||||||
|
|
||||||
import vllm.envs as envs
|
import vllm.envs as envs
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
@ -26,7 +28,8 @@ def load_general_plugins():
|
|||||||
|
|
||||||
# see https://github.com/vllm-project/vllm/issues/10480
|
# see https://github.com/vllm-project/vllm/issues/10480
|
||||||
os.environ['TORCHINDUCTOR_COMPILE_THREADS'] = '1'
|
os.environ['TORCHINDUCTOR_COMPILE_THREADS'] = '1'
|
||||||
|
# see https://github.com/vllm-project/vllm/issues/10619
|
||||||
|
torch._inductor.config.compile_threads = 1
|
||||||
global plugins_loaded
|
global plugins_loaded
|
||||||
if plugins_loaded:
|
if plugins_loaded:
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user