Skip to content

registry: causes of the two ZINC failures (Qwen2.5-7B load crash, MiniCPM5 empty reply) - #105

Merged
bong-water-water-bong merged 1 commit into
mainfrom
docs/zinc-failures
Sep 25, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
docs/zinc-failures

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Docs only. registry.md now records why ZINC fails Qwen2.5-7B and MiniCPM5-1B:

  • Qwen2.5-7B: the DMMV shared-memory buffer is sized past 64 KiB, and RADV hits SIGFPE at load.
  • MiniCPM5-1B: the template's leading bos_token is dropped, so the model ends the turn at once.

Both are fixed on bong-water-water-bong/zinc branch fix/lds-clamp-and-template-bos (5453c19). With that branch, all five ZINC rows pass through 1bit serve --device zinc on Strix Halo, and zig build test passes 635/635. checked.json is unchanged, because the engine still pins upstream ZINC.

🤖 Generated with Claude Code

@bong-water-water-bong
bong-water-water-bong enabled auto-merge (squash) September 25, 2026 23:55
@context7

context7 Bot commented Sep 25, 2026

Copy link
Copy Markdown

Docs7 for 1bit-monster/engine

Result Status Action
Deployment ➖ Not used —
Content review ➖ Did not run. This site has no agent runs available this month. Wait for the monthly reset or check your Docs7 plan. —

Commit f25d38e

@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
⚡ Recommended focus areas for review

Documentation Clarity

The documentation updates describe the causes of ZINC failures for Qwen2.5-7B and MiniCPM5-1B, but do not explicitly state that these fixes are pending in the upstream ZINC repository. While the PR mentions that the fixes are on a specific branch (fix/lds-clamp-and-template-bos), it would be more precise to clarify that the fixes are not yet part of the pinned version of ZINC referenced in the documentation.

Both ZINC failures come from upstream ZINC, pinned at `3a35e76`:
- **Qwen2.5-7B crashes at load (exit 136, SIGFPE in RADV).** ZINC sizes its DMMV shaders'
  shared-memory input buffer with the model's largest dimension. Qwen2.5-7B's
  intermediate size is 18944, which needs 75,776 bytes, more than a workgroup's 64 KiB.
- **MiniCPM5-1B gives an empty reply.** Its chat template opens with `{{- bos_token }}`,
  which ZINC's built-in ChatML renderer drops. Without `<s>`, the model ends the turn at
  once. llama.cpp renders the `<s>`, and the model answers.

Both are fixed on `bong-water-water-bong/zinc` branch `fix/lds-clamp-and-template-bos`
(`5453c19`). With it, all five ZINC rows pass and ZINC's own tests pass 635/635. The engine
keeps pinning upstream ZINC until the fixes are there.

@bong-water-water-bong
bong-water-water-bong merged commit 41e97a9 into main Sep 25, 2026
5 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the docs/zinc-failures branch September 25, 2026 23:56
bong-water-water-bong added a commit that referenced this pull request Nov 16, 2026
…2ad41 (engine#2639 Flash-Next on HRX, --ple) (#2692)

* pins: llama.cpp 148e7f329 -> dd9f270f6, gpu-kernels 54d10031d -> 70bc2ad41 (engine#2639, --ple)

llama.cpp fork, 7 commits: #404 --ple / --shard external PLE files (upstream
#31185), #405 (tensor_is_host_resident linkage), #406, #407, #409 and #410
(SET_ROWS into a strided cache view, Flash-Next's pooled scatter).
gpu-kernels, 2 commits: #105 (qsa_pool_blocks claims only the key half and
matches qwen4exp's current fold).

With both, Qwen3.8-Flash-Next generates on HRX0 with and without --ple
(engine#2639, cl-flm 13:33Z window).

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

* hrx_f16_narrowing: set_rows.loom 2 -> 3 narrowing lines at the new fork pin (#410's strided store)

llama.cpp #410 adds a second vector.fptrunc to ggml_set_rows' store: the strided
cache view's f16 write (Flash-Next's pooled indexer cache, engine#2639). It is a
format write in an already-listed body: 0 new / 0 stale of 84 bodies, 0 new /
0 stale of 22 accumulators, 0 unclassified fptrunc. Corpus fingerprint
b9b121a5ddc51854 -> af73a19b122857bb (326 .loom files at both pins).

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

* registry: regenerate for the moved pins, so registry_pins passes

The pins moved (llama.cpp 148e7f329 -> dd9f270f6, gpu-kernels 54d10031d -> 70bc2ad41) and architectures.json still recorded the old
llama.cpp commit, so `tools/registry_build.py --check-pins` refused with 'a pin moved without regenerating the registry'. That is
the test doing its job: the pins are right, the derived file was stale. Regenerated by checking the submodules out at their pins
and running the tool (hrx 350, npu 9, architectures 350, mapped 350); one line changed.

`--check-pins` now passes ("records the committed pins"). Pins themselves untouched.

---------

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant