[Feat] Support layerwise CPU offloading for more videogen models (#2018)

Signed-off-by: Yuanheng Zhao <jonathan.zhaoyh@gmail.com>
Signed-off-by: yuanheng <jonathan.zhaoyh@gmail.com>
Co-authored-by: Didan Deng <33117903+wtomin@users.noreply.github.com>
This commit is contained in:
Yuanheng ZhaoandDidan Deng authored and GitHub committed 2026-04-20 00:43:53 +08:00
1 parent 93beef17aa
commit 68f28f9631
5 files changed
+192 -110

No files matched your search

@@ -1264,6 +1264,7 @@ class LTX2VideoTransformer3DModel(nn.Module):
_supports_gradient_checkpointing = True
_skip_layerwise_casting_patterns = ["norm"]
_repeated_blocks = ["LTX2VideoTransformerBlock"]
_layerwise_offload_blocks_attrs = ["transformer_blocks"]
_sp_plan: dict[str, Any] | None = None
@staticmethod