mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #943] [CLOSED] Add experimental deepMoE Vulkan backend for DeepSeek text chat #2926
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2926
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/943
Author: @cklxx
Created: 10/5/2026
Status: ❌ Closed
Base:
main← Head:codex/deepmoe-backend📝 Commits (10+)
749d957setup (--backend hip): a system ROCm without the HIP development files falls back to the wheels (#446)5a30024calibrate: the engine's arguments come from the server's engine_args; a failed tuning says why (#447)9f60d13serve, setup: name the small split card that caps the prompt chunk; setup recommends the big card alone (#448)eb8da1d/metrics: each request's speculative draft counts, and their sums in the totals (#457)6a09387setup (--gguf-dir): GGUFs Strata cannot run are named as such, with the --family/--model to use (#444)d6a91e2docs: the Coder is weaker outside code, Chinese/CJK text included; the unpruned sizes for that (#438)d8d4ad3Merge branch 'f-135-eng' into rel-0.1.357b600d5Merge branch 'f-135-small' into rel-0.1.35d9ab843Engine 0.1.35: Windows AMD uses its bundled HIP runtime (#468 #461), the low-RAM resident mode on Windows 32 GB PCs (#467), fixes #460 #459 #446 #447 #457 #448 #444; setup requires it57bd713sycl: pipeline the expert cache's profile fill (model load 3-4x faster)📊 Changes
3 files changed (+39 additions, -2 deletions)
View changed files
📝
serve/server.py(+5 -1)📝
serve/test_deepmoe.py(+32 -0)📝
serve/web/app.js(+2 -1)📄 Description
Strata's existing engine boundary can also drive a native DeepSeek process. This adds an explicit
--engine deepmoebackend for deepMoE, a C++20 Vulkan/Slang engine that streams the native FP4/FP8 DeepSeek-V4.1-Flash checkpoint through an NVMe expert cache on a 128 GB AMD Strix Halo PC.The same Strata web app and OpenAI/Anthropic/Responses service paths can serve text chat. The adapter uses the checkpoint's own prompt renderer, a CPU tokenizer, native EOS IDs, incremental UTF-8 output, progress events, persistent subprocess reuse, and cancellation with drain before the next request. The web app disables unsupported top-k sampling for this backend. Existing Qwen engines and installer behaviour remain the defaults.
Scope is deliberately experimental and explicit: source-built Linux/RADV, text chat, one engine. DeepSeek DSML tools, images, MCP, parallel slots, lazy loading, and the one-click installer are not integrated. Unsupported controls are rejected. This does not port DeepSeek kernels into the CUDA/HIP engine, claim compatibility with Qwen's hardware requirements, or enable approximate mask/speculative modes.
docs/DEEPMOE.mdhas setup, a config example, supported controls, and quality/performance links.Validation:
python -m unittest serve.test_server serve.test_detok serve.test_deepmoe: 158 tests, passed; 5 environment-dependent skips.DEEPMOE_MODEL_DIR=... python -m unittest serve.test_deepmoe_native: 2 CPU checkpoint checks passed (tokenization, split UTF-8, ordinary quoted thinking tags, native prompt/effort).Real-process smoke passed on Linux/RADV with an AMD Radeon 8060S (128 GB Strix Halo), two checkpoint read sources, 5,000 expert slots, exact routing, and a 4K context capacity. OpenAI chat returned “2 + 3 equals 5.”, Anthropic chat returned “3 + 4 equals 7.”, and OpenAI streaming returned a separate thought process followed by “4 + 5 equals 9.” The native HTML identifies this backend so the web app uses supported sampling defaults. A fresh engine also restored a saved 75-token KV snapshot and answered successfully. These are interoperability checks, not a throughput or quality benchmark. Hardware/KV receipt.
The initial hardware attempt caught Qwen's config validator rejecting native top-k=0. Native sampling is now validated before starting the subprocess, with a main-entry regression test and successful hardware rerun. The API integration test also covers a basic Responses request. There is no new throughput claim.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.