Repository navigation
Validate Gemma4 GGUF tokenizer reconstruction - #651
Merged
Merged
Conversation
Performance Comparison
|
justinchuby
added a commit
that referenced
this pull request
Aug 27, 2026
## Summary - classify every unresolved authoritative GGUF architecture, projector, tokenizer, MTP, and speculative-draft route exactly once - generate concrete implementation, evidence, ABI/dependency, artifact, and rejection batches from live registries - preserve exact registry reasons in machine-readable census records and reconcile PRs #645, #651, #652, and #656 without claiming open work as supported - distinguish ordinary runtime evidence from ORT GenAI heterogeneous-state schema issue #605 - pin availability-only F16/Q8_0 sidecar identities for LFM2-VL and Pixtral without implying tensor closure, graph parity, or runtime support ## Census - 285 unresolved routes: 144 architectures, 60 projectors, 57 tokenizers, 22 MTP routes, and 2 draft routes - 67 immediately implementable - 95 evidence-only - 100 dependency/runtime-ABI blocked - 4 artifact unavailable - 19 intentionally rejected ## Validation - generated documentation check - 1,371 focused GGUF tests passed, 1 skipped - broad deterministic suite: 8,467 passed, 62 skipped, 1 subtest passed - Ruff/format lint passed - strict mypy passed for changed source modules - independent incremental review found no significant issues ## Waivers - no large model payloads downloaded; availability pins use immutable repository revisions plus API-reported LFS SHA-256 and byte size - open PRs #651/#652/#656 are dependency records only and are not promoted as current-main capability - no unsupported cache/state ABI is forced; packed quantized support remains governed by existing fail-closed capability records Do not merge yet. --------- Signed-off-by: Justin Chu <[email protected]> Copilot-Session: d1a98adf-88cb-471b-8c46-7a84083db24c
Add artifact-scoped Gemma4 native reconstruction evidence against the pinned llama.cpp oracle, while keeping granite-embed-multi-311m deferred because its modern-bert artifact only exercises the absent-pre Gemma4 fallback. Preserve declared and effective tokenizer pre identities separately in the census and generated documentation. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
Record the exact GGUF-only type-4 token range and the Gemma4 fallback control/EOG override without promoting the absent granite-embed-multi-311m route. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
Replace hash-only route summaries with a deterministic bounded-header generator and committed exact llama.cpp token and detokenization outputs. Scope Gemma-specific control-token exceptions to GEMMA4 validation and preserve Granite as a deferred fallback-only route. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
justinchuby
force-pushed
the
justinchuby-verify-gemma-tokenizers
branch
from
August 27, 2026 15:43
858f0ce to
e19e67b
Compare
Commit deterministic bounded-header and official tokenizer inputs so network-free tests materialize the current production reconstruction and compare all 480 llama.cpp tokenization and detokenization results. Add a cleanup-policy mutation proving behavior drift fails the replay. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
Verify the pinned compressed archive identity before streaming XZ/tar extraction. Enforce the exact regular-file allowlist, member sizes and hashes, duplicate rejection, payload totals, and decompression ceiling with adversarial regressions. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
Observe every streamed tar header directly so PAX and GNU extensions cannot bypass validation, and require all bytes after the USTAR terminator to be zero. Cover hidden extension headers and nonzero trailing data with adversarial tests. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
justinchuby
added a commit
that referenced
this pull request
Aug 27, 2026
Close standalone Granite attention-factor metadata, record merged PR #651 in the authoritative route census, and regenerate deterministic GGUF support documentation after rebasing the cohort. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 71862fcb-bc9a-4734-b047-b5376afabc3e Signed-off-by: Justin Chu <[email protected]>
justinchuby
added a commit
that referenced
this pull request
Aug 27, 2026
Close standalone Granite attention-factor metadata, record merged PR #651 in the authoritative route census, and regenerate deterministic GGUF support documentation after rebasing the cohort. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 71862fcb-bc9a-4734-b047-b5376afabc3e Signed-off-by: Justin Chu <[email protected]>
justinchuby
added a commit
that referenced
this pull request
Aug 27, 2026
Close standalone Granite attention-factor metadata, record merged PR #651 in the authoritative route census, and regenerate deterministic GGUF support documentation after rebasing the cohort. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 71862fcb-bc9a-4734-b047-b5376afabc3e Signed-off-by: Justin Chu <[email protected]>
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.
Summary
gemma4GGUF-native tokenizer reconstruction against immutable artifact/source pins and llama.cpp8d9af256337d1a501250f9bbf4c0859a654bddd6granite-embed-multi-311mas deferred: its pinnedmodern-bertartifact declares no pre and only exercises effective fallbackgemma4GEMMA4validationEvidence
unsloth/gemma-4-E2B-it-GGUF@0314792d7f1f7e229411f620751375812bb9faf2,gemma-4-E2B-it-UD-IQ2_M.gguf, 2,290,860,128 bytes, SHA-2563d95ada2a122c9c0b42803317239b64b262ac9226a307ff895b3d87eec0c2acd; 480/480 native tokenize and detokenize cases matchSandLogicTechnologies/granite-embedding-311m-multilingual-r2-GGUF@f142535239859391fbef67aaf886d96500ad9fa8, 240,602,528 bytes, SHA-2564cddb0ecb0ee45fcd1da37c007a608662568477a76ce5e12c14f7b34f002709e; 480/480 fallback cases match without promoting the absent exact identifierValidation
--checkagainst pinned llama.cpp and immutable inputslintrunner --output oneline --all-files