[Feat] support HSDP for DreamID-Omni (#3138)

Signed-off-by: hanzheli <hanzheli@kuaishou.com>
Signed-off-by: fywc <hanzheli@kuaishou.com>
This commit is contained in:
fywc authored and GitHub committed 2026-05-06 13:09:39 +08:00
1 parent f36d891ed1
commit 9f81a0a4b0
7 files changed
+104 -3

No files matched your search

@@ -241,6 +241,12 @@ class FusedBlock(nn.Module):
class FusionModel(nn.Module):
_layerwise_offload_blocks_attrs = ["fused_blocks"]
@staticmethod
def _is_fused_block(name: str, module) -> bool:
return "fused_blocks" in name and name.split(".")[-1].isdigit()
_hsdp_shard_conditions = [_is_fused_block]
def __init__(self, video_config=None, audio_config=None):
super().__init__()
has_video = True