[Bugfix][CI/Build] Fix layerwise offload shutdown and enable it for the LTX-2 distilled T2V accuracy test (#8453)
Signed-off-by: nikiwang-125 <yixinyan79@gmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3ab726c126
commit
148cb943ce
3 files changed
+26
-1
No files matched your search
@@ -521,3 +521,9 @@ class LayerWiseOffloadBackend(OffloadBackend):
|
||||
|
||||
def disable(self) -> None:
|
||||
self._disable(restore_weights=True)
|
||||
|
||||
def shutdown(self) -> None:
|
||||
# Restoring every block copies the whole DiT back onto the device, which
|
||||
# only matters for a later ``enable`` and can outlast the executor's
|
||||
# shutdown grace period.
|
||||
self._disable(restore_weights=False)
|
||||
Reference in new issue
Block a user