Nodes/BSAI-ComfyUI-VedaSparse/BSAI VedaSparse Patch
ComfyUI Node

BSAI VedaSparse Patch

A ComfyUI node in BSAI/VedaSparse with 15 inputs and 1 output.

By xm6018924·Created about a month ago·Updated 11 days ago· 4
BSAI VedaSparse Patch
  • model
  • MODEL
◄enabledtrue►
◄keep_percent5►
◄head_tilingdual-fast (2 groups)►
◄custom_tiling4,4,4;8,4,2;2,4,8;4,8,2►
◄tripool_modetriplet (avg+max+min)►
◄scorer_weightsNone (heuristic TripPool)►
◄aspectauto►
◄force_dims►
◄start_percent0.20►
◄end_percent1.00►
◄min_tokens4096►
◄sink_conditioningexact_kv_and_rows►
◄override_priorityauto►
◄verbosefalse►
CategoryBSAI/VedaSparse

Inputs (15)

NameTypeDefaultDescription
modelMODEL—
enabledBOOLEANtrueWhen off, the model passes through unchanged.
keep_percentFLOAT51–100Percentage of key tiles to keep per query tile. 10 = 90% sparse (recommended); 5 is too aggressive and may lose structure; 20 is a conservative speed tier.
head_tilingCOMBOdual-fast (2 groups)Head-Aware Tiling preset. head-aware cycles through 4 spatiotemporal tilings per head (paper-optimal); balanced uses (4,4,4) for all heads; temporal/spatial emphasize time or space.
custom_tilingSTRING4,4,4;8,4,2;2,4,8;4,8,2Tiling table when head_tiling=custom, semicolon-separated 'pt,ph,pw'; each pt*ph*pw must equal 64.
tripool_modeCOMBOtriplet (avg+max+min)Tile descriptor: triplet=Avg+Max+Min (paper-optimal).
scorer_weightsCOMBONone (heuristic TripPool)Distilled predictor weights (optional). Place them in ComfyUI/models/veda_scorers/. No weights = heuristic TripPool scoring.
aspectCOMBOautoOutput aspect ratio. In auto mode, geometry is inferred from the H3 attention pe_index.
force_dimsSTRINGManually specify video latent dimensions 'T,H,W' (optional). Usually leave empty.
start_percentFLOAT0.200–1Sigma window start (H3 sigma decreases monotonically from 1.0 to 0.0). start=0.5 means the first 50% of steps run dense warm-up (to protect initial structure), then switch to sparse.
end_percentFLOAT1.000–1Sigma window end (progress percent). end=1.0 means sparse all the way to the end; end=0.95 means the last 5% returns to dense to protect details.
min_tokensINT40960–1000000If the sequence has fewer tokens than this, run dense (short videos gain little speedup, and it is safer when VRAM is tight). Default 8192.
sink_conditioningCOMBOexact_kv_and_rowsKeep conditioning rows (text/audio) exact.
override_priorityCOMBOautoCooperation with external attention overrides (official Veda-on-ComfyUI): auto = v3.4 yields when an external override is detected, letting official Veda take over (avoids double-sparsity); veda34 = force v3.4 priority (ignore external overrides); official = always yield. All three modes are non-conflicting and can coexist.
verboseBOOLEANfalsePrint verbose logs.

Outputs (1)

NameTypeDescription
MODELMODEL—