mrfakename commited on
Commit
6f1b8ed
·
1 Parent(s): dd7a8ed

Gate Sol-Attn to long sequences

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. h3_nvfp4.py +1 -1
README.md CHANGED
@@ -160,7 +160,7 @@ exact original denoiser, set `H3_ENGINE=bf16`; this restores the 61.7 GiB unquan
160
  | `H3_SOL_ATTN_TAU` | `1.0` | Official H3 sparse-routing threshold. |
161
  | `H3_SOL_ATTN_DENSE_STEPS` | `10` | Initial denoising steps kept on exact dense attention. |
162
  | `H3_SOL_ATTN_DENSE_LAYERS` | `2` | Initial transformer blocks kept on exact dense attention. |
163
- | `H3_SOL_ATTN_MIN_TOKENS` | `8192` | Skip sparse-kernel overhead on shorter packed sequences. |
164
  | `H3_GPU_SIZE` | `xlarge` | 95 GiB Blackwell ZeroGPU allocation. |
165
  | `H3_AOTI` | `0` | BF16 engine only: load the optional repeated-block AoTI package. |
166
 
 
160
  | `H3_SOL_ATTN_TAU` | `1.0` | Official H3 sparse-routing threshold. |
161
  | `H3_SOL_ATTN_DENSE_STEPS` | `10` | Initial denoising steps kept on exact dense attention. |
162
  | `H3_SOL_ATTN_DENSE_LAYERS` | `2` | Initial transformer blocks kept on exact dense attention. |
163
+ | `H3_SOL_ATTN_MIN_TOKENS` | `24576` | Keep faster dense cuDNN attention on medium sequences; sparsify only long packed sequences. |
164
  | `H3_GPU_SIZE` | `xlarge` | 95 GiB Blackwell ZeroGPU allocation. |
165
  | `H3_AOTI` | `0` | BF16 engine only: load the optional repeated-block AoTI package. |
166
 
h3_nvfp4.py CHANGED
@@ -64,7 +64,7 @@ SOL_ATTN_BACKEND = os.environ.get("H3_SOL_ATTN_BACKEND", "triton").lower()
64
  SOL_ATTN_TAU = float(os.environ.get("H3_SOL_ATTN_TAU", "1.0"))
65
  SOL_ATTN_DENSE_STEPS = max(0, int(os.environ.get("H3_SOL_ATTN_DENSE_STEPS", "10")))
66
  SOL_ATTN_DENSE_LAYERS = max(0, int(os.environ.get("H3_SOL_ATTN_DENSE_LAYERS", "2")))
67
- SOL_ATTN_MIN_TOKENS = max(0, int(os.environ.get("H3_SOL_ATTN_MIN_TOKENS", "8192")))
68
 
69
 
70
  if triton is not None:
 
64
  SOL_ATTN_TAU = float(os.environ.get("H3_SOL_ATTN_TAU", "1.0"))
65
  SOL_ATTN_DENSE_STEPS = max(0, int(os.environ.get("H3_SOL_ATTN_DENSE_STEPS", "10")))
66
  SOL_ATTN_DENSE_LAYERS = max(0, int(os.environ.get("H3_SOL_ATTN_DENSE_LAYERS", "2")))
67
+ SOL_ATTN_MIN_TOKENS = max(0, int(os.environ.get("H3_SOL_ATTN_MIN_TOKENS", "24576")))
68
 
69
 
70
  if triton is not None: