[Core] Pluggable sleep-mode backend abstraction (RFC #34303) (#44074)

This commit is contained in:
Nils Matteson
2026-06-30 22:00:53 -07:00
committed by GitHub
parent aeb35b90f0
commit 93d8f834dd
4 changed files with 309 additions and 4 deletions
+5
View File
@@ -289,6 +289,11 @@ class ModelConfig:
enable_sleep_mode: bool = False
"""Enable sleep mode for the engine (only cuda and
hip platforms are supported)."""
sleep_mode_backend: str = "cumem"
"""Mechanism used to free and restore GPU state for sleep mode. ``"cumem"``
(default) uses the built-in ``CuMemAllocator`` and is behavior-compatible
with prior releases. Additional backends (CUDA checkpoint, CRIU, durable
snapshot) may be registered in-tree or by plugins (RFC #34303)."""
enable_cumem_allocator: bool = False
"""Enable the custom cumem allocator to leverage advanced GPU memory
allocation features such as multi-node NVLink support.