[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:
YAN YIXINandClaude Opus 5.5 authored and GitHub committed 2026-10-04 07:25:51 +00:00
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)