[Bugfix][DiffusionGemma] Read the causal mask as int32 and compile the sample step (#59992)

Signed-off-by: ojeda-e <eojeda@league.com>
This commit is contained in:
Mia Ojeda
2026-10-06 19:25:51 +08:00
committed by GitHub
parent 09e0ce3d82
commit 3313825983
5 changed files with 24 additions and 16 deletions
+1 -1
View File
@@ -472,7 +472,7 @@ def varlen_with_paged_kv(
scale = head_size**-0.5
token_num = sum(query_lens)
dynamic_causal_tensor = (
torch.tensor(dynamic_causal, dtype=torch.bool)
torch.tensor(dynamic_causal, dtype=torch.int32)
if dynamic_causal is not None
else None
)