Skip to content

RuntimeError: Triton >= 3.4.0 on Hopper GPUs #5276

Closed

Description

@rinabuoy

Hello all,

I am running into this issue on H100

RuntimeError: Triton >= 3.4.0 on Hopper GPUs produces incorrect results for gated chunk_bwd_dqkwg (see #640). Please install tilelang: pip install tilelang

Any idea ?

Activity

  1. ChafikHala commented on Jun 5, 2026

    @ChafikHala

    Hello rinabuoy, have you solved this issue?

  2. oobabooga commented on Jul 16, 2026

    @oobabooga
    Member

    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.

  3. danielhanchen commented on Sep 6, 2026

    @danielhanchen
    Member

    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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions