llama.cpp/examples/model-conversion/scripts/utils
Daniel Bevenius 9c142e3a2a
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.
2026-01-08 09:29:53 +01:00
..
__init__.py model-conversion : use CONVERTED_MODEL value for converted model [no ci] (#17984) 2025-12-13 08:34:26 +01:00
check-nmse.py model-conversion : use CONVERTED_MODEL value for converted model [no ci] (#17984) 2025-12-13 08:34:26 +01:00
common.py model-conversion : add warn about transformers mismatch (#18691) 2026-01-08 09:29:53 +01:00
compare_tokens.py examples : add debug utility/example (#18464) 2026-01-07 10:42:19 +01:00
create-collection-add-model.sh model-conversion : remove hardcoded /bin/bash shebangs [no ci] (#15765) 2025-09-03 12:50:47 +02:00
curl-embedding-server.sh model-conversion : remove hardcoded /bin/bash shebangs [no ci] (#15765) 2025-09-03 12:50:47 +02:00
hf-add-model-to-collection.py
hf-create-collection.py
hf-create-model.py model-conversion : add model card template for embeddings [no ci] (#15557) 2025-08-25 14:25:25 +02:00
hf-upload-gguf-model.py
inspect-converted-model.sh model-conversion : remove hardcoded /bin/bash shebangs [no ci] (#15765) 2025-09-03 12:50:47 +02:00
inspect-org-model.py model-conversion : add embedding prompt file support (#15871) 2025-09-25 12:02:36 +02:00
perplexity-gen.sh model-conversion : remove hardcoded /bin/bash shebangs [no ci] (#15765) 2025-09-03 12:50:47 +02:00
perplexity-run-simple.sh model-conversion : remove hardcoded /bin/bash shebangs [no ci] (#15765) 2025-09-03 12:50:47 +02:00
perplexity-run.sh model-conversion : remove hardcoded /bin/bash shebangs [no ci] (#15765) 2025-09-03 12:50:47 +02:00
quantize.sh model-conversion : remove hardcoded /bin/bash shebangs [no ci] (#15765) 2025-09-03 12:50:47 +02:00
run-embedding-server.sh model-conversion : remove hardcoded /bin/bash shebangs [no ci] (#15765) 2025-09-03 12:50:47 +02:00
semantic_check.py model-conversion : add warn about transformers mismatch (#18691) 2026-01-08 09:29:53 +01:00