Skip to content

Bump DwarfStar: antirez/ds4 fc80bd695da7 - #429

Merged
bong-water-water-bong merged 2 commits into
mainfrom
bump-ds4/fc80bd695da7
Oct 17, 2026
Merged

bong-water-water-bong merged 2 commits into
mainfrom
bump-ds4/fc80bd695da7

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Moves third_party/ds4 (1bit-MONSTER/ds4) from a7f2e1eaf36c to 5b013dc1bb75: upstream main fc80bd695da7 plus the one commit we carry, rebased by hand because the scheduled bump-ds4 run failed 10-13, 10-14 and 10-15 (our commit no longer applied).

Our commits, rebased onto upstream:

  • 5b013dc 1BP v5 packages: reader, converter and checker (one conflict in Makefile: upstream added ds4_gpu_copy.h to the ds4.o prerequisites, we add ds4_onebp.inc; both kept, upstream order). No commit dropped; no upstream file re-headed.

Old tip tagged ds4-main-a7f2e1eaf36c on the fork so the current pin stays reachable.

Before merging, the fork's 1bit/main must be moved to 5b013dc (it is still a7f2e1e; the rebased commit is on 1bit/main-rebase-2026-10-16). Otherwise the next bump-ds4 run reports "1bit/main is not the engine's pin".

