[BugFix][Cosmos3] Pad sound latents so video+sound runs under sequence parallelism (#4678)

Signed-off-by: lishunyang12 <125541396+lishunyang12@users.noreply.github.com>
Signed-off-by: lishunyang <lishunyang12@163.com>
This commit is contained in:
SYLAR authored and GitHub committed 2026-06-30 17:23:36 +08:00
1 parent 4028680b7e
commit bb8614595d
4 files changed
+65 -7

No files matched your search

@@ -1422,7 +1422,7 @@ class TestForwardRouting:
pipeline.transformer = pipeline.transformer.__class__(latent_channel_size=2, sound_gen=True, sound_dim=3)
sound_latents = torch.zeros(1, 3, 4)
pipeline._resolve_sound_target_samples = lambda *args: (20, 2.0, 10)
pipeline._prepare_sound_latents = lambda *args: (sound_latents, 4)
pipeline._prepare_sound_latents = lambda *args, **kwargs: (sound_latents, 4)
pipeline._decode_sound_latents = lambda *args: torch.ones(1, 2, 20)
output = pipeline.forward(
make_request_batch(