Skip to main content
The Block Sparse Attention node modifies a model so its attention layers focus on only the most relevant parts of the input instead of everything at once, which reduces the computing work needed for long sequences. The savings grow with sequence length, since short sequences are usually faster with normal (dense) attention.

Inputs

Common Inputs

sol-attn Inputs

sla Inputs

vsa Inputs

Note: Only the parameters belonging to the currently selected method are shown in the interface.

Outputs

Constraints and Limitations

  • Sequences shorter than min_tokens, blocks listed in dense_blocks, and sampling steps outside the start_percent to end_percent window fall back to the dense model attention backend selected by the Model Attention Backend node.
  • extra_tokens is ignored when the vsa method is selected. A message is logged because VSA weights were trained against their sparse pattern.
  • The vsa method requires a MiniMax-H3 model; any other model raises an error. If the model lacks to_gate_compress layers, the fine stage runs without the coarse branch and a warning is logged.
  • dense_blocks is ignored for models that do not report block indices, which is noted in the log when verbose is enabled.
  • sink_conditioning applies only to MiniMax-H3 models that report a layout matching the current sequence length.
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): 0c34876b49a04db0ab265526e2bb5f784e150591aab631713ad2ab420a3327c4