Fix missing cutlass.utils.ampere_helpers on arm64#1948
Merged
JannikSt merged 2 commits intofeature/arm64-supportfrom Mar 4, 2026
Merged
Fix missing cutlass.utils.ampere_helpers on arm64#1948JannikSt merged 2 commits intofeature/arm64-supportfrom
JannikSt merged 2 commits intofeature/arm64-supportfrom
Conversation
flash-attn.cute imports cutlass.utils.ampere_helpers but nvidia-cutlass-dsl 4.4.1 doesn't ship that module. Copy it from flashinfer's vendored cutlass which has the file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix
ModuleNotFoundError: No module named 'cutlass.utils.ampere_helpers'crash on arm64 (GB200) trainer startup.Root Cause
nvidia-cutlass-dsl4.4.1 droppedampere_helpers.pyfromcutlass.utils(now only shipshopper_helpersandblackwell_helpers)flash-attn2.8.3'sflash_attn.cuteunconditionally imports it at module level for the Sm80 forward kernel (flash_attn.cute.flash_fwd -> import cutlass.utils.ampere_helpers)Fix
Copy
ampere_helpers.pyfrom flashinfer's vendored cutlass into the nvidia-cutlass-dsl package during the Docker build (arm64 only).Can be removed once flash-attn gates the import by architecture or nvidia-cutlass-dsl re-adds the file.
Note
Low Risk
A build-time, arm64-gated Dockerfile workaround that only affects container image contents; main risk is brittleness if upstream package paths change.
Overview
Adds an arm64-only Docker build workaround that copies
cutlass.utils.ampere_helpers.pyfromflashinfer’s vendored CUTLASS into the installednvidia-cutlass-dslpackage inside the venv.This prevents
flash-attn/flash_attn.cutefrom crashing at import time withModuleNotFoundErroron arm64/GB200 whennvidia-cutlass-dsl 4.4.1omits that module.Written by Cursor Bugbot for commit e4f5326. This will update automatically on new commits. Configure here.