]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
model-conversion : add warn about transformers mismatch (#18691)
authorDaniel Bevenius <redacted>
Thu, 8 Jan 2026 08:29:53 +0000 (09:29 +0100)
committerGitHub <redacted>
Thu, 8 Jan 2026 08:29:53 +0000 (09:29 +0100)
commit9c142e3a2a8f1c7415511bd9d24f4790ce2dac88
tree6227c07d3ff9928a59cf994c039088b010e1b1f1
parentdf7fb92170f1c6ed08bf0943d6d8bf1191543a95
model-conversion : add warn about transformers mismatch (#18691)

This commit adds a check comparing the installed transformers library
with the transformers version that the original model supports. This
check will be performed upon a model verification failure and prints a
warning/hint to the user suggesting to install the correct version of
the transformers library.

The motivation for this change is that it is possible for the model
verification to fail due to differences in the transformers library used
and it might not be obvious that this could be the cause of the failure.
With this warning the correct version can be checked and hopefully save
time troubleshooting the cause of the verification failure.
examples/model-conversion/Makefile
examples/model-conversion/scripts/causal/compare-logits.py
examples/model-conversion/scripts/utils/common.py
examples/model-conversion/scripts/utils/semantic_check.py