Files
hao-ai-lab-FastVideo/fastvideo
Will LinandClaude Fable 5 98df094cbc [bugfix]: coerce integer sdpa masks and keep torch 2D mask semantics
_normalize_attn_mask_for_sdpa passed tokenizer-produced int64 0/1 masks
straight to F.scaled_dot_product_attention, which rejects long dtypes — the
HYWorld pipeline crashed on exactly the SDPA-fallback machines the fastcheck
stabilization targeted; coerce non-bool/non-float masks to bool. Lift the
[batch, key_len] -> [batch, 1, 1, key_len] reinterpretation out of the impl
into SDPAMetadataBuilder.build, where that semantic is known, so 2D masks
reaching the impl keep torch's documented [query_len, key_len] broadcast
meaning. Reuse the identical metadata for HYWorld's prope attention instead
of rebuilding it, and note that the metadata does not choose the executing
kernel.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-07 14:35:48 -07:00
..
2026-07-07 08:35:38 +00:00
2026-06-09 14:55:55 -07:00
2026-06-04 14:22:49 -07:00