mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-17 06:55:01 +08:00
[V1] Remove unnecessary check for main thread (#23298)
Signed-off-by: Robert Shaw <robshaw@redhat.com> Co-authored-by: Robert Shaw <robshaw@redhat.com>
This commit is contained in:
parent
d70a16625d
commit
c8e33c72c6
@ -8,7 +8,6 @@ import dataclasses
|
|||||||
import functools
|
import functools
|
||||||
import json
|
import json
|
||||||
import sys
|
import sys
|
||||||
import threading
|
|
||||||
from dataclasses import MISSING, dataclass, fields, is_dataclass
|
from dataclasses import MISSING, dataclass, fields, is_dataclass
|
||||||
from itertools import permutations
|
from itertools import permutations
|
||||||
from typing import (TYPE_CHECKING, Annotated, Any, Callable, Dict, List,
|
from typing import (TYPE_CHECKING, Annotated, Any, Callable, Dict, List,
|
||||||
@ -1527,11 +1526,6 @@ class EngineArgs:
|
|||||||
#############################################################
|
#############################################################
|
||||||
# Experimental Features - allow users to opt in.
|
# Experimental Features - allow users to opt in.
|
||||||
|
|
||||||
# Signal Handlers requires running in main thread.
|
|
||||||
if (threading.current_thread() != threading.main_thread()
|
|
||||||
and _warn_or_fallback("Engine in background thread")):
|
|
||||||
return False
|
|
||||||
|
|
||||||
if self.pipeline_parallel_size > 1:
|
if self.pipeline_parallel_size > 1:
|
||||||
supports_pp = getattr(self.distributed_executor_backend,
|
supports_pp = getattr(self.distributed_executor_backend,
|
||||||
'supports_pp', False)
|
'supports_pp', False)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user