Skip to content

Commit

Permalink
Fix V1 TP trust-remote-code
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Michael Smith <[email protected]>
  • Loading branch information
tlrmchlsmth committed Dec 13, 2024
1 parent 4816d20 commit ff0ccf5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vllm/v1/engine/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

from vllm.config import CacheConfig, VllmConfig
from vllm.logger import init_logger
from vllm.transformers_utils.config import (
maybe_register_config_serialize_by_value)
from vllm.usage.usage_lib import UsageContext
from vllm.v1.core.scheduler import Scheduler
from vllm.v1.engine import (EngineCoreOutput, EngineCoreOutputs,
Expand Down Expand Up @@ -245,6 +247,9 @@ def run_engine_core(*args, **kwargs):
# processes to terminate without error
shutdown_requested = False

# Ensure we can serialize transformer config after spawning
maybe_register_config_serialize_by_value()

def signal_handler(signum, frame):
nonlocal shutdown_requested
if not shutdown_requested:
Expand Down

0 comments on commit ff0ccf5

Please sign in to comment.