[Bugfix] Make mrope kwargs optional in HunyuanImage3 get_mrope_input_positions (#2654)

Signed-off-by: Yiyang Liu <yiyangliu@microsoft.com>
Co-authored-by: SYLAR <125541396+lishunyang12@users.noreply.github.com>
This commit is contained in:
Yiyang "Ian" LiuandSYLAR authored and GitHub committed 2026-04-14 14:41:28 +00:00
1 parent f03ab38783
commit bc4a659f03
1 file changed
+3 -3
@@ -1507,9 +1507,9 @@ class HunyuanImage3ForConditionalGeneration(nn.Module, SupportsMultiModal, Suppo
input_tokens: list[int],
mm_features: list[MultiModalFeatureSpec] | None = None,
*,
hf_config: PretrainedConfig,
image_grid_thw: list[list[int]] | torch.Tensor,
video_grid_thw: list[list[int]] | torch.Tensor,
hf_config: PretrainedConfig | None = None,
image_grid_thw: list[list[int]] | torch.Tensor | None = None,
video_grid_thw: list[list[int]] | torch.Tensor | None = None,
second_per_grid_ts: list[float] | None = None,
context_len: int = 0,
seq_len: int | None = None,