Repository navigation
Conversation
… the quants A directory scan named its GGUF files unparsed for their metadata and never read their chat templates, so a repository of quants had no Chat template row, and a template hidden in one quant was not read at all. Each GGUF carries its own template, a serving stack reads the template of the file it loads, and a model page shows one file's. The row now grades each GGUF's templates with that file's special tokens. Files that carry the same templates are graded once. When they differ, each version is compared with the others as with a reviewed reference (chattemplate.Options.Siblings): a version that renders like another on every standard probe but adds a content-conditional branch is a LEAD (quant-template-mismatch), the tier1/0.8 near-miss rule with no reference input. Any other difference is listed in the notes, not judged. Measured first: of 47 real GGUF repositories with templates in two or more files (712 files, 49 versions), two carry a second version, both benign. One is an f32 file and the other a multi-token-prediction draft, each with an older template. A LEAD on any difference would have withheld both. With the near-miss rule, all 47 PASS and the two list their versions. Check set tier1/0.13. Signed-off-by: Christopher Maher <chris@mahercode.io>
Signed-off-by: Christopher Maher <chris@mahercode.io>
This branch has not been deployed
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.
Stacked on #291 (check set
tier1/0.12). This one istier1/0.13.A directory scan named its GGUF files unparsed for their metadata and never read their chat templates. So a repository of quants had no Chat template row, and a template hidden in one quant went unread. Each GGUF carries its own template, a serving stack reads the template of the file it loads, and a model page shows one file's. That is the gap Pillar's chat-template research points at (arXiv 2602.04653).
What it does
chattemplate.Options.Siblings). This is thetier1/0.8near-miss rule, with no reference input:quant-template-mismatch, high).Why near-miss and not "any difference"
I measured first. I streamed only the metadata of every GGUF at pinned commits, from the top GGUF repositories of bartowski, unsloth, lmstudio-community, ggml-org, Qwen, TheBloke, MaziyarPanahi, mradermacher, Google, and Microsoft, plus 16 named multi-quant repos.
bartowski/Mistral-Nemo-Instruct-2407-GGUF: the f32 file has an older template, from before tool calls were added.unsloth/Qwen3.8-27B-GGUF: the multi-token-prediction draft has an older template.quant-template-mismatchfindings.The corpus is metadata stubs: GGUFs with no tensors that keep the templates, vocabulary, and special tokens. The method and the table are in
docs/false-positive-baseline.md.Tests and benchmark
ggufdir_test.gocovers five cases:dir-gguf-quant-near-miss(LEAD with Socair's defaults; it PASSed undertier1/0.12);control-dir-gguf-quants, the Mistral-Nemo shape (clean).Limits (in the baseline doc)
go test ./...,gofmt -l cmd internal, andgo mod verifyare clean.