[Model] Add MiniMax-H3 long-video latent continuation with driving audio (#7838)

Signed-off-by: princepride <wangzhipeng628@gmail.com>
This commit is contained in:
汪志鹏 authored and GitHub committed 2026-09-20 23:44:33 +08:00
1 parent 16734bbdf3
commit 139a47a578
17 files changed
+1089 -50

No files matched your search

@@ -358,6 +358,7 @@ class MiniMaxH3EncoderMediaInput:
video_audios: tuple[tuple[torch.Tensor, int] | None, ...] = ()
audios: tuple[tuple[torch.Tensor, int], ...] = ()
keyframe_frame_indices: tuple[int, ...] = ()
audio_mode: str = "native"
video_edit: torch.Tensor | None = None
video_edit_mask: torch.Tensor | None = None
audio_edit: tuple[torch.Tensor, int] | None = None
@@ -468,6 +469,7 @@ class MiniMaxH3EncoderMediaInput:
if cursor != len(tensors):
raise ValueError(f"MiniMax H3 encoder media input has {len(tensors) - cursor} trailing tensors")
return cls(
audio_mode=str(metadata.get("audio_mode", "native")),
task=task,
height=height,
width=width,
@@ -541,6 +543,7 @@ class MiniMaxH3EncoderMediaInput:
def to_metadata(self) -> dict[str, Any]:
metadata = {
"audio_mode": self.audio_mode,
"task": self.task,
"height": self.height,
"width": self.width,