You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 356fcdb
Browse filesBrowse the repository at this point in the historyBrowse files
## Summary
- materialize tokenizer assets only from an immutable, evidence-pinned
Hugging Face revision with exact size and SHA-256 identities
- verify ordered vocabulary/token IDs, merges, special IDs and flags,
tokenizer pipeline assets, chat templates, and GGUF metadata identity
before atomic package publication
- bind the route through CLI, YAML/golden provenance, offline cache
handling, redirect/auth safety, direct-GGUF transaction checks, and
runtime evidence
- promote only the exact SmolLM F16 artifact/CPU/ORT 1.29.0 route;
retain fail-closed SmolLM2 rejection because its GGUF padding ID 0
contradicts the official pinned tokenizer padding ID 2
## Validation
- `386 passed` focused GGUF/tokenizer/runtime/CLI/schema suite
- `2658 passed` full GGUF + CLI suite
- `7062 passed, 52 skipped` broad affected suite; only the two
pre-existing `glm_moe_dsa` shape-inference failures remain
- `2 passed` real SmolLM/SmolLM2 runtime integration
- `6 passed` targeted L4/L5 golden tests
- lintrunner passed
- two independent reviews completed and findings addressed
Stacked on #607 via `justinchuby-validate-small-gguf-models`.
---------
Signed-off-by: Justin Chu <[email protected]>
Co-authored-by: Copilot App <[email protected]>
| Tokenizer pre identifiers | 87 | 56 semantic groups; all default to deferred and become exact-copy only with a validated embedded `tokenizer.huggingface.json`|
21
+
| Tokenizer pre identifiers | 87 | 56 semantic groups; all default to deferred and become materializable only from a validated embedded `tokenizer.huggingface.json` or an exact pinned source in runtime evidence|
22
22
23
-
`SUPPORTED` means the named capability is implemented and mechanically tested. `DEFERRED` means it is intentionally unavailable pending the stated work. `REJECTED` means the input or route is invalid by policy. Graph support proves construction/execution only; runtime support additionally requires a pinned real artifact, independent parity, and deterministic generation or stateful semantics. Tokenizer `copy` delegates algorithm semantics to an embedded, vocabulary-identical tokenizer JSON; it is not a reconstructed or independently proven tokenizer.
23
+
`SUPPORTED` means the named capability is implemented and mechanically tested. `DEFERRED` means it is intentionally unavailable pending the stated work. `REJECTED` means the input or route is invalid by policy. Graph support proves construction/execution only; runtime support additionally requires a pinned real artifact, independent parity, and deterministic generation or stateful semantics. Tokenizer `copy` delegates algorithm semantics to an embedded, vocabulary-identical tokenizer JSON. A `pinned-source` route additionally binds an immutable Hub revision, exact asset hashes, and all reconstructible GGUF tokenizer semantics.
24
24
25
25
<!-- END GGUF CLOSURE SUMMARY -->
26
26
@@ -31,21 +31,20 @@ normally stores only an opaque `tokenizer.ggml.pre` identifier, not the full
31
31
normalizer, pre-tokenizer, added-token, decoder, and post-processor pipeline.
32
32
Mobius never substitutes a generic BPE/SentencePiece tokenizer.
33
33
34
-
The only materialized route is `copy`: the GGUF must contain
35
-
`tokenizer.huggingface.json`, and its loadable ordered vocabulary must exactly
36
-
match `tokenizer.ggml.tokens`. Mobius copies that tokenizer pipeline verbatim
37
-
rather than claiming to reconstruct its opaque `pre` semantics, then writes
38
-
`tokenizer_config.json`, `special_tokens_map.json`, and a provenance manifest.
39
-
Otherwise the route is `deferred`: graph-only import remains available, while
40
-
runtime packaging rejects incomplete metadata before durable output. Unknown
41
-
identifiers and malformed or contradictory complete tokenizer tables reject
42
-
before graph construction.
34
+
The `copy` route requires `tokenizer.huggingface.json` in the GGUF and an exact
35
+
ordered-vocabulary match. The `pinned-source` route is narrower: a runtime evidence
36
+
record names one immutable Hub revision and every copied asset's size and SHA-256.
flags, and chat templates against all corresponding GGUF metadata. The remaining
39
+
normalizer, pre-tokenizer, decoder, and post-processor semantics are accepted only
40
+
through those exact asset hashes, never reconstructed from `tokenizer.ggml.pre`.
41
+
Any missing or contradictory field rejects before durable output.
43
42
44
43
The graph package records a canonical digest of every tokenizer metadata field.
45
44
Runtime packaging rechecks that digest before writing, so replacing a local
46
45
GGUF between graph construction and package emission cannot mix tokenizer
47
-
identity. The manifest reports ORT tokenizer compatibility as delegated to the
48
-
embedded tokenizer JSON rather than claiming independent algorithm parity.
46
+
identity. The manifest records the selected route, immutable source revision,
47
+
asset hashes, and GGUF tokenizer metadata hash.
49
48
50
49
This generated policy table is pinned to llama.cpp commit
51
50
`8d9af256337d1a501250f9bbf4c0859a654bddd6`. It enumerates all 87 accepted
@@ -305,13 +304,11 @@ validated embedding owner, but Mobius never invents a second head or silently
305
304
drops an explicit conflicting output.
306
305
307
306
Complete runtime packages are staged in a sibling temporary directory and
308
-
replace the destination with rollback on an ordinary in-process publication
309
-
failure. Replacement uses separate destination-to-backup and stage-to-destination
310
-
renames: readers can briefly observe no destination, and a process or host crash
311
-
between them requires manual recovery from the sibling backup. This is not a
312
-
single-step atomic exchange, crash-durable transaction, or multi-process lock;
313
-
callers must serialize concurrent writers. The source tokenizer digest is
314
-
rechecked before publication. Publication also requires the exact runtime
307
+
published with one atomic rename. An existing destination is rejected rather
308
+
than moved aside, so readers never observe a replacement gap or mixed package.
309
+
This is not a multi-process lock; callers racing to the same absent destination
310
+
must handle one publication failure. The source tokenizer digest is rechecked
311
+
before publication. Publication also requires the exact runtime
315
312
version from the evidence record and rechecks the source filename, size, SHA-256,
316
313
canonical architecture, tensor/qtype census, and complete graph-shaping import
317
314
route captured during construction. The serialized ONNX file list and graph
@@ -421,7 +418,7 @@ before graph construction or durable output.
421
418
|`lfm2moe`| — | model=`lfm2_moe`; tensor=`lfm2`+`lfm2_moe_extras`| not claimed | config=supported; tensor_map=supported; graph=supported; runtime=deferred; quantized_import=rejected | Config extraction, exact pinned tensor-name closure, GGUF value transforms, and synthetic recurrent-state execution are covered, but no representative real-weight GGUF has yet passed independent full-logit parity and deterministic multi-token stateful ORT generation. Runtime packaging remains deferred until that evidence exists. The mobius graph uses floating Linear modules for this architecture, so no MatMulNBits or BlockQuantizedMatMul target can consume preserved GGUF projection weights. Use keep_quantized=False for explicit float import. |
422
419
|`llada`| — | model=`llada`; tensor=`llama`| not claimed | config=supported; tensor_map=supported; graph=supported; runtime=deferred; quantized_import=supported | Config extraction, suffix-exact tensor closure, masked-diffusion task dispatch, and synthetic full-sequence execution are covered, but no pinned real GGUF has passed independent Hugging Face/llama.cpp masked-step logit parity and deterministic multi-step generation parity. Runtime packaging remains deferred until both exist. |
423
420
|`llada-moe`| — | model=`llada`; module=`llada_moe`; tensor=`llama`+`diffusion_fused_qkv`+`moe_qk_norm_extras`+`moe_extras`| not claimed | config=supported; tensor_map=supported; graph=supported; runtime=deferred; quantized_import=supported | Config extraction, suffix-exact tensor closure, masked-diffusion task dispatch, and synthetic full-sequence execution are covered, but no pinned real GGUF has passed independent Hugging Face/llama.cpp masked-step logit parity and deterministic multi-step generation parity. Runtime packaging remains deferred until both exist. |
424
-
|`llama`|`mistral`| model=`llama`; tensor=`llama`| not claimed | config=supported; tensor_map=supported; graph=supported; runtime=deferred; quantized_import=supported |Config extraction, exact tensor-name closure, and a full synthetic GGUF graph build are covered, but no representative real-weight GGUF has yet passed ORT parity or generation validation. Runtime packaging remains deferred until that evidence exists. |
421
+
|`llama`|`mistral`| model=`llama`; tensor=`llama`| not claimed | config=supported; tensor_map=supported; graph=supported; runtime=supported; quantized_import=supported |Runtime support is restricted to exact structured evidence matches. Currently that is only neopolita/smollm-135m-gguf F16 at the pinned artifact, CPU import route, ONNX Runtime 1.29.0, and HuggingFaceTB/SmolLM-135M tokenizer revision. |
425
422
|`llama-embed`| — | none (fails before config extraction) | audited-direct-loader-conditional-union | config=deferred; tensor_map=deferred; graph=deferred; runtime=deferred; quantized_import=supported | llama-embed is a canonical embedding architecture that inherits Llama's conditional tensor loader but exposes the embedding graph rather than causal logits. Mobius has no GGUF embedding task/package contract for this ID, so it must not alias ordinary llama. |
426
423
|`llama4`| — | none (fails before config extraction) | exact-direct-loader-conditional-union | config=deferred; tensor_map=deferred; graph=deferred; runtime=deferred; quantized_import=supported | Llama4 GGUF is the text member of a paired multimodal package and may contain routed experts and architecture-specific cross-modal layer scheduling. The llama4 clip vision tower, token mixing, position IDs, and package ABI remain deferred; text-backbone similarity is not evidence that the complete GGUF tensor closure is owned. |
427
424
|`maincoder`| — | none (fails before config extraction) | audited-direct-loader-conditional-union | config=deferred; tensor_map=deferred; graph=deferred; runtime=deferred; quantized_import=supported | Maincoder applies Q/K RMSNorm after RoPE and uses an exact tied-output QK-normalized SwiGLU closure. Existing generic QK-normalized graphs use different ordering, so a family alias would change attention. |
0 commit comments