[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:
1 parent
f03ab38783
commit
bc4a659f03
1 file changed
+3
-3
@@ -1507,9 +1507,9 @@ class HunyuanImage3ForConditionalGeneration(nn.Module, SupportsMultiModal, Suppo
|
|||||||
input_tokens: list[int],
|
input_tokens: list[int],
|
||||||
mm_features: list[MultiModalFeatureSpec] | None = None,
|
mm_features: list[MultiModalFeatureSpec] | None = None,
|
||||||
*,
|
*,
|
||||||
hf_config: PretrainedConfig,
|
hf_config: PretrainedConfig | None = None,
|
||||||
image_grid_thw: list[list[int]] | torch.Tensor,
|
image_grid_thw: list[list[int]] | torch.Tensor | None = None,
|
||||||
video_grid_thw: list[list[int]] | torch.Tensor,
|
video_grid_thw: list[list[int]] | torch.Tensor | None = None,
|
||||||
second_per_grid_ts: list[float] | None = None,
|
second_per_grid_ts: list[float] | None = None,
|
||||||
context_len: int = 0,
|
context_len: int = 0,
|
||||||
seq_len: int | None = None,
|
seq_len: int | None = None,
|
||||||
|
|||||||
Reference in new issue
Block a user