Skip to content

repack_gguf: find the canonical Q4NX converter in ~ too (fixes #224) - #225

Merged
bong-water-water-bong merged 1 commit into
mainfrom
npu-converter-lookup
Sep 29, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
npu-converter-lookup

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Fixes #224. The MiniCPM5-1B failure was not in the engine code. repack_gguf.py looks for the canonical converter at <checkout>/../np-model-generic. From an installed engine (~/.local/share/1bit-engine) or any checkout outside ~, that path doesn't exist, so the lookup fell through to the hard-coded staging checkout. That checkout's converter (9bc5299da) predates 418559692, "llama-arch q/k must always be reordered to the paired layout", so MiniCPM5's q/k were packed unreordered and it answered ' the' / ' a'.

This adds ~/np-model-generic as the second candidate.

Checked on strixhalo, from a checkout under ~/.cache and with no ONEBIT_Q4NX_CONVERTER:

🤖 Generated with Claude Code

An installed engine or a checkout outside ~ has no sibling np-model-generic, so
the lookup fell through to an older staging converter without the llama-arch
q/k reorder, and MiniCPM5-1B on --device npu answered ' the' (#224).

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

context7 Bot commented Sep 29, 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 27a2c3c

@bong-water-water-bong
bong-water-water-bong merged commit 86f95c9 into main Sep 29, 2026
8 of 9 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the npu-converter-lookup branch September 29, 2026 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NPU per-op forward: MiniCPM5-1B anchor fails on main (' the' / ' a' instead of Paris / Tokyo)

1 participant