[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:
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
|
||||
|
||||
Reference in new issue
Block a user