vllm.models.nemotron_shortcut.nvidia.sdsa.mask
¶
Functions:
-
sdsa_mask_mod–FA4 mask_mod of the SDSA prefill core: query q_idx of a batch is prefill
sdsa_mask_mod(batch, head, q_idx, kv_idx, seqlen_info, aux_tensors)
¶
FA4 mask_mod of the SDSA prefill core: query q_idx of a batch is prefill token seqlen_info.offset_q + q_idx, whose row of aux_tensors[0] is its bitmask; returns the bits of union columns kv_idx .. kv_idx + 127. FA4 also calls it for its tile's padding rows (q_idx >= seqlen_q, output dropped); those read the batch's last row, as the last batch's would lie past the mask.