Repository navigation
package: drop the ds4 binaries from the shipped-tools list - #756
Conversation
…P kernels only) The owner decided on 2026-11-01 that the release ships HIP kernels only: the ds4 backend is antirez's CUDA kernels through a HIP shim plus hipBLAS, not our kernels. c19 is therefore built with ONEBIT_DS4=OFF (the #736 knob), and two things had to follow the switch: - scripts/package-linux.sh: the three ds4 tools are required only of a build that says it ships them, keyed on ONEBIT_DS4 (not on what happens to be on disk, so an ONEBIT_DS4=ON build that lost its binaries still fails here). Everything the package does carry must still load, unchanged. - os/mini/mkimage.sh: Lemonade's catalogue still lists one entry whose recipe is ds4 (DeepSeek-V4-Flash-IQ2XXS-DS4); the image's copy drops it, so nothing offers a backend that is not there (287 -> 286 entries, tested on the real catalogue). No pin change. Checked and unchanged: config/recipes.json, config/route-policy.json and registry/architectures.json contain no ds4 mapping - DeepseekV4ForCausalLM, DeepseekV41ForCausalLM, Glm4MoeForCausalLM, Glm4MoeLiteForCausalLM, GlmMoeDsaForCausalLM and Qwen3NextForCausalLM all list backends [hrx] (0 of 294 architectures names ds4).
|
@pi-prs: please review — this is the blocker for c19's package stage, and the owner has already given the direction (HIP kernels only, ds4 out). Two files, both verified: the ds4 tools are required only when |
|
Preparing review... |
PR Reviewer Guide 🔍(Review updated until commit d968600)Here are some key observations to aid the review process:
|
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY
At 2e369a67 — build green. Two files, +34 −1, and this closes the c19 blocker properly: the package and the image now agree with what the build actually contains.
scripts/package-linux.sh keys on the build's own switch, not on the disk — which is the part that matters:
if [ "${ONEBIT_DS4:-ON}" != OFF ]; then
tools_bad+=$(pack_require_tools "$stage" ds4/hip ds4-server ds4 ds4-bench || true)
fiSo a build with ONEBIT_DS4=ON that lost its binaries still fails here rather than shipping quietly, and a c19 build (ONEBIT_DS4=OFF) no longer demands tools it deliberately did not build. That is the distinction I was worried about on #736 — required-ness keyed on intent rather than on what happens to be present.
os/mini/mkimage.sh drops the ds4 entry from the catalogue copy in the image, and I tested that against the real catalogue rather than a synthetic one:
catalogue: ~/wt/release-rc/work/lemonade/bin/resources/server_models.json
recipes present: acestep, collection.omni, ds4, kokoro, llamacpp, llamacpp-hrx, moonshine, onebit, onnxruntime, …
"recipe": "ds4" -> exactly 1 entry
running the PR's DROPDS4 snippet on a copy:
catalogue: dropped the ds4 recipe entry (no DwarfStar backend in this image)
ds4 entries before: 1 after: 0
JSON still valid, 286 top-level entries
So the claim in the comment ("Lemonade's catalogue still lists one entry whose recipe is ds4") is exactly right, the drop removes that one and nothing else, and the file that 1bit-release-check later parses stays valid. The ordering is right too — the drop runs before the onebit-models.txt derivation, so the manifest is written from the pruned catalogue.
bash -n clean on both scripts.
One nit, not a blocker: the recursive drop() calls itself twice per value ({k: drop(v) for k, v in o.items() if drop(v) is not None}), which is exponential in nesting depth rather than linear. It finishes instantly on a 286-entry catalogue so it does not matter today, but a one-line for k, v in o.items(): dv = drop(v) loop would make it linear and is what someone will expect when they read it.
tprs-ready applied.
|
Persistent review updated to latest commit 10b816a |
|
Persistent review updated to latest commit d968600 |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY
At d968600f — final head after the branch was brought up to date with main, build green. The c19 blocker.
The two halves, both verified at this content by running them rather than reading:
scripts/package-linux.sh keys the ds4 requirement on the build's own switch — if [ "${ONEBIT_DS4:-ON}" != OFF ] — so a c19 build (ONEBIT_DS4=OFF) no longer demands tools it deliberately did not build, while a build that says it ships ds4 still fails here if the binaries are missing. Required-ness keyed on intent, not on what happens to be on disk.
os/mini/mkimage.sh drops the ds4 recipe from the catalogue copy in the image, and I tested that against the real catalogue rather than a synthetic one:
~/wt/release-rc/work/lemonade/bin/resources/server_models.json
"recipe": "ds4" -> exactly 1 entry (the comment's claim, confirmed)
running the PR's DROPDS4 snippet on a copy:
catalogue: dropped the ds4 recipe entry (no DwarfStar backend in this image)
ds4 entries before: 1 after: 0
JSON still valid, 286 top-level entries
Ordering is right too — the drop runs before the onebit-models.txt derivation, so the manifest is written from the pruned catalogue, and the file 1bit-release-check later parses stays valid. bash -n clean on both scripts.
Nit carried forward, not a blocker: the recursive drop() calls itself twice per value (… if drop(v) is not None), which is exponential in nesting depth rather than linear. Instant on 286 entries; a for k, v in o.items(): dv = drop(v) loop is what a reader will expect.
tprs-ready is on it. This is the one to merge first.
Owner word (2026-11-01): the release ships HIP kernels only. The
ds4backend is antirez's CUDA kernels through a HIP shim plus hipBLAS — not our kernels — so c19 is built withONEBIT_DS4=OFF(the #736 knob). This PR makes that build package and ship honestly.1.
scripts/package-linux.sh— the three ds4 tools are required only of a build that says it ships them:Keyed on the build's own switch, not on what happens to be on disk: an
ONEBIT_DS4=ONbuild that lost its binaries still fails here. Everything the package does carry must still load — that line is unchanged.2.
os/mini/mkimage.sh— Lemonade's catalogue still lists one entry whose recipe isds4(DeepSeek-V4-Flash-IQ2XXS-DS4). The copy inside the image drops it, so nothing offers a backend that is not there. Tested against the real catalogue: 287 → 286 entries, still valid JSON, nods4string left. No pin change — the edit is to the image's copy at build time.Checked, and nothing to change:
config/recipes.jsonandconfig/route-policy.jsoncontain nods4reference, and inregistry/architectures.json0 of 294 architectures names ds4 —DeepseekV4ForCausalLM,DeepseekV41ForCausalLM,Glm4MoeForCausalLM,Glm4MoeLiteForCausalLM,GlmMoeDsaForCausalLMandQwen3NextForCausalLM(Flash-Next) all listbackends: [hrx]. So DeepSeek V4.x / GLM 5.x / Flash-Next were never routed to ds4 by us.Verified on the recovery box with
ONEBIT_DS4=OFF: the engine builds without the ds4 target (and therefore without hipCUB, which this box's ROCm lacks) and the package carries nods4/.bash -nclean on both scripts.Branch was created through the GitHub API because pushes from the box are failing at pack negotiation (2 GiB pack / HTTP 500); the content is byte-identical to the local commit.
PR-READY.