Repository navigation
Vulkan out, stage 1: HRX is the default GPU route, long documents go to ROCm, Windows runs on the CPU - #270
Conversation
…to ROCm, Windows runs on the CPU RFC #213's decode gates passed (HRX within 10% of Vulkan on the four gate models). Following the owner's decisions of 2026-10-01: - `--device auto` for a .gguf means HRX in a build with HRX. What HRX does not run yet keeps Vulkan under auto until stage 2 ports or drops it: --moe-slots, and --parallel on gated delta-net models. A build without HRX (CI) keeps Vulkan. - Laya: the candidates are HRX, the lean ROCm build and ZINC where the build has them. The built-in policy sends code/prose/short to HRX and long_doc to ROCm: Qwen3.8-27B UD-Q4_K_XL, llama-bench, 2026-10-01, ROCm 365-368 tok/s pp512 and 351-354 pp2048, HRX 97-99. - New `--device cpu`: llama-server with no GPU layers. It is the Windows package's route (auto there). scripts/build-windows.sh builds a CPU-only llama-server.exe and no longer fetches Vulkan-Headers, the loader export list or SPIRV-Headers; glslc is no longer needed. Tested under Wine 11: no vulkan-1.dll import, auto -> cpu, Qwen3-0.6B Q4_K_M answers at 70-73 tok/s. - The ONNX Runtime WebGPU build (Dawn over Vulkan) goes: build-onnx.sh, NOTICE (Dawn), docs/onnx.md. - tests/device_route.sh (ctest device_route): --device cpu argv, and auto = HRX0 with HRX, Vulkan0 without. All 16 no-GPU tests pass. - Docs: serve.md, hrx.md, laya.md, windows.md, onnx.md, README. Stage 2: --moe-slots, --parallel on delta-net models, --adaptive, the RAG embed/rerank servers, --long-model's short side and --lean ROCmFP4 still use Vulkan; each gets ported to HRX or dropped. Stage 3 removes the Vulkan build. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Docs7 for 1bit-monster/engine
Commit |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
BLOCKING (PR-Agent duty): please don't merge until the first point is fixed. GitHub won't record "request changes" here, because every session shares one account. The direction is right (RFC #213 decode gates passed, and the owner's call), and the CPU route for Windows and the ONNX removal are clean. Blocker:
The others: BailingMoeV3, Dots3Note (x3), GraniteMoeSWA, GraniteSWA, GraniteSwitch, HYV4, HrmText, KimiK3, Maple, MiniMaxM1, MiniMaxText01, MuseGlimmer, PocketTTS, Qwen3TTS, Spark2_5. With this PR, the default Fix: in Regressions to state in the PR and docs (not blockers, given the owner's decision):
|
… --mtp and --mmproj (#271) Follow-up to #270. auto_gguf_device() returned hrx for every .gguf, but registry/architectures.json maps 17 GGUF architectures (23 HF classes) to the Vulkan build and not HRX, among them Qwen3.8-Flash-Next (qwen4exp) and Zyphra Zamba, Zamba2 and BlackMamba. auto now keeps those on Vulkan (hrx_missing_arch), and keeps --mtp (HRX drafts at 65-78% of Vulkan) and --mmproj (an open RFC #213 gate) on Vulkan too. tests/device_route.sh: auto keeps a qwen4exp file, --mtp and --mmproj on Vulkan0, and serve.cpp's list matches the registry. It passes on this build (no HRX) and on one compiled with ONEBIT_HRX_SERVER defined (plain file -> HRX0, the rest -> Vulkan0). ctest -LE gpu: 19/19. docs/serve.md states the auto exceptions and the HRX prompt speed until llama.cpp fork #55 is pinned. Co-authored-by: bong-water-water-bong <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
#270 made HRX the --device auto GPU route in builds with HRX, but four route tests still expected Vulkan0. They pass in CI (no HRX) and fail on an HRX build, which is what the Sunday release builds and tests: the 2026-10-01 weekly rehearsal stopped at ctest with hadamard_route, prism_route, long_route and laya_gguf_route failing. Each test now reads the build's CMake cache the way device_route.sh does: HRX0 with ONEBIT_HRX=ON, Vulkan0 without. In laya_gguf_route the test policy's vulkan rows fall back to hrx, the first candidate of an HRX build. All four pass against the rehearsal's HRX build on Strix Halo. Co-authored-by: bong-water-water-bong <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
…to the pool, with a ledger test (#1935) Moves third_party/llama.cpp 5514ebea4 -> 2d62cc7af (4 fork commits, all ahead): e26d574ff cli: name the backend that registered no device (#273, engine #1766) 03bee0f73 host staging buffers are charged to the pool (#270, engine #1711) 92cb7eb2c the unbounded (default) host-weight path is charged too (#275, engine #1823) 2d62cc7af a ledger test for the host-weight arena's charge (#276, engine #1856) registry/architectures.json: only the recorded source pin moves. None of the four commits touches the converter, gguf-py constants, llama-arch.cpp or llama-model.cpp, which are the files the registry is generated from. Fixes #1856 Fixes #1823 Co-authored-by: bong-water-water-bong <[email protected]> Co-authored-by: Claude Fable 5.2 <[email protected]>
This is stage 1 of taking Vulkan out of the engine. RFC #213's decode gates passed (HRX is within 10% of Vulkan on all four gate models), and this follows the owner's decisions of 2026-10-01.
What changes
--device autofor a.ggufnow picks HRX in builds that have it. A few features still keep Vulkan underautountil stage 2:--moe-slots, and--parallelon gated delta-net models (Qwen3.5/3.8/Next). Builds without HRX, such as CI, keep Vulkan.The candidates are now HRX, the lean ROCm build and ZINC, where the build has them.
The built-in policy sends code, prose and short replies to HRX, and long documents to ROCm.
The long-document row rests on today's llama-bench run of Qwen3.8-27B UD-Q4_K_XL:
--device cpu: llama-server with no GPU layers.autopickscpu, and the Windows package ships a CPU-onlyllama-server.exe.glslc.vulkan-1.dllimport,autochosecpu, and Qwen3-0.6B Q4_K_M answered correctly at 70-73 tok/s. Nothing was left running after stopping.build-onnx.sh, the Dawn entry in NOTICE, anddocs/onnx.md.Tests
tests/device_route.sh:--device cpuruns with no GPU layers and no device flag, andautopicks HRX0 in an HRX build and Vulkan0 otherwise.What comes next
--moe-slots;--parallelon delta-net models;--adaptive;--long-model's short side;--leanROCmFP4.🤖 Generated with Claude Code