[core] add wake_up doc and some sanity check (#12361)

Signed-off-by: youkaichao <youkaichao@gmail.com>
This commit is contained in:
youkaichao
2025-01-24 02:00:50 +08:00
committed by GitHub
parent 8c01b8022c
commit 3f50c148fd
2 changed files with 12 additions and 0 deletions

View File

@@ -1157,6 +1157,9 @@ class LLM:
self.llm_engine.sleep(level=level)
def wake_up(self):
"""
Wake up the engine from sleep mode. See the :meth:`sleep` method
for more details."""
self.llm_engine.wake_up()
# LEGACY