Repository navigation
test: unify architecture-specific model contracts - #77
Open
zhangzhenghao wants to merge 1 commit into
Open
zhangzhenghao wants to merge 1 commit into
zhangzhenghao wants to merge 1 commit into
Conversation
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.
Summary
Follow llama.cpp's architecture-selected test runner and per-model tokenizer registration pattern: one shared runner, with architecture fixtures and expectations registered separately.
tests/models/model_tests.pywith--arch,--suite,--caseand fixture-free--list.model_contract.py.Reference: https://github.com/ggml-org/llama.cpp/blob/master/tests/test-llama-archs.cpp and https://github.com/ggml-org/llama.cpp/blob/master/tests/CMakeLists.txt.
Verification
git diff --checkpassed.An initial run against historical CLaMP3 fixtures failed because those GGUFs lacked bundled MERT metadata; the baseline script fails identically. Regenerating fixtures with the current parity pipeline passed all optional checks.
GitHub Actions on
b1c62939daf9b4f05850553e1c6753cc0754f1e5: all 9 checks passed — clang-format; Linux x64/ARM64, macOS ARM64 and Windows x64/ARM64 builds/tests; Rust checks on Linux/macOS/Windows. Verified CI run: https://github.com/gorse-io/clap.cpp/actions/runs/42498659326.