Checked on Strix Halo (gfx1151):

  • built the way scripts/build-ds4.sh does; make test-mxfp4-rocm (the DS4_TEST=1 model-free routed-MoE GPU test): PASS
  • gguf_to_1bp.py + check_1bp.py round trip: Qwen3-0.6B Q4_K_M OK (310 tensors), Qwen3-4B Q5_K_M OK (398 tensors); ds4 on the .1bp and on the source .gguf reach the same point with identical output
  • DeepSeek V4 Flash IQ2_XXS GGUF, old build vs rebased build, --ctx 8192 --ssd-streaming --ssd-streaming-cache-experts 32GB (the model does not fit resident beside the box's other services): identical answers and token counts on 3 prompts at temperature 0; with thinking off, greedy, 128 tokens: byte-identical output
  • not covered: a DeepSeek generation from a .1bp (the earlier package was deleted and re-making it needs more free disk than the box has)

🤖 Generated with Claude Code

Hand rebase of our 1BP commit onto upstream (bump-ds4 failed 10-13..10-15:
the commit no longer applied). third_party/ds4 a7f2e1eaf36c -> 5b013dc1bb75.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 1 🔵⚪⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ No major issues detected

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Triage (review only, nothing pushed).

Failing step (run 38880676966, 6 s): not checkout and not the submodule fetch. It is the Submodule pins only move forward step, python3 tools/check_pins.py "$BASE":

FAIL third_party/ds4: a7f2e1eaf -> 5b013dc1b is diverged
a pin moved backwards or sideways: ... or label the PR "pin rollback" if that is intended

(checkout and tools/copyright.py --check both passed first; the rest of the job never ran.)

Root cause. tools/check_pins.py takes the old and the new gitlink SHA and asks the GitHub compare API in 1bit-MONSTER/ds4 whether the new one contains the old; only ahead/identical pass.

  • compare(a7f2e1eaf36c...5b013dc1bb75) = diverged, ahead_by 10, behind_by 1, merge base 0aaea5a238fb.
  • a7f2e1e = 0aaea5a + "1BP v5 packages" (the previous rebase). 5b013dc = fc80bd69 + the same commit, rebased. A rebase rewrites the carried commit, so the old pin can never be an ancestor of the new one.
  • The pin is reachable and fetchable: it is the tip of the fork's 1bit/main-rebase-2026-10-16 branch; the fork's main is at fc80bd69. Nothing is missing from the fork.
  • This is not a property of the hand rebase. bump-ds4.yml itself ends with git rebase --onto ... && git push --force-with-lease, so every PR that workflow opens pins a rewritten commit and fails this step the same way. Bump DwarfStar: antirez/ds4 fc80bd695da7 #429 is the first bump-ds4 PR, so this is the first time the check has seen one.

Moving 1bit/main is necessary but does not fix CI.

  • bump-ds4.yml's guard ("Rebase our commits onto upstream") errors when 1bit/main != the engine's pin, so the fork's 1bit/main must be 5b013dc for the next bump to work.
  • But check_pins.py compares the two commit SHAs, not branch refs: the status stays diverged wherever 1bit/main points.

Pin content, verified. compare(fc80bd69...5b013dc) = ahead_by 1: Makefile, ds4.c (modified); ds4_onebp.inc, docs/1BP.md, gguf-tools/check_1bp.py, gguf-tools/gguf_to_1bp.py (added). The old tip is tagged on the fork: ds4-main-a7f2e1eaf36c -> a7f2e1eaf36c.

Proposed fix, in this order (commands for the orchestrator, not run here):

  1. Unblock CI: add the pin rollback label to this PR (ci.yml skips the pin step for that label) and re-run the build job. The label is a mislabel for a rebase - it is the check's only documented bypass. The alternative that satisfies the check as written is to pin a commit that contains a7f2e1e (git merge --no-ff 5b013dc on top of a7f2e1e, tree forced to 5b013dc); that does not serve the check's intent any better and has to be redone at every bump.
  2. Then move the fork's 1bit/main to the rebase tip. Keep the window short: between the merge and this move, 1bit/main and the engine's pin disagree and bump-ds4's guard errors.
git init ds4-move && cd ds4-move
git remote add fork https://github.com/1bit-MONSTER/ds4.git
git fetch fork 1bit/main 1bit/main-rebase-2026-10-16
git rev-parse 1bit/main 1bit/main-rebase-2026-10-16      # a7f2e1eaf36c... / 5b013dc1bb75...
git ls-remote fork refs/tags/ds4-main-a7f2e1eaf36c       # exists, -> a7f2e1e
git push fork 1bit/main-rebase-2026-10-16:refs/heads/1bit/main \
  --force-with-lease=refs/heads/1bit/main:a7f2e1eaf36c61e9e173fe6879923de01e1ee749
  1. gh workflow run bump-ds4.yml -R 1bit-MONSTER/engine: with 1bit/main = the pin and upstream main still fc80bd69 it takes the changed=false path.

Durable fix, before the next ds4 bump. As written the check fails every rebase-style pin, so either:

  • teach tools/check_pins.py that a diverged fork pin is fine when the carried commits are patch-equivalent (local fetch + git cherry), or
  • change bump-ds4.yml to merge upstream into 1bit/main instead of rebasing. That is what keeps the lemonade fork's pin forward-moving and Bump Lemonade: 1bit-MONSTER/lemonade 1cb46be46954 #432's identical step green (sync-lemonade-fork.yml uses git merge --no-ff).

Not verified here: the Strix Halo build and test results quoted in the PR body (I inspected repo and fork state only).

bong-water-water-bong added a commit that referenced this pull request Oct 16, 2026
tools/check_pins.py accepts a submodule pin only when the new commit contains the old
one, and a rebase rewrites the commits we carry, so every PR this workflow opened pinned
a rewritten commit and failed the "Submodule pins only move forward" step: #429 pins
5b013dc1bb75, which compare() reads as "diverged" (merge base 0aaea5a238fb), and needs
the "pin rollback" label. The Lemonade fork passes the same step because
sync-lemonade-fork.yml merges an upstream release into the fork instead of rebasing.

- Merge upstream into 1bit/main and push the merge commit, so the old tip stays an
  ancestor of the new one: the pin check is satisfied and no pin is rewritten. The push
  is a fast-forward, no force-with-lease.
- Keep the guards: 1bit/main must be the engine's pin; the merged tree must still carry
  ds4_onebp.inc, docs/1BP.md, gguf-tools/*1bp* and the ds4.c include of ds4_onebp.inc;
  and the merge must contain the old pin (git merge-base --is-ancestor, the property the
  engine's check enforces) before anything is pushed.
- A conflict stops the run with the conflicting files in the error, aborts the merge and
  pushes nothing. No auto-resolution.
- tools/check_pins.py is untouched, and so is the "pin rollback" bypass.

docs/dwarfstar.md and .gitmodules describe the merge.

Co-authored-by: bong-water-water-bong <[email protected]>
Co-authored-by: agent <agent@local>
@bong-water-water-bong bong-water-water-bong added the pin rollback Moves a submodule pin backwards on purpose (skips the pin check) label Oct 17, 2026
@bong-water-water-bong
bong-water-water-bong merged commit 353aa9d into main Oct 17, 2026
7 of 8 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the bump-ds4/fc80bd695da7 branch October 17, 2026 09:08
@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Hardware check of the DwarfStar bump in this PR (merged as 353aa9d) — the first time the new pin ran on the box. Nothing was reverted; this is a report.

Lines under test

line engine third_party/ds4 ds4-server sha256/16
new (this PR) fce3a687c1dd101d39562b268c4ad94efc45e4ca 5b013dc1bb7594e7d7471e82d9b429180e666711 10f20d95e93a9e6a
old the same engine binary a7f2e1eaf36c (tag ds4-main-a7f2e1eaf36c) a43eea034185a2d2

Same engine build for both arms (-DONEBIT_DS4=ON, no HRX), so only the ds4 pin varies.

Memory, and the mode the runs use

The model is the 2026-09-28 one, DeepSeek-V4-Flash-IQ2XXS-w2Q2K-AProjQ8-SExpQ8-OutQ8-chat-v2-imatrix-0731 (80.8 GiB). With coder-llm and 1bit-canonical up, MemAvailable was 82-84 GiB, so full residency would leave about 1 GiB — below the 12 GiB floor. Both pins therefore ran it the way the 2026-10-16 run did: --ssd-streaming with a 32 GB expert cache. ds4 reported expert cache 28.62 GiB ... = 35.33 GiB planned and MemAvailable stayed at ~42 GiB during the arms; every arm ran under systemd-run --user --scope -p MemoryMax=64G, one at a time.

One limitation of the engine path, worth knowing: 1bit serve --ssd-streaming passes only --ssd-streaming, so ds4 auto-sizes the cache — on this box it picks 69.19 GiB (75.90 GiB planned), which would breach the memory floor, and 1bit serve has no flag for the cache size. The generation arms therefore drive ds4-server directly with --ssd-streaming-cache-experts 32GB; 1bit serve is used for the routing check below. A --ds4-cache-experts-style passthrough would let the engine run this model within a stated memory budget.

Results — 3 fixed prompts, temperature 0, max_tokens 256, two reps each

arm completion tokens decode tok/s (rep1 / rep2)
new pin, GGUF 58, 256, 256 / 58, 256, 256 2.4, 5.8, 6.3 / 4.6, 6.3, 6.4
old pin, GGUF 58, 256, 256 / 58, 256, 256 3.0, 6.1, 5.8 / 4.0, 5.8, 5.9
new pin, .1bp 58, 256, 256 / 58, 256, 256 3.2, 6.7, 6.7 / 4.7, 6.6, 6.7
old pin, .1bp 58, 256, 256 / 58, 256, 256 3.3, 6.6, 6.7 / 4.7, 6.7, 6.7

Text: new vs old 6/6 identical on the GGUF and 6/6 identical on the .1bp; GGUF vs .1bp 6/6 identical on both pins. Token counts identical in every pair. No regression from the bump.

Prompt 1 answers The capital of France is Paris. in every arm. Prompts 2 and 3 reach the 256-token cap with an empty content, because their tokens go to reasoning_content (checked on the new pin: it starts We need answer user asks explain how B-tree insert works step by step.), and that is the same on both pins.

The .1bp arm

The 2026-09-28 .1bp conversion was gone (only its conversion log and the recorded outputs remained), so it was re-created from the pinned GGUF with the same tool and verified before use:

gguf_to_1bp.py <model>.gguf <model>.gguf.1bp   # wrote 1BP v5, 1328 tensors, 62 metadata keys, 80.76 GiB of weights (7m17s)
check_1bp.py   <model>.gguf <model>.gguf.1bp   # OK: 1328 tensors, 62 metadata keys

Routing still holds: 1bit serve -m <model>.gguf.1bp with no --device prints
1bit serve: DeepSeek-V4-Flash-…-0731.gguf on ds4 (/…/build-ds4/ds4/hip/ds4-server) — a 1BP package auto-routes to ds4 (the name shown is the model's own name from the 1BP metadata).

Against the 2026-09-28 baselines (reference, not a like-for-like)

Prompt 1 matches exactly. Token counts differ (58 here vs 46 there) and prompt 3's content is empty here versus a full B-tree explanation there: that older build emitted the answer as content, the current line emits it as reasoning_content until the cap. Both pins behave identically, so it is the ds4 line's decoding behaviour and not the bump. Speeds are also not comparable — those baselines were fully resident, these are SSD-streamed.

Box

Tctl 45-86 C (transient peak during decode), MemAvailable back to 84 GiB after every arm, journalctl -k since the start of the slot: 0 ring-timeout / DeviceLost / gpu-reset lines, box services untouched, GPU token released.

Commands

# engine with ds4 support (new pin)
cd ~/wt/t433-current && git submodule update --init third_party/ds4
CMAKE_BUILD_PARALLEL_LEVEL=4 ~/lb/thermal-run.sh cmake -B build-ds4 -G Ninja -DCMAKE_BUILD_TYPE=Release -DONEBIT_DS4=ON
CMAKE_BUILD_PARALLEL_LEVEL=4 ~/lb/thermal-run.sh ninja -C build-ds4 -j4 onebit

# old pin's ds4-server (same source tree, submodule checked out at the old pin)
git -C third_party/ds4 checkout a7f2e1eaf36c && ~/lb/thermal-run.sh scripts/build-ds4.sh ~/wt/tds4/old

# one arm: 3 prompts x 2 reps at temperature 0, 32 GB expert cache
systemd-run --user --scope -p MemoryMax=64G ds4-server -m <model> --host 127.0.0.1 --port 18830 \
  --ctx 8192 --ssd-streaming --ssd-streaming-cache-experts 32GB
# then POST /v1/chat/completions {"messages":[{"role":"user","content":<prompt>}],"temperature":0,"max_tokens":256}

# routing check
1bit serve -m <model>.gguf.1bp --ctx-size 8192 --ssd-streaming   # -> "on ds4"

Runners and per-arm answers: strixhalo:~/wt/hrx-zaya-nan/tpin/ (tds4srv-run.sh, tds4-route.sh, compare.py, out/<arm>/answers.json).

🤖 Generated with Claude Code

bong-water-water-bong added a commit that referenced this pull request Oct 18, 2026
…awn_worker, census, #433) (#446)

* docs: the 2026-10-17/18 merges (HRX pins, DwarfStar, PM router and spawn_worker, census, #433)

The docs still described the pre-2026-10-18 line.

- README status: HRX pinned to AMD e3e6a976 + llama.cpp 8d9ce2c1a with the measured gate numbers;
  DwarfStar pinned to 5b013dc1bb75 (1BP v5) and its hardware check; the PM gains --pm-router laya
  and --pm-spawn-url; the census numbers of 2026-10-17.
- docs/PORTING.md: the HRX pin (step 2), the Laya source/revision bump (step 4), the 2026-10-17
  census (step 5).
- docs/registry.md: the 2026-10-17 census table, against registry/census.json, and the current
  unmapped list.
- docs/hrx.md: the engine#433 finding next to the other HRX0 known issues (no abort in 60 fresh
  loads; the 458-token prompt cannot come from this model template).
- docs/dwarfstar.md: what the 2026-10-17 pin was checked on, and that serve cannot set ds4 expert
  cache size.
- .github/workflows/bump-hrx.yml: the loom-jit trap is now described as the step that guards it,
  with #441 as the validated hand move and #422 still open.

Facts from merged PRs #441, #429, #438, #439, #434, #436 and the hardware comments on #441 (TPIN)
and #429 (TDS4).

* docs/hrx.md: the LoomC-symbol guard, which is the loom-jit trap, and #441 as the validated hand move

The workflow comment that described the trap cannot be pushed with this token (no workflow scope),
so the fact lives where the pin process is documented: docs/hrx.md, next to the hold.

---------

Co-authored-by: pi-zayap2 <bcloud@localhost>
bong-water-water-bong added a commit that referenced this pull request Nov 19, 2026
…the decode-split cap (engine#679) (#2874)

The engine pin was a provisional fork-branch head: #2865 pinned the unmerged
IQ1_S producer arm (4df0f3e6c) so CI could build it. That arm has now merged
into 1bit/hrx-vulkan-patched with rewritten commits (#428 -> #427, both
rebase-and-merge) and the decode-split cap merged as #429 (f2c91ccd), so the
integration tip contains all three:

  17fc2a32f -> f2c91ccd (#429, decode-split cap, engine#679)
            -> 8d26add2 (#427, IQ1_S producer arm, carries #428)

The compare API reports 4df0f3e6c...8d26add2 as diverged (ahead 2, behind 4):
the old pin was rebased away, not rolled back - 4df0f3e6c is an ancestor of the
merged PR head d9bdb641 and its content is in 8d26add2 - so this PR carries the
"pin rollback" label to skip the ancestry-only check, the same situation the
ds4 bump comment records.

registry/architectures.json records the new pin. docs/hrx.md: the decode-split
known-issue entry states the 2,944-token cap and the measured crossover table
(both arms interleaved in one claim, split-on vs registration-disabled), and the
#124 multipass section says which of its rows the kept band still covers;
docs/arch-gaps.md updates the pin it quotes.

engine#679, engine#2832

Co-authored-by: bong-water-water-bong <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pin rollback Moves a submodule pin backwards on purpose (skips the pin check) Review effort 1/5

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant