Incubate DeepSeek V4 WNA16 runtime on SM86 - #1
Merged
Whamp merged 11 commits intoAug 14, 2026
Conversation
added 8 commits
August 11, 2026 06:56
Assisted-by: OpenAI Codex Signed-off-by: Will Hampson <whamp@ggl.slmail.me>
Signed-off-by: Will Hampson <whamp@ggl.slmail.me>
This was referenced Aug 13, 2026
Owner
Author
|
Quality update: the controlled one-worker, no-concurrency DeepSWE rerun showed the same severe degeneration as the concurrent run. Concurrency is ruled out. The current WNA16 artifact is withdrawn, while this draft remains open because the runtime path itself loaded and served correctly and may support replacement quants. |
added 3 commits
August 13, 2026 08:25
Signed-off-by: Will Hampson <whamp@ggl.slmail.me>
Forward model SwiGLU alpha, beta, and clamp settings through the Humming quantization bridge. Correct the fused-MoE group descriptor to use the documented N/K axis convention and extend the WNA16 oracle into the clamped activation regime.
Treat the outer DSML tool_calls closing marker as the completion boundary for one assistant tool turn. Preserve caller stop strings and stop-output behavior while leaving requests without active tools unchanged. This prevents the model from emitting additional assistant/tool blocks in one response. Signed-off-by: Will Hampson <whamp@ggl.slmail.me>
Whamp
marked this pull request as ready for review
August 14, 2026 17:59
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.
Status
Experimental incubation branch. This is not a request to merge into vLLM main.
The branch centralizes the vLLM changes used by the technically working DeepSeek-V4-Flash-0731 WNA16 service on four RTX 3090 GPUs. It is based on the pinned SM8x DeepSeek V4 work in
haosdent/vllm@12810046, not current vLLM main.The runtime path loads and serves the model correctly. A source-confirmed DeepSeek V4 tool-generation boundary bug explained the prior zero-patch DeepSWE degeneration: after one complete DSML tool block, generation could continue into additional assistant/tool blocks in the same response. The tested artifact remains withdrawn from general coding-agent use because one repaired SuperJSON run passed only 65/80 feature tests and is not broad quality evidence. This PR remains open as runtime incubation, not as a general artifact endorsement.
Related work
This is related to, but separate from, noonghunna/club-3090#940:
The closest upstream loader work is vllm-project/vllm#48918. This branch does not replace or duplicate that PR as an upstream submission. It carries the additional DeepSeek V4 and SM86 integration needed by the tested runtime.
What this branch adds
w13) and down (w2) projections.The exact branch tree is
d315879bf0ead5088b1dded20045a4ddc25b3e4eat commit9a2ffbb4534400064e645cb4fef8ab2f2a987f11.Artifact
The tested model artifact is public at:
hampsonw/DeepSeek-V4-Flash-0731-WNA1675d9286c37f3037f3ab390cfbc10747466eac714It uses imatrix-weighted W2A16 routed experts, preserves the checkpoint's native FP8 representation for non-routed weights, and omits MTP. The artifact is now marked withdrawn because it failed coding-agent quality testing. It remains public only for reproduction and research.
Measured server60 result
Hardware: 4× RTX 3090, PCIe only, tensor parallelism 4, existing 230 W/card limits unchanged.
Selected profile:
max_num_seqs: 4The profile is usable but has a narrow measured reserve of roughly 141–142 MiB per GPU. Concurrency 4 was validated with short requests, not four simultaneous 215K requests.
Validation completed
Quality evaluation
The earlier benchlocal quick run was only smoke evidence. The first DeepSWE runs entered a severe repetitive tool-use loop and produced no patch, both with concurrent serving and with one worker. A separate 120.36 GB projection-sensitive candidate failed the same way. The SwiGLU/GroupShape repair was numerically correct but did not stop the loop.
Controlled raw-token replays then isolated a separate integration defect. DeepSeek V4 emitted a valid outer
</|DSML|tool_calls>close and continued generating additional assistant/tool blocks because the adapter did not register that marker as a generation stop. The exact stage-4 replay produced 11 calls at a 512-token cap under both breakable CUDA graphs and--enforce-eager; parser-free raw completions reproduced the same sequence. Prefix-cache reuse andparallel_tool_callswere not causal. Adding the outer marker as an active-tool request stop reduced that replay to one valid call in 48 tokens while preserving a valid two-invoke block.The exact one-worker SuperJSON cell was then repeated on RTX 3090 with the repaired adapter, Pi 0.84.1, maximum reasoning, temperature 1.0, top-p 0.95, and the same withdrawn artifact. It completed normally in 2,704 seconds with no watchdog event, timeout, OOM, or verifier failure. It produced a 19,226-byte patch over 149 bounded tool turns, passed all 116 existing tests, and passed 65/80 feature tests (partial reward 0.923469). The 15 misses are ordinary incomplete frames-mode implementation, not runtime or tool-loop failures.
This causally repairs the prior zero-patch degeneration for the tested task. It does not establish broad coding-agent quality: 65/80 feature tests trails the stronger reference results, and the 149-turn trajectory is expensive. The artifact therefore remains withdrawn pending broader quality evaluation or replacement-quant work.
Known limits
AI assistance
AI assistance was used for implementation, investigation, testing, and drafting. I reviewed the experimental direction and retain responsibility for the branch.