Fix DeepSeek-V4 CUTLASS DSL LoadCacheMode path#2
Draft
HanHan009527 wants to merge 10000 commits into
Draft
Conversation
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
This PR fixes a narrow CUTLASS DSL API path mismatch in the DeepSeek-V4
dequant_gather_k_cutedslkernel.The kernel already imports
cpasync:but the load cache mode was referenced through a different namespace:
This updates it to use the same
cpasyncnamespace asCopyG2SOp:The change keeps the same load-cache behavior and only updates the API reference path.
CUTLASS DSL API source
The CUTLASS DSL
cpasyncmodule exports bothLoadCacheModeandCopyG2SOp:Source: https://github.com/NVIDIA/cutlass/blob/25e252bdce504932d83f43f07c4b8cc7f9b8e2b6/python/CuTeDSL/cutlass/cute/nvgpu/cpasync/__init__.py#L17-L23
CopyG2SOpaccepts thecpasync.LoadCacheModeenum as an input and normalizes it internally:Source: https://github.com/NVIDIA/cutlass/blob/25e252bdce504932d83f43f07c4b8cc7f9b8e2b6/python/CuTeDSL/cutlass/cute/nvgpu/cpasync/copy.py#L43-L89
Scope
This is intentionally a single-line compatibility fix. It does not attempt to solve other DeepSeek-V4/CUTLASS DSL startup issues, such as broader
nvidia-cutlass-dslAPI/package compatibility problems.Testing
Not run in this PR branch. This change is limited to the symbol path used when constructing the
cpasync.CopyG2SOpload atom.