Skip to content

Backport DeepSeek V4.1 native support onto SGLang v0.5.20 - #43

Closed
zozyo wants to merge 15 commits into
codex/serving-v0520-upstream-r1from
codex/dsv41-v0520-01-native-support
Closed

zozyo wants to merge 15 commits into
codex/serving-v0520-upstream-r1from
codex/dsv41-v0520-01-native-support

Conversation

@zozyo

@zozyo zozyo commented Sep 20, 2026 •

Copy link
Copy Markdown
Collaborator

Add the required V4.1 model, vision, Engram, compression-ratio and candidate-indexer support using 15 attributed upstream donor commits. Preserve stable scheduler, cache and graph-pool behavior; conflict adaptations are documented in the subsequent integration audit.

Part 1/11 of the DeepSeek V4.1 stable-source review stack. Base codex/serving-v0520-upstream-r1 at 94602c9c2b7cbdb8efd5c52802dac6a1c180089e; head 9af234a4891a8facbe92626a2c54fffce5f04637. Review this PR against that base to see only this problem. No merge or deployment is requested by this PR.

The complete classified stack has tree 1fa53db30f547b951bb50119a88f2d4cb25c306f, byte-identical to frozen candidate 9acba212f3376c215a9b48a44dcbace15c0982b7. Original donor authors and source trailers are retained. The standalone intermediate commit is not claimed to be an accepted deployment.

Validation on the identical final source tree: final-image packaging/native/CPU contracts, 82 protocol selftest checks and 5 routed-ABI tests passed. The bitmap correction passed 24 native eager cases, 20 CUDA graph replays, and known-input sorting at 1M, scratch-tail and 2M addressable extents. Earlier prefill, padding, four-card finalize and HiCache evidence remains bound to its original candidate. Full model qualification of the latest image is in progress; known strict-JSON array-length and vision semantic failures are retained, not waived. No throughput gain or production acceptance is claimed.

Source commits in this PR:


CI States

Latest PR Test (Base): ❌ Run #35490992289
Latest PR Test (Extra): ❌ Run #35490991873

hnyls2002 and others added 15 commits September 19, 2026 21:29
Co-authored-by: BBuf <1182563586@qq.com>
Co-authored-by: Cheng Wan <54331508+ch-wan@users.noreply.github.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: DarkSharpness <2040703891@qq.com>
Co-authored-by: DarkSharpness <76582120+DarkSharpness@users.noreply.github.com>
Co-authored-by: Ke Bao <ispobaoke@gmail.com>
Co-authored-by: Khoa Pham <khoa.pham@radixark.ai>
Co-authored-by: Xiaoyu Zhang <1182563586@qq.com>
Co-authored-by: Xiaoyu Zhang <xiaoyu.zhang@radixark.ai>
Co-authored-by: Yuhao Yang <47235274+yhyang201@users.noreply.github.com>
Co-authored-by: Yuwei An <ayw.sirius19@gmail.com>
Co-authored-by: Zhichen Zeng <zczeng@uw.edu>
Co-authored-by: Ziyi Xu <ziyi.xu@radixark.ai>
(cherry picked from commit faaff1e)
Co-authored-by: Cheng Wan <54331508+ch-wan@users.noreply.github.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: DarkSharpness <2040703891@qq.com>
Co-authored-by: DarkSharpness <76582120+DarkSharpness@users.noreply.github.com>
Co-authored-by: Ke Bao <ispobaoke@gmail.com>
Co-authored-by: Khoa Pham <khoa.pham@radixark.ai>
Co-authored-by: Xiaoyu Zhang <1182563586@qq.com>
Co-authored-by: Xiaoyu Zhang <xiaoyu.zhang@radixark.ai>
Co-authored-by: Yuhao Yang <47235274+yhyang201@users.noreply.github.com>
Co-authored-by: Yuwei An <ayw.sirius19@gmail.com>
Co-authored-by: Zhichen Zeng <zczeng@uw.edu>
Co-authored-by: Ziyi Xu <ziyi.xu@radixark.ai>
(cherry picked from commit 7d5696b)
Co-authored-by: BBuf <1182563586@qq.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: DarkSharpness <76582120+DarkSharpness@users.noreply.github.com>
(cherry picked from commit 13d593b)
Co-authored-by: DarkSharpness <76582120+DarkSharpness@users.noreply.github.com>
Co-authored-by: Xiaoyu Zhang <1182563586@qq.com>
(cherry picked from commit 35b7589)
Co-authored-by: DarkSharpness <2040703891@qq.com>
Co-authored-by: Xiaoyu Zhang <1182563586@qq.com>
Co-authored-by: BBuf <1182563586@qq.com>
(cherry picked from commit c244345)
Co-authored-by: BBuf <1182563586@qq.com>
Co-authored-by: Yuhao Yang <47235274+yhyang201@users.noreply.github.com>
(cherry picked from commit 46ae84d)
  Co-authored-by: Xiaoyu Zhang <1182563586@qq.com>
  Co-authored-by: BBuf <1182563586@qq.com>
  Co-authored-by: zijiexia <37504505+zijiexia@users.noreply.github.com>

(cherry picked from commit 408d233)
Co-authored-by: BBuf <1182563586@qq.com>
Co-authored-by: Yuhao Yang <47235274+yhyang201@users.noreply.github.com>
(cherry picked from commit c89c63f)
Co-authored-by: BBuf <1182563586@qq.com>
(cherry picked from commit 464fffb)
Co-authored-by: BBuf <1182563586@qq.com>
(cherry picked from commit 3401b75)
Co-authored-by: BBuf <1182563586@qq.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: Xiaoyu Zhang <xiaoyu.zhang@radixark.ai>
Co-authored-by: Yuwei An <ayw.sirius19@gmail.com>
Co-authored-by: Khoa Pham <khoa.pham@radixark.ai>
Co-authored-by: Yuhao Yang <47235274+yhyang201@users.noreply.github.com>
Co-authored-by: Zhichen Zeng <zczeng@uw.edu>
Co-authored-by: Ke Bao <ispobaoke@gmail.com>
(cherry picked from commit a6cf058)
@zozyo zozyo closed this Sep 20, 2026
@zozyo
zozyo deleted the codex/dsv41-v0520-01-native-support branch September 20, 2026 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants