-
Notifications
You must be signed in to change notification settings - Fork 937
Add Relu2 activation support in CUTLASS MoE backend and fix autotuner async CUDA error handling #2897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
askliar
wants to merge
11
commits into
flashinfer-ai:main
from
askliar:feature/add_relu2_for_default_backend
Closed
Add Relu2 activation support in CUTLASS MoE backend and fix autotuner async CUDA error handling #2897
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
586ca5f
feat: add Relu2 activation support in epilogue helpers and kernel dis…
119743f
feat: enable GDC for SM100 in fused MoE modules
0f260d6
feat: enable GDC for SM90 and SM100 in CUDA compilation
johnnynunez 5064ce7
feat: enable GDC for SM90 and SM100 in CUDA compilation
johnnynunez b9d21ec
Merge branch 'flashinfer-ai:main' into main
johnnynunez ab9b492
feat: add support for SM121 architecture in GEMM operations
760ba63
Merge branch 'main' of github.com:flashinfer-ai/flashinfer into featu…
3602494
Merge https://github.com/johnnynunez/flashinfer into feature/add_relu…
92dc235
feat: add support for SM121 in CUTLASS fused MOE operations
dec095f
refactor: remove SM121 support from CUTLASS fused MOE operations
67cf278
feat: filter out large tile configurations for SM121 in CUTLASS
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,6 +38,7 @@ def gen_cutlass_fused_moe_sm120_module(use_fast_build: bool = False) -> JitSpec: | |
| "-DENABLE_FP8", | ||
| "-DENABLE_FP4", | ||
| "-DUSING_OSS_CUTLASS_MOE_GEMM", | ||
| "-DCUTLASS_ENABLE_GDC_FOR_SM100=1", | ||
| ] | ||
|
|
||
| nvcc_flags += current_compilation_context.get_nvcc_flags_list( | ||
|
|
@@ -56,6 +57,7 @@ def gen_cutlass_fused_moe_sm103_module(use_fast_build: bool = False) -> JitSpec: | |
| "-DENABLE_FP4", | ||
| "-DUSING_OSS_CUTLASS_MOE_GEMM", | ||
| "-DCOMPILE_BLACKWELL_SM103_TMA_GROUPED_GEMMS", | ||
| "-DCUTLASS_ENABLE_GDC_FOR_SM100=1", | ||
| ] | ||
|
|
||
| nvcc_flags += current_compilation_context.get_nvcc_flags_list( | ||
|
|
@@ -73,6 +75,7 @@ def gen_cutlass_fused_moe_sm100_module(use_fast_build: bool = False) -> JitSpec: | |
| "-DENABLE_FP8", | ||
| "-DENABLE_FP4", | ||
| "-DUSING_OSS_CUTLASS_MOE_GEMM", | ||
| "-DCUTLASS_ENABLE_GDC_FOR_SM100=1", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @askliar What does this flag do?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. needed for activate PDL #2708 |
||
| ] | ||
|
|
||
| nvcc_flags += current_compilation_context.get_nvcc_flags_list( | ||
|
|
@@ -91,6 +94,7 @@ def gen_cutlass_fused_moe_sm90_module(use_fast_build: bool = False) -> JitSpec: | |
| "-DENABLE_FP8_BLOCK_SCALE" if is_cuda_version_at_least("12.8") else "", | ||
| "-DENABLE_FP4" if is_cuda_version_at_least("12.8") else "", | ||
| "-DUSING_OSS_CUTLASS_MOE_GEMM", | ||
| "-DCUTLASS_ENABLE_GDC_FOR_SM90=1", | ||
| ] | ||
| return gen_cutlass_fused_moe_module(nvcc_flags, "90", use_fast_build) | ||
|
|
||
|
|
@@ -304,6 +308,7 @@ def gen_trtllm_gen_fused_moe_sm100_module() -> JitSpec: | |
| "-DENABLE_BF16", | ||
| "-DENABLE_FP8", | ||
| "-DENABLE_FP4", | ||
| "-DCUTLASS_ENABLE_GDC_FOR_SM100=1", | ||
| f'-DTLLM_GEN_GEMM_CUBIN_PATH=\\"{ArtifactPath.TRTLLM_GEN_BMM}\\"', | ||
| ] | ||
| + nvcc_flags, | ||
|
|
||
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A bit of nitpicking but consider splitting this into a different PR