Repository navigation
DeepSeek-V4.1-Flash-1017 on two 16 GB RTX 5070 Ti with the routed experts on the CPU (SGLang + KTransformers, 1M context) #45932
05yuki
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
https://github.com/05yuki/deepseek-v4.1-flash-1017-ktransformers runs DeepSeek-V4.1-Flash-1017 on one machine with ordinary GPUs:
The repository holds patches against SGLang main
9c0f6d6aand KTransformers95009ea, plus asetup.shthat builds them and aserve.shthat sizes the launch to the machine.Results
Hardware: 2 × EPYC 7452 (Zen 2, AVX2), 512 GB DDR4, 2 × RTX 5070 Ti 16 GB (SM120), TP2.
Every row was measured with the repository's
tools/bench.pyat tag2026-10-23-0135. Each table comes from a single launch.Decode, 1,024 tokens a reply:
Prefill, one prompt of random token ids:
One card (TP1) also runs, at 32.0 tok/s decode on Japanese prose.
Accuracy
The served model is scored against the checkpoint's own
inference/model.py. The reference runs one layer at a time on one 16 GB card. Both score the same 24 pieces of 480 tokens from two public-domain texts, one Japanese and one English, teacher-forced. Results at tag2026-10-23-1702:The scripts are in the repo,
tools/ref-nll.pyandtools/nll.py, so anyone can rerun this; the reference takes about 4 minutes and needs no server.Upstream
Fixes we found along the way, sent as PRs:
Earlier PRs from the same setup:
GGUF work for the same CPU/GPU hybrid on other models: #43427, #43430, #43445, #43626, #43636, #43650, #43677.
The rest of the repository is specific to running experts on the CPU. It covers:
The tiers and the effect of each patch are in docs/patches.md.
If any of these would be useful upstream, we are glad to split them into PRs.
All reactions