MCPcopy
hub / github.com/allenai/open-instruct / sleep

Method sleep

open_instruct/vllm_utils.py:788–789  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

786 return future.result()
787
788 def sleep(self) -> None:
789 return self._run_async(self.llm_engine.sleep(level=0, mode="keep"))
790
791 def wake_up(self) -> None:
792 return self._run_async(self.llm_engine.wake_up(tags=["scheduling"]))

Callers 15

wrapperFunction · 0.80
async_callMethod · 0.80
setUpClassMethod · 0.80
setUpClassMethod · 0.80
health_check_fnFunction · 0.80
_prefetch_workerFunction · 0.80
update_weightsMethod · 0.80
slow_taskMethod · 0.80

Calls 1

_run_asyncMethod · 0.95

Tested by 10

setUpClassMethod · 0.64
setUpClassMethod · 0.64
slow_taskMethod · 0.64
slow_functionMethod · 0.64
test_timer_noopMethod · 0.64
silent_functionMethod · 0.64
startMethod · 0.64
acompletionMethod · 0.64