Repository navigation
Sync nv_dev with upstream #377 - #384
Merged
RayWang96 merged 5 commits intoJul 20, 2026
Merged
Conversation
* Public release 26/06 * Minor fix
… into nv_dev Brings deepseek-ai PR deepseek-ai#377 (559d79f, including deepseek-ai#364 and deepseek-ai#343) onto nv_dev (a6b593d = deepseek-ai#369 merge). Merge base is 88965b0. Conflict resolution highlights: * MQA: adopt deepseek-ai#377's unified SM100 implementation and common MMA/PTX refactor while preserving nv_dev's SM90 next_n=4 multicast and block_kv=32 support, dedicated SM120 paths, FP16/BF16 weights, and 16-head indexer coverage. * Scheduler safety: retain zero-context and empty-varlen handling; drive producer prefetch from the scheduler's actual next query; bound the SM90 block_kv=32 odd-page tail before reading block tables. * FP16 weights: port the implementation to the new headers and preserve padded host offsets, per-warpgroup row indexing, and per-row compressed window bounds. * GEMM/layout: combine deepseek-ai#377's grouped scale-factor, PSUM, zero-padding, and Mega-MoE changes with nv_dev's SM120 dense/grouped dispatch. * Tests: merge upstream coverage with nv_dev's SM90/SM100/SM120 cases and add regressions for empty metadata, skipped requests, FP16 compressed windows, and the SM90 odd physical-page tail. Validation: * All Git-tracked Python files pass py_compile. * No unresolved conflicts, conflict markers, missing project includes, or references to removed headers were found. * CUDA build/JIT and GPU numerical tests were not run because this host has no nvcc, PyTorch, or visible GPU tooling.
Elect one lane for the raw PTX UMMA issue path, order CTA-local KV scale loads before consumption, and fence TMEM handoff between producer and consumer.
|
@Barry-Delaney - given that current Deepseek V4 Flash implementation for sm12x that is merged into vLLM depends on this branch of DeepGEMM, validation on SM12x is still needed. For example, this PR caused the following regression: On DGX Spark (SM121), vLLM startup for When I pin DeepGEMM to a6b593d it is working just fine. |
lucifer1004
added a commit
to lucifer1004/DeepGEMM
that referenced
this pull request
Sep 15, 2026
Resolve the nv_dev sync using an ordinary merge, following the ancestry-preserving approach of prior sync PRs deepseek-ai#314, deepseek-ai#328, deepseek-ai#349 and deepseek-ai#384. Audit all 75 target-side changed paths, including 59 conflicts and seven automatically changed paths, against the prepared main-API implementation. Retain DeepJIT, native SM120 kernels, restored nv_dev attention and MegaMoE contracts, and the validated NVFP4 WAR fix. Preserve the target's FP16 MQA indexing include; this is the only tree change relative to the validated integration head. Standard standalone build, delivered-package import, 81 host protocol tests, 349 SM120 focused tests, packing and HC passed. Runtime sources are unchanged; prior bounded hardware and sanitizer evidence applies. Existing combined IDE indexing build limitations and previously documented qualification limits remain.
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
Merges upstream
559d79f(#377, Public release 26/07) intonv_devata6b593d(#369). This also brings in upstream#364and the race fix from#343; the merge base is88965b0.The branch uses the same explicit non-fast-forward topology as the previous
nv_devsync PRs (#314,#328, and#349), keeping the upstream main commit as the merge commit's second parent.B200 validation exposed two SM100 FP16-weight MQA synchronization gaps in the PTX-wrapper migration. Follow-up
96fbcedelects one lane for raw-PTX 2x1SM UMMA issue, waits for each CTA's local KV-scale TMA before consumption, and fences the TMEM producer/consumer handoff.Conflict resolution
#377's unified SM100 MQA and common MMA/PTX refactor while retaining nv_dev's SM90next_n=4multicast andblock_kv=32, dedicated SM120 paths, FP16/BF16 weights, and 16-head indexer support.block_kv=32odd physical-page tail from reading one page past the block-table row.Validation
Tests were run from isolated Docker worktrees on NVIDIA B200 GPUs (SM100):
test_bf16.py,test_fp8_fp4.py,test_layout.py,test_einsum.py,test_legacy.py, andtest_hyperconnection.py.CP=0/1; the original H64/D32/CP0 failure passed 500 consecutive consistency runs.fp8xfp4andbf16xbf16. The fused kernels launched and benchmarked successfully; thedeep_epbaseline comparison was skipped because that module was unavailable in the image.py_compile; no unresolved conflicts, conflict markers, missing project-local includes, or references to removed headers were found.GPU validation is SM100/B200 only. SM90 and SM120 GPU paths were not covered.
Three
git diff --checkwarnings are inherited byte-for-byte from upstream#377(Mega-MoE trailing whitespace); the conflict resolutions and follow-up fix introduce no new whitespace warnings.