Repository navigation
Add unified modeltests suite, reference generators, and hftokenizer fixes - #88
Merged
Merged
Conversation
…ixes - Add opt-in (-modeltests) end-to-end model parity test suite under modeltests/ with multi-backend matrix (-backends), per-model peak RSS tracking, shared Dolly/MS MARCO/multilingual corpora, and harnesses for transformer and time-series models. - Add Python/PyTorch (gen_embeddings.py, gen_generate.py) and isolated Go/yzma (llama.cpp) reference generators under modeltests/internal/generators/. - Populate golden testdata for BGE-small, all-MiniLM-L6-v2, BGE-base-GGUF Q4_0, all 13 MiniLM-GGUF quantizations, KaLM-Gemma3-12B, Qwen3.5-4B, Gemma4-E4B, and Timestral-28M/123M. - Fix hftokenizer WordPiece decoder cleanup, Split \s+(?!\S) negative lookahead + ByteLevel use_regex:false, and SpecialTokenID lookups in added_tokens. - Remove redundant example parity tests while keeping helper packages and demos. - Add docs/ModelTests.md and update docs/CHANGELOG.md and .agents/AGENTS.md.
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
-modeltestsparity test suite (modeltests/,docs/ModelTests.md):-modeltestsis passed); supports-backends="b1;b2;...",-max_tier,-tag,-cached_only,-strict,-debug_layers, and-set.reference_sentences.json,reference_prompts.json) drawn from Dolly, MS MARCO, and multilingual"Why is the sky blue?"(EN/DE/FR/ZH/JA).modeltests/internal/generators/{python,yzma}):gen_embeddings.py,gen_generate.py) and isolated Go/yzma(llama.cpp) generators.testdata/forBAAI/bge-small-en-v1.5,sentence-transformers/all-MiniLM-L6-v2,bge-base-en-v1.5-gguf(Q4_0), all 13minilm-l6-v2-ggufquantizations (Q2_K..Q8_0+F16),KaLM-Embedding-Gemma3-12B,Qwen3.5-4B,Gemma-4-E4B, andTimestral-28M/123M.hftokenizerfixes discovered by the suite (tokenizers/hftokenizer/):Decoder.Cleanup),Split\s+(?!\S)negative lookahead emulation +ByteLeveluse_regex: false, andSpecialTokenIDlookup inadded_tokens/ non-special<mask>.examples/while keeping helper packages and demos.Verification
go test -short ./...passes.modeltests(18 model variants) pass on Linux/amd64 (go,go:ops_sequential) and Darwin/arm64 Apple M6 (goNEON+SME,mlxwithMLX_ENABLE_TF32=0,mps).kalm-gemma3-12b,qwen3.5-4b,gemma4-e4b) verified onxla:cuda.