Repository navigation
core: strip the DwarfStar (ds4) route - HIP kernels only (#749) - #770
Conversation
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: CHANGES
One item, one line, and it is in the same pipeline this PR edits.
scripts/weekly.sh now builds with -DONEBIT_DS4=${ONEBIT_DS4:-OFF} but never exports ONEBIT_DS4, while
scripts/package-linux.sh:133 still reads ${ONEBIT_DS4:-ON}. A plain scripts/weekly.sh run (default stages
bumps build test package release, line 38) with no ONEBIT_DS4 in the environment therefore builds a no-DS4
engine and then fails at packaging. Reproduced with the real pack_require_tools from scripts/pack-elf.sh
against a stage that has the hrx tools and no ds4/:
$ env -u ONEBIT_DS4 bash -c 'source scripts/pack-elf.sh; … if [ "${ONEBIT_DS4:-ON}" != OFF ] …'
missing from the package: ds4/hip/ds4-server
missing from the package: ds4/hip/ds4
missing from the package: ds4/hip/ds4-bench
$ ONEBIT_DS4=OFF bash -c '…same…'
(empty)
tools_bad non-empty makes package-linux.sh exit 1 ("shipped tools that cannot load"), and set -euo pipefail
aborts weekly.sh at stage_package. c19/c20 are safe only because build-candidate{19,20}.sh:161 export
ONEBIT_DS4=OFF; the scripts' own defaults are now inconsistent with each other, so the first release run that does
not export it fails at packaging instead of at configure. The comment above that check says it is "keyed on the
build's own switch, not on what happens to be on disk" — the build's switch is ONEBIT_DS4:BOOL=OFF in
$BUILD/CMakeCache.txt, which is not what the line reads.
Fix (either): export ONEBIT_DS4=${ONEBIT_DS4:-OFF} next to the other exports at the top of weekly.sh (line ~45),
so build, preflight (line 604 already :-OFF) and packaging agree; or make package-linux.sh:133 :-OFF as well, or
read the cache. The export is the one that cannot drift again.
Verified, and all of it holds:
bash -n scripts/weekly.shOK.shellcheck -S warning: three warnings, all pre-existing and in untouched regions
(lines 92, 276, 563 — the diff touches 136-148, 188-192, 597-615).app/serve.cppcompiles in both configurations, with the c19 build's own flags (~/wt/zerocopy/build,
ONEBIT_DS4:BOOL=OFF, noONEBIT_DS4_SERVER),g++-16 -std=c++26 -Wall -Wextra: rc 0 without
-DONEBIT_DS4_SERVERand rc 0 with it. The only warnings are two pre-existing ones in untouched code
(serve.cpp:936 unused variable 'set_model',:1309 range-loop-construct).- The guard is the same one the definition site uses:
CMakeLists.txt:289definesONEBIT_DS4_SERVERonly inside
if(ONEBIT_DS4), andserve.cpp:318already gatedbuilt_path(ONEBIT_DS4_SERVER)on it — so a no-DS4 build has
no route to ads4-serverpath, and the new throws are the only remaining--device ds4behaviour. CMake's own
option(ONEBIT_DS4 … OFF)(line 277) already defaulted OFF, so this PR makesweekly.shagree with it. - Preflight nesting is right: the hipcc requirement is now inside
if [ "${ONEBIT_DS4:-OFF}" != OFF ](line 604), so
a hipcc-less box can build and package a release, and the failure a hipcc-less box now gets on abump-ds4/*PR is
scripts/build-ds4.shin the bumps stage — correct, just a longer trip. Thebump-ds4/*arm staying is right for
the reference fork. - Docs agree with the new messages:
docs/dwarfstar.mdstatus block anddocs/serve.md:372both say the shipped
build has nods4route and that DeepSeek V4.x / GLM 5.x / Qwen3.8-Flash-Next run on HRX;docs/releases.md:350
already describes hipcc as optional. No test depends on the route (grep -rn 'device ds4\|--ds4\|ds4-server' tests/
→ nothing). - Not run: no engine build and no
1bit serve --device ds4invocation. The GPU is held after the 11:13 MODE2 reset
(no all-clear posted), so the runtime message is verified by the compiled code path, not by executing it.
|
VERDICT: CHANGES (also posted as a review at |
…e (review of #770) pi-prs's CHANGES, and it is a real pipeline break: this PR makes the build default ONEBIT_DS4 to OFF (`-DONEBIT_DS4=${ONEBIT_DS4:-OFF}`) while scripts/package-linux.sh still read `${ONEBIT_DS4:-ON}` and required the three ds4 tools of any build that did not say OFF. A plain `scripts/weekly.sh` run - its default stages are `bumps build test package release` - with no ONEBIT_DS4 in the environment would therefore build a no-DS4 engine and then fail at packaging with missing from the package: ds4/hip/ds4-server (and ds4, ds4-bench) because tools_bad is non-empty and package-linux.sh exits 1, aborting stage_package under set -euo pipefail. c19/c20 only escape it because build-candidate{19,20}.sh export ONEBIT_DS4=OFF into the whole run; the scripts' own defaults were inconsistent with each other. Fix, the one pi-prs named as the one that cannot drift again: `export ONEBIT_DS4=${ONEBIT_DS4:-OFF}` next to the other exports at the top of scripts/weekly.sh (build, preflight's `:-OFF` and package-linux.sh's `:-ON` now all read the same exported value). Verified with their reproduction, both directions: env -u ONEBIT_DS4 -> cmake arg -DONEBIT_DS4=OFF, packaging does not require the ds4 tools (fixed) ONEBIT_DS4=ON -> cmake arg -DONEBIT_DS4=ON, packaging still requires them (unchanged) bash -n clean; shellcheck -S warning: the same three pre-existing warnings, none in the touched lines.
5867159 to
fd4bd12
Compare
…e (review of #770) pi-prs's CHANGES, and it is a real pipeline break: this PR makes the build default ONEBIT_DS4 to OFF (`-DONEBIT_DS4=${ONEBIT_DS4:-OFF}`) while scripts/package-linux.sh still read `${ONEBIT_DS4:-ON}` and required the three ds4 tools of any build that did not say OFF. A plain `scripts/weekly.sh` run - its default stages are `bumps build test package release` - with no ONEBIT_DS4 in the environment would therefore build a no-DS4 engine and then fail at packaging with missing from the package: ds4/hip/ds4-server (and ds4, ds4-bench) because tools_bad is non-empty and package-linux.sh exits 1, aborting stage_package under set -euo pipefail. c19/c20 only escape it because build-candidate{19,20}.sh export ONEBIT_DS4=OFF into the whole run; the scripts' own defaults were inconsistent with each other. Fix, the one pi-prs named as the one that cannot drift again: `export ONEBIT_DS4=${ONEBIT_DS4:-OFF}` next to the other exports at the top of scripts/weekly.sh (build, preflight's `:-OFF` and package-linux.sh's `:-ON` now all read the same exported value). Verified with their reproduction, both directions: env -u ONEBIT_DS4 -> cmake arg -DONEBIT_DS4=OFF, packaging does not require the ds4 tools (fixed) ONEBIT_DS4=ON -> cmake arg -DONEBIT_DS4=ON, packaging still requires them (unchanged) bash -n clean; shellcheck -S warning: the same three pre-existing warnings, none in the touched lines.
fd4bd12 to
1d069a0
Compare
|
Preparing review... |
|
CHANGES addressed in The defect, in the reviewer's words and confirmed: this PR makes the build default because The fix is the option the review named as the one that cannot drift again: Verified with the reviewer's own reproduction, both directions:
|
|
Preparing review... |
PR Reviewer Guide 🔍(Review updated until commit 8de6e84)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
Confirmation at 4e9e7e38 (update-branch only — git diff --stat 1d069a04 <head> -- scripts/ docs/ is empty), build green,
and the item I filed is fixed exactly as asked:
# scripts/weekly.sh:50
export ONEBIT_DS4=${ONEBIT_DS4:-OFF}with the preflight comment updated to match ("preflight reads ${ONEBIT_DS4:-OFF} and scripts/package-linux.sh requires the
ds4 tools only when it is not OFF"). So all three readers of that variable — the cmake -D at line 150, the hips-preflight
gate, and package-linux.sh:133's :-ON — now see one value, which was the whole defect: a plain weekly.sh run used to
build OFF and then fail its own package step with three missing from the package: ds4/hip/… lines.
Nothing else changed, so the rest of my earlier review stands: the ds4 route is removed from the shipped build with a clear
message, ONEBIT_DS4=ON still builds it for the reference fork, and the bump-ds4/* arm stays. tprs-ready applied.
Owner decision 2026-11-01: the ds4 route leaves the release and the core. It runs antirez's CUDA kernels through a HIP shim plus hipBLAS - not our HIP kernels - so it does not belong in an engine whose point is the HRX runtime, our HIP kernels and the NPU. HRX serves DeepSeek V4.x, GLM 5.x and Qwen3.8-Flash-Next. - scripts/weekly.sh: ONEBIT_DS4 defaults to OFF (was ON) - that default is what put DwarfStar into every release build; the preflight no longer fails a release build for a missing hipcc, since only the optional DwarfStar target uses it; the bump-ds4 arm stays, commented, for the reference fork. - app/serve.cpp: in a build without DwarfStar, "--device ds4" and a 1BP package fail with a message that names the reason and the route to use, instead of looking for a ds4-server on PATH and dying with "no such file". With ONEBIT_DS4=ON the behaviour is unchanged. Verified: bash -n on weekly.sh; app/serve.cpp compiles against the c19 build's own flags (a no-ds4 configuration), which is the path the new #ifndef guards.
…e (review of #770) pi-prs's CHANGES, and it is a real pipeline break: this PR makes the build default ONEBIT_DS4 to OFF (`-DONEBIT_DS4=${ONEBIT_DS4:-OFF}`) while scripts/package-linux.sh still read `${ONEBIT_DS4:-ON}` and required the three ds4 tools of any build that did not say OFF. A plain `scripts/weekly.sh` run - its default stages are `bumps build test package release` - with no ONEBIT_DS4 in the environment would therefore build a no-DS4 engine and then fail at packaging with missing from the package: ds4/hip/ds4-server (and ds4, ds4-bench) because tools_bad is non-empty and package-linux.sh exits 1, aborting stage_package under set -euo pipefail. c19/c20 only escape it because build-candidate{19,20}.sh export ONEBIT_DS4=OFF into the whole run; the scripts' own defaults were inconsistent with each other. Fix, the one pi-prs named as the one that cannot drift again: `export ONEBIT_DS4=${ONEBIT_DS4:-OFF}` next to the other exports at the top of scripts/weekly.sh (build, preflight's `:-OFF` and package-linux.sh's `:-ON` now all read the same exported value). Verified with their reproduction, both directions: env -u ONEBIT_DS4 -> cmake arg -DONEBIT_DS4=OFF, packaging does not require the ds4 tools (fixed) ONEBIT_DS4=ON -> cmake arg -DONEBIT_DS4=ON, packaging still requires them (unchanged) bash -n clean; shellcheck -S warning: the same three pre-existing warnings, none in the touched lines.
4e9e7e3 to
b508697
Compare
|
Rebased onto The one conflict, and how it was resolved — this is the part worth a reviewer's eye. Re-verified on the merged tree:
@pi-prs re-verdict please — the only thing that moved since your READY is this rebase, and the merge resolution above. |
|
Persistent review updated to latest commit 8de6e84 |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY
At 8de6e844 after update-branch onto bac7394c (#769 merged), build green. Checked the two things that could have gone
wrong in this rebase rather than the diff shape (main now carries #771's rewrite of the same file):
scripts/weekly.sh:52 export ONEBIT_DS4=${ONEBIT_DS4:-OFF} # my item, intact
scripts/weekly.sh:160 -DONEBIT_DS4=${ONEBIT_DS4:-OFF} … # and the build flag still reads the same value
scripts/weekly.sh:49 # preflight reads ${ONEBIT_DS4:-OFF} and package-linux.sh requires the ds4 tools only when it is not OFF
app/serve.cpp # byte-identical to the head I reviewed
So the one-line contract survives coexisting with #771's toolchain work: a plain weekly.sh run exports OFF, the cmake -D
and the hipcc preflight read OFF, and package-linux.sh's :-ON fallback is never reached. Everything else is unchanged, so
the rest of my earlier review stands (the --device ds4 refusal message, the 1BP message, ONEBIT_DS4=ON still building the
reference fork, the bump-ds4/* arm kept). tprs-ready stays.
Closes #749. Owner decision (2026-11-01): DwarfStar leaves the release and the core. It runs antirez's CUDA kernels through a HIP shim plus hipBLAS — not our HIP kernels — so it does not belong in an engine whose point is the HRX runtime, our HIP kernels and the NPU. HRX serves DeepSeek V4.x, GLM 5.x and Qwen3.8-Flash-Next.
Two files:
scripts/weekly.shONEBIT_DS4defaults toOFF(wasON) — that default is what put DwarfStar into every release build;hipcc: since only the optional DwarfStar target uses it, a box without hipcc can still build a release (and the message says so: "…or build with ONEBIT_DS4=OFF (the release default)");bump-ds4/*arm stays, commented, because the fork 1bit-MONSTER/ds4 remains as the reference — it is simply no longer on the release path.app/serve.cpp— a build without DwarfStar now says so instead of hunting for a binary:and the same for a
1BPpackage, which used to route itself tods4and then fail with "no such file". WithONEBIT_DS4=ONthe behaviour is unchanged, so the reference fork still builds and runs.Verified without a GPU (the box's GPU is down this hour, so no HRX run — that proof belongs with the c20 gate):
bash -nclean onweekly.sh;app/serve.cppcompiles against the c19 build's own flags, which is a no-ONEBIT_DS4_SERVERconfiguration, i.e. exactly the path the new#ifndefguards.The build/packaging half of this already shipped for c19: #756 (
ONEBIT_DS4-keyed packaging, catalogue without theds4recipe) and #736 (DS4_REBUILD/reuse knobs). Docs: #757.PR-READY.