Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix training mask strategy issue #248

Merged
merged 11 commits into from
Mar 6, 2025
3 changes: 1 addition & 2 deletions fastvideo/models/hunyuan/modules/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,7 @@ def forward(
if guidance is None:
guidance = torch.tensor([6016.0], device=hidden_states.device, dtype=torch.bfloat16)
if mask_strategy is None:
mask_strategy = [[None] * len(self.heads_num)
for _ in range(len(self.double_blocks) + len(self.single_blocks))]
mask_strategy = [[None] * self.heads_num for _ in range(len(self.double_blocks) + len(self.single_blocks))]
img = x = hidden_states
text_mask = encoder_attention_mask
t = timestep
Expand Down