tests : add unit test coverage for llama_tensor_get_type (#20112)
* Add unit test coverage for llama_tensor_get_type * Fix merge conflicts, add more schemas * clang formatter changes * Trailing whitespace * Update name * Start rebase * Updating files with upstream changes prior to rebase * Changes needed from rebase * Update attn_qkv schema, change throw behaviour * Fix merge conflicts * White space * Update with latest changes to state counters * Revert accidental personal CLAUDE.md changes * Change quotation mark * Reuse metadata.name since we have it * Move test-only stuff out of llama-quant.cpp * Hide the regex functionality back in llama-quant.cpp, use a unique pointer to a new struct 'compiled_tensor_type_patterns' which contains the patterns * cont : inital deslop guidelines * Cleanup based on review comments * Continue cleanup * Small cleanup * Manually set proper ordering of tensors, mostly applies to gemma * Formatting * Update tests/test-quant-type-selection.cpp Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com> * Fix merge conflicts --------- Co-authored-by: Georgi Gerganov <ggerganov@gmail.com> Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>
This commit is contained in:
parent
a1cfb64530
commit
7992aa7c8e
20 changed files with 35301 additions and 51 deletions
3356
tests/snapshots/deepseek-v3.1.schema
Normal file
3356
tests/snapshots/deepseek-v3.1.schema
Normal file
File diff suppressed because it is too large
Load diff
1452
tests/snapshots/gemma-3-4b-it.schema
Normal file
1452
tests/snapshots/gemma-3-4b-it.schema
Normal file
File diff suppressed because it is too large
Load diff
4052
tests/snapshots/glm-4.6v.schema
Normal file
4052
tests/snapshots/glm-4.6v.schema
Normal file
File diff suppressed because it is too large
Load diff
5597
tests/snapshots/gpt-oss-120b.schema
Normal file
5597
tests/snapshots/gpt-oss-120b.schema
Normal file
File diff suppressed because it is too large
Load diff
3896
tests/snapshots/meta-llama-3.1-70b-instruct.schema
Normal file
3896
tests/snapshots/meta-llama-3.1-70b-instruct.schema
Normal file
File diff suppressed because it is too large
Load diff
3354
tests/snapshots/nemotron-nano-3-30b-a3b.schema
Normal file
3354
tests/snapshots/nemotron-nano-3-30b-a3b.schema
Normal file
File diff suppressed because it is too large
Load diff
1221
tests/snapshots/qwen3-0.6b.schema
Normal file
1221
tests/snapshots/qwen3-0.6b.schema
Normal file
File diff suppressed because it is too large
Load diff
1905
tests/snapshots/qwen3-14b.schema
Normal file
1905
tests/snapshots/qwen3-14b.schema
Normal file
File diff suppressed because it is too large
Load diff
2138
tests/snapshots/qwen3-coder-next.schema
Normal file
2138
tests/snapshots/qwen3-coder-next.schema
Normal file
File diff suppressed because it is too large
Load diff
2406
tests/snapshots/qwen3.5-27b.schema
Normal file
2406
tests/snapshots/qwen3.5-27b.schema
Normal file
File diff suppressed because it is too large
Load diff
2682
tests/snapshots/qwen3.5-397b-a17b.schema
Normal file
2682
tests/snapshots/qwen3.5-397b-a17b.schema
Normal file
File diff suppressed because it is too large
Load diff
2450
tests/snapshots/step-3.5-flash.schema
Normal file
2450
tests/snapshots/step-3.5-flash.schema
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue