Skip to content

[bugfix]: bump FA4 pin to the CuTe DSL 4.6 compatible rev - #1564

Merged
SolitaryThinker merged 1 commit into
mainfrom
maint/fa4-cutlass46-pin
Jul 6, 2026
Merged

SolitaryThinker merged 1 commit into
mainfrom
maint/fa4-cutlass46-pin

Conversation

@SolitaryThinker

Copy link
Copy Markdown
Collaborator

Problem

The 2026-07-05 CI image rebuild resolved the unpinned transitive nvidia-cutlass-dsl to 4.6.0. Our FA4 cute overlay pin (940cd968) is cutlass-4.5-era — its nvvm.fmax call signature no longer matches, so the FA4 JIT crashes on every no-grad attention call. With FASTVIDEO_FA4=1 forced in CI (#1540), every full-suite lane fails on every PR regardless of diff (#1505/#1461/#1509 all reproduced the identical fmax TypeError twice; the same crash hit the Kandinsky SSIM lane).

Proof it's the image, not the code: the exact lora-training lane content passes on a GB200 (no FA4 image) at origin/main.

Solution

Bump both FA4 pins — FA4_CUTE_REF in docker/Dockerfile and the flash-attn-4 rev in pyproject.toml — to upstream 82d6441e ("Fix compatibility issues with CuTe DSL 4.6.0+", Dao-AILab/flash-attention#2648). Merging auto-rebuilds the image via infra-build-image.yml.

Risk & rollback

Two-line pin change to upstream's dedicated compat fix; revert one commit. After merge + image rebuild (~1h) I re-trigger the affected PRs' full suites.

The 2026-07-05 CI image rebuild resolved the unpinned transitive
nvidia-cutlass-dsl to 4.6.0. The FA4 cute overlay pin (940cd968) is
cutlass-4.5-era: its nvvm.fmax call signature no longer matches, so the
FA4 JIT crashes on every no-grad attention call. With FASTVIDEO_FA4=1
forced in CI, every full-suite lane fails on every PR regardless of
diff. Upstream fixed it in 82d6441e ('Fix compatibility issues with
CuTe DSL 4.6.0+', PR 2648) - bump both pins to that rev. Merging this
auto-rebuilds the image (infra-build-image.yml watches docker/).
@mergify mergify Bot added type: bugfix Bug fix scope: infra CI, tests, Docker, build labels Jul 6, 2026
@mergify

mergify Bot commented Jul 6, 2026 •

Copy link
Copy Markdown
Contributor

Merge Protections

🔴 1 of 1 protections blocking · waiting on 👀 reviews and 🤖 CI

Protection Waiting on
🔴 PR merge requirements 👀 reviews and 🤖 CI

🔴 PR merge requirements

Waiting for

  • #approved-reviews-by>=1
  • check-success=fastcheck-passed
  • check-success=full-suite-passed
This rule is failing.
  • #approved-reviews-by>=1
  • check-success=fastcheck-passed
  • check-success=full-suite-passed
  • check-success~=pre-commit
  • title~=(?i)^\[(feat|feature|bugfix|fix|refactor|perf|ci|doc|docs|misc|chore|kernel|new.?model|skill|skills|infra)\]

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the flash-attn-4 (CuTe) reference to a newer revision (82d6441eec5d4dfec120153db2c0145ae855a083) compatible with CuTe DSL 4.6 in both the Dockerfile and pyproject.toml. The review feedback correctly points out that several comments in both files still refer to the older cutlass-4.5 compatibility and should be updated to reflect the new version.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread docker/Dockerfile
# flashinfer/quack pull in. After the wheel install we overlay this cutlass-4.5-safe
# upstream cute (flash-attn-4) so the image runs FA4 instead of the FA2 fallback.
ARG FA4_CUTE_REF=940cd9680f3315f2f06b43ab5bea2c2cf2d96806
ARG FA4_CUTE_REF=82d6441eec5d4dfec120153db2c0145ae855a083

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The comment on lines 68-70 still refers to cutlass-4.5-safe and cutlass-dsl 4.5. Since the pin is being bumped to a CuTe DSL 4.6 compatible revision, this comment should be updated to reflect the new compatibility (similar to the update made on line 164).

Comment thread pyproject.toml
# FA4 cute, pinned to a cutlass-4.5-compatible revision. torch.compile support
# comes from FastVideo's own custom_op wrappers.
flash-attn-4 = { git = "https://github.com/Dao-AILab/flash-attention.git", rev = "940cd9680f3315f2f06b43ab5bea2c2cf2d96806", subdirectory = "flash_attn/cute" }
flash-attn-4 = { git = "https://github.com/Dao-AILab/flash-attention.git", rev = "82d6441eec5d4dfec120153db2c0145ae855a083", subdirectory = "flash_attn/cute" }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The comment on line 115 still refers to a cutlass-4.5-compatible revision. Since the pin is being bumped to a CuTe DSL 4.6 compatible revision, this comment should be updated to reflect the new compatibility.

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

Labels

scope: infra CI, tests, Docker, build type: bugfix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant