Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions python/sglang/srt/entrypoints/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ def __init__(self, **kwargs):
self.server_args = server_args
logger.info(f"{server_args=}")

# Pre-initialize tokenizer_manager so the atexit handler in
# shutdown() won't hit AttributeError.
self.tokenizer_manager = None

# Shutdown the subprocesses automatically when the program exits
atexit.register(self.shutdown)

Expand Down
Loading