[Feat] support cache-dit for DreamID-Omni (#3265)

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-23 08:09:33 +08:00
1 parent 4e4458e7bf
commit d01eaca39a
7 files changed
+428 -2

No files matched your search

@@ -128,8 +128,8 @@ class FusedBlock(nn.Module):
def forward(
self,
vid,
audio,
hidden_states,
encoder_hidden_states,
attn: Attention,
vid_e,
vid_seq_lens,
@@ -148,6 +148,8 @@ class FusedBlock(nn.Module):
audio_ref_lengths,
audio_freqs_scaling,
):
vid = hidden_states
audio = encoder_hidden_states
vid_block = self.vid_block
audio_block = self.audio_block