You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RuntimeError: Triton >= 3.4.0 on Hopper GPUs #5276
This is an intentional guard, not a crash. On any Hopper GPU (SM90 / compute capability 9.0: H100, H200, H800, H20, GH200), Triton in the 3.4.0 to 3.7.0 range miscompiles the gated-deltanet backward kernel chunk_bwd_dqkwg and produces wrong gradients (a Triton codegen bug, tracked upstream in fla-org/flash-linear-attention#640). Unsloth raises instead of training on corrupted gradients.
Fix: upgrade to Triton >= 3.7.1 (the version the upstream fix targets), then pip install -U unsloth unsloth_zoo. One catch: torch pins Triton, and only torch >= 2.12.1 ships 3.7.1 (2.12.0 pins 3.7.0, and 2.8 to 2.11 pin 3.4.0 to 3.6.0, all still in the buggy range), so on older torch install it explicitly with pip install -U "triton>=3.7.1".
Also: the error message suggests pip install tilelang, but that will not help with Unsloth's bundled copy. The tilelang kernels are pruned from the vendored snapshot and the backend is disabled, so installing it just re-triggers the same guard. Upgrading Triton is the actual fix.
Fixed! We step BK down to 32 on Hopper for Triton 3.4 to 3.7.0 so that RuntimeError can't happen, no Triton upgrade needed.
Please update Unsloth: uv pip install --upgrade unsloth unsloth_zoo --force-reinstall --no-cache-dir (if it's not in the current release yet it'll be in the next one). Reopen if it still happens!
Activity
ChafikHala commentedon Jun 5, 2026
Hello rinabuoy, have you solved this issue?
oobabooga commentedon Jul 16, 2026
This is an intentional guard, not a crash. On any Hopper GPU (SM90 / compute capability 9.0: H100, H200, H800, H20, GH200), Triton in the 3.4.0 to 3.7.0 range miscompiles the gated-deltanet backward kernel
chunk_bwd_dqkwgand produces wrong gradients (a Triton codegen bug, tracked upstream in fla-org/flash-linear-attention#640). Unsloth raises instead of training on corrupted gradients.Fix: upgrade to Triton
>= 3.7.1(the version the upstream fix targets), thenpip install -U unsloth unsloth_zoo. One catch: torch pins Triton, and only torch >= 2.12.1 ships 3.7.1 (2.12.0 pins 3.7.0, and 2.8 to 2.11 pin 3.4.0 to 3.6.0, all still in the buggy range), so on older torch install it explicitly withpip install -U "triton>=3.7.1".Also: the error message suggests
pip install tilelang, but that will not help with Unsloth's bundled copy. The tilelang kernels are pruned from the vendored snapshot and the backend is disabled, so installing it just re-triggers the same guard. Upgrading Triton is the actual fix.Keep the gated-deltanet fast path on Hopper instead of raising (fla #640
Explain why the gated-deltanet fast kernels were disabled (#8073)
danielhanchen commentedon Sep 6, 2026
Fixed! We step BK down to 32 on Hopper for Triton 3.4 to 3.7.0 so that RuntimeError can't happen, no Triton upgrade needed.
Please update Unsloth:
uv pip install --upgrade unsloth unsloth_zoo --force-reinstall --no-cache-dir(if it's not in the current release yet it'll be in the next one). Reopen if it still happens!