Repository navigation
GGUF: the dense Qwen3.8-27B family reads a GGUF's metadata and tensors on the host (#1920, step 3) - #2064
Merged
Conversation
This was referenced Nov 4, 2026
ashhart
force-pushed
the
lead/1920-gguf-qwen27
branch
2 times, most recently
from
November 4, 2026 03:26
0b9d3b1 to
4fec174
Compare
ashhart
force-pushed
the
lead/1920-gguf-qwen27
branch
from
November 4, 2026 06:33
4fec174 to
86f6f74
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.