]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
tests : add unit test coverage for llama_tensor_get_type (#20112)
authorBartowski <redacted>
Thu, 2 Apr 2026 20:53:58 +0000 (16:53 -0400)
committerGitHub <redacted>
Thu, 2 Apr 2026 20:53:58 +0000 (22:53 +0200)
commit7992aa7c8e21ea2eb7a5e4802da56eec7b376036
treec0b3a9f7c8774fad9ae4245fb459e05418f30b36
parenta1cfb645307edc61a89e41557f290f441043d3c2
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 <redacted>
* Fix merge conflicts

---------

Co-authored-by: Georgi Gerganov <redacted>
Co-authored-by: Sigbjørn Skjæret <redacted>
20 files changed:
src/llama-ext.h
src/llama-quant.cpp
tests/.gitignore
tests/CMakeLists.txt
tests/gguf-model-data.cpp
tests/gguf-model-data.h
tests/snapshots/deepseek-v3.1.schema [new file with mode: 0644]
tests/snapshots/gemma-3-4b-it.schema [new file with mode: 0644]
tests/snapshots/glm-4.6v.schema [new file with mode: 0644]
tests/snapshots/gpt-oss-120b.schema [new file with mode: 0644]
tests/snapshots/meta-llama-3.1-70b-instruct.schema [new file with mode: 0644]
tests/snapshots/nemotron-nano-3-30b-a3b.schema [new file with mode: 0644]
tests/snapshots/qwen3-0.6b.schema [new file with mode: 0644]
tests/snapshots/qwen3-14b.schema [new file with mode: 0644]
tests/snapshots/qwen3-coder-next.schema [new file with mode: 0644]
tests/snapshots/qwen3.5-27b.schema [new file with mode: 0644]
tests/snapshots/qwen3.5-397b-a17b.schema [new file with mode: 0644]
tests/snapshots/step-3.5-flash.schema [new file with mode: 0644]
tests/test-gguf-model-data.cpp
tests/test-quant-type-selection.cpp [new file with mode: 0644]