Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > Spark-H3 > MiniMax H3 BSA All-Exact (Scheduled Dense Control)

ComfyUI Node: MiniMax H3 BSA All-Exact (Scheduled Dense Control)

Class Name

MiniMaxH3BSAAllExactScheduled

Category
model_patches/attention
Author
zechengtang (Account age: 2247days)
Extension
Spark-H3
Latest Updated
2026-10-14
Github Stars
0.08K

How to Install Spark-H3

Install this extension via the ComfyUI Manager by searching for Spark-H3
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Spark-H3 in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

MiniMax H3 BSA All-Exact (Scheduled Dense Control) Description

Enhances video processing with scheduled dense control using Block-Sparse Attention for optimized video rendering and quality metrics.

MiniMax H3 BSA All-Exact (Scheduled Dense Control):

The MiniMaxH3BSAAllExactScheduled node is designed to enhance video processing by implementing a scheduled dense control mechanism using Block-Sparse Attention (BSA). This node is part of the MiniMax H3 suite, which focuses on optimizing video rendering and processing tasks. The primary goal of this node is to provide precise control over the attention mechanism in video models, allowing for improved performance and quality in video outputs. By leveraging BSA, the node efficiently manages computational resources, ensuring that only the most relevant parts of the video data are processed with high precision. This results in enhanced video quality metrics such as PSNR, SSIM, and LPIPS, making it an essential tool for AI artists looking to produce high-quality video content with optimized processing times.

MiniMax H3 BSA All-Exact (Scheduled Dense Control) Input Parameters:

tokens

The tokens parameter represents the number of tokens used in the attention mechanism. It directly impacts the granularity of the attention process, with higher token counts allowing for more detailed attention mapping. The minimum value is 12288, ensuring that the attention mechanism has sufficient data to work with, while the maximum value is determined by the model's capacity. Adjusting this parameter can influence the balance between processing speed and output quality.

heads

The heads parameter specifies the number of attention heads used in the BSA mechanism. Each head operates independently, allowing the model to focus on different parts of the input data simultaneously. This parameter affects the model's ability to capture diverse patterns and features within the video data. The default value is typically set to a reasonable number that balances performance and computational efficiency.

sink_blocks

The sink_blocks parameter defines the specific blocks within the model that utilize the BSA mechanism. By specifying which blocks should use BSA, you can control the distribution of computational resources across the model. This parameter is crucial for optimizing the model's performance, as it allows for targeted attention where it is most needed.

tail

The tail parameter is a boolean flag that determines whether the tail end of the video sequence should be processed with BSA. Setting this parameter to True ensures that the final frames of the video receive the same level of attention as the rest of the sequence, which can be important for maintaining consistency in video quality.

topk_ratio

The topk_ratio parameter controls the proportion of top-k elements considered in the attention mechanism. A lower ratio focuses the attention on the most significant elements, potentially improving processing efficiency and output quality. This parameter allows for fine-tuning the attention mechanism to suit specific video processing needs.

MiniMax H3 BSA All-Exact (Scheduled Dense Control) Output Parameters:

video_output

The video_output parameter provides the processed video data after applying the BSA mechanism. This output is crucial for evaluating the effectiveness of the attention mechanism, as it reflects the improvements in video quality metrics such as PSNR, SSIM, and LPIPS. The processed video is ready for further analysis or use in creative projects.

attention_map

The attention_map parameter outputs the attention distribution across the video data. This map is valuable for understanding how the attention mechanism has been applied, offering insights into which parts of the video received the most focus. It can be used to diagnose and optimize the attention process further.

MiniMax H3 BSA All-Exact (Scheduled Dense Control) Usage Tips:

  • Experiment with different tokens and heads values to find the optimal balance between processing speed and video quality for your specific project.
  • Use the sink_blocks parameter to target BSA to specific parts of the model, enhancing performance where it is most needed.
  • Adjust the topk_ratio to control the focus of the attention mechanism, potentially improving efficiency and output quality.

MiniMax H3 BSA All-Exact (Scheduled Dense Control) Common Errors and Solutions:

"Invalid token count"

  • Explanation: The tokens parameter is set below the minimum required value of 12288. - Solution: Increase the tokens value to meet or exceed the minimum requirement.

"Attention heads exceed model capacity"

  • Explanation: The heads parameter is set to a value that exceeds the model's capacity.
  • Solution: Reduce the number of attention heads to a value that the model can handle.

"Sink blocks configuration error"

  • Explanation: The sink_blocks parameter is incorrectly configured, leading to improper BSA application.
  • Solution: Review and adjust the sink_blocks configuration to ensure it aligns with the model's architecture.

MiniMax H3 BSA All-Exact (Scheduled Dense Control) Related Nodes

Go back to the extension to check out more related nodes.
Spark-H3
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

MiniMax H3 BSA All-Exact (Scheduled Dense Control)