Skip to content

GGUF: the dense Qwen3.8-27B family reads a GGUF's metadata and tensors on the host (#1920, step 3) - #2064

Merged
ashhart merged 3 commits into
mainfrom
lead/1920-gguf-qwen27
Nov 4, 2026
Merged

ashhart merged 3 commits into
mainfrom
lead/1920-gguf-qwen27

Conversation

@ashhart

@ashhart ashhart commented Nov 3, 2026

Copy link
Copy Markdown
Owner

Prepare Qwen3.8 dense GGUFs through the existing qwen27 family on the host (#1920). Map qwen35/qwen3 hybrid
metadata into Config, validate the layer pattern and tensor shapes, map the complete DeltaNet/attention/MLP
name set, and use core's exact affine repacker with FP32 coefficients and group-16/32 layouts intact. Dense
floating tensors borrow their source bytes. Unknown settings and unsupported quantization identify the key,
tensor or GGML type that refused.

The host fixture opens to the equivalent JSON Config and checks every repacked matrix value by FP32 bits against
independent source decoding for all ten formats. It also checks names, reshape-only convolution, immutable input,
dense borrowing, refusals and allocation-failure cleanup. Three source controls catch wrong DeltaNet names,
narrowed coefficients and removal of the GGUF model-argument refusal. Core's existing signed-zero exception is
unchanged. Formatting and lean pass with zero new findings; an empty-line cleanup restores the inherited 601-line
Gemma file to 600 lines and the requested 424 findings.

Serving remains refused with a coming-later message. Destination names describe future native loading; stored
ssm_a decay and GDN head ordering are not silently treated as native A_log/ordering. Tokenizer/template and pack
integration, exact FP32 metadata/group-16 device paths and real-model token/performance qualification remain.

The final standard graph has 2426 passes, 12 skips and only the HTTPS tunnel-count assertion twice; it also fails
on fresh exact main f236038 with identical source. Golden comparisons have zero unexpected differences. The
plain Linux aarch64 cross-build passes all 31 steps. Cached suites and focused counts are not summed as unique
tests. The final resolver regression uses the standalone server module boundary.

Prepare Qwen3.8-27B GGUF metadata and tensors through the existing qwen27 host adapter (#1920). This series includes the original adapter and a follow-up checked against ggml-org revision a316ea527fde32c12487be7574e2db5ac2ad2a7e. Core's own reader matches all 40 metadata keys and 851 tensor names/shapes in Q4_K_M and Q8_0, with zero missing or extra identities. Offline fixtures pin the observed schema and native Config. The unproven qwen3 architecture alias is refused by name.

Sixteen corresponding values from each of six norm classes match the supplied MLX checkpoint after exact BF16 rounding. Both supplied formats store effective RMS gains here. The adapter marks that role explicitly and preserves every GGUF F32 bit without adding or subtracting one. Tests open a small serialized GGUF containing all 96 pairs, check borrowed bytes and catch both wrong unit offsets. Config, index and shard-header hashes identify the MLX copy; no immutable remote revision was supplied. Only headers/indexes and selected norm values were read, with no projection payload or checkpoint execution.

The focused graph passes 123 tests in 21 steps; the adapter passes 15 tests in each mode. The standard test/contract/golden/fuzz graph has 5971 passes, 44 skips and only the unchanged HTTPS tunnel-count assertion twice, also reproduced on exact base f236038. Both golden corpora have zero unexpected differences. The plain Linux aarch64 build passes all 31 steps; lean is 424 against 425 on the base, zero new. Alias and norm-role regressions have retained failing-then-passing receipts; the original adapter's three source controls are retained. Source, outgoing metadata and mailbox replay are checked separately.

GGUF serving remains refused pending end-to-end qualification. Remaining work includes GDN head/decay consumption, tokenizer/template and prepared-cache integration, FP32 coefficients/group-16 device paths, and real-model token/performance gates. Host schema and norm evidence do not qualify inference or all weight values. No new GPU kernel or serving path is enabled.

@ashhart
ashhart force-pushed the lead/1920-gguf-qwen27 branch from 4fec174 to 86f6f74 Compare November 4, 2026 06:33
@ashhart
ashhart merged commit 8db1ee1 into main Nov 4, 2026
4 of 7 checks passed
@ashhart
ashhart deleted the lead/1920-gguf-qwen27 branch November 10, 2026 16:34
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.

1 participant