Skip to content

disable sm100 for FlashMLA and fast-hadamard-transform in cuda12.6.1#11274

Merged
zhyncs merged 2 commits intosgl-project:mainfrom
gongwei-130:wei_fix_docker_flashMla
Oct 6, 2025
Merged

disable sm100 for FlashMLA and fast-hadamard-transform in cuda12.6.1#11274
zhyncs merged 2 commits intosgl-project:mainfrom
gongwei-130:wei_fix_docker_flashMla

Conversation

@gongwei-130
Copy link
Collaborator

Motivation

disable sm100 for FlashMLA and fast-hadamard-transform in cuda12.6.1

PR in fast-hadamard-transform to disable sm100 in cuda12.6.1
Dao-AILab/fast-hadamard-transform@7fd811c

Accuracy Tests

Benchmarking and Profiling

Checklist

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @gongwei-130, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request addresses compatibility and build issues by disabling SM100 support for both FlashMLA and fast-hadamard-transform when building with CUDA 12.6.1. It achieves this by updating the commit reference for fast-hadamard-transform to a version that includes the necessary disablement and by introducing a conditional environment variable for FlashMLA within the Docker build process. This ensures that the build environment is correctly configured for the specified CUDA version, preventing potential conflicts or errors related to the SM100 architecture.

Highlights

  • Fast-Hadamard-Transform Update: The FAST_HADAMARD_TRANSFORM_COMMIT in the Dockerfile has been updated to 7fd811c2b47f63b0b08d2582619f939e14dad77c, which incorporates changes to disable SM100 support specifically for CUDA 12.6.1.
  • FlashMLA SM100 Disablement: A new conditional export FLASH_MLA_DISABLE_SM100=1 has been added to the Dockerfile. This environment variable is set during the flash-mla installation process, but only when the CUDA_VERSION is 12.6.1, effectively disabling SM100 support for FlashMLA in this specific CUDA environment.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

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

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 correctly disables sm100 for FlashMLA and fast-hadamard-transform when building with CUDA 12.6.1. The changes, which involve updating a commit hash for fast-hadamard-transform and conditionally setting an environment variable for FlashMLA, are logical and effectively address the issue. My review includes one suggestion to add a comment in the Dockerfile to improve code maintainability by explaining the purpose of this version-specific workaround.

Comment on lines +148 to +150
if [ "$CUDA_VERSION" = "12.6.1" ]; then \
export FLASH_MLA_DISABLE_SM100=1; \
fi && \
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

For better maintainability, it would be helpful to add a comment explaining why sm100 is being disabled for this specific CUDA version. This provides valuable context for future developers who might encounter this workaround.

For example:

# Disable sm100 for CUDA 12.6.1 to work around a build issue.

ARG DEEPEP_COMMIT=9af0e0d0e74f3577af1979c9b9e1ac2cad0104ee
ARG FLASHMLA_COMMIT=1408756a88e52a25196b759eaf8db89d2b51b5a1
ARG FAST_HADAMARD_TRANSFORM_COMMIT=f3cdeed95b0f3284b5df3da9b3311d3d0600ce2b
ARG FAST_HADAMARD_TRANSFORM_COMMIT=7fd811c2b47f63b0b08d2582619f939e14dad77c
Copy link
Collaborator

Choose a reason for hiding this comment

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

why do we need to update this commit

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this commit exclude SM100 from cuda12.6.1

Dao-AILab/fast-hadamard-transform@7fd811c

Copy link
Collaborator

Choose a reason for hiding this comment

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

ok

@zhyncs zhyncs merged commit 4aeb193 into sgl-project:main Oct 6, 2025
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments