]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
convert: use existing local chat_template if mistral-format model has one. (#17749)
authorSmartestWashingMachine <redacted>
Thu, 4 Dec 2025 11:12:45 +0000 (22:12 +1100)
committerGitHub <redacted>
Thu, 4 Dec 2025 11:12:45 +0000 (12:12 +0100)
commit3659aa28e963ef3f782cd27258e97ddef678c776
tree6bfea31a57bbb14f61e6176514d8aef60e0900c7
parent2a73f81f8a810783db5794256e5ba79f298adee7
convert: use existing local chat_template if mistral-format model has one. (#17749)

* conversion: use existing local chat_template.jinja file if mistral-format model has one.

* fix --mistral-format mistakenly assuming some <=v7 chat template names are file paths and reading them.

* Update convert_hf_to_gguf.py - change from exists() to is_file()

Co-authored-by: Sigbjørn Skjæret <redacted>
---------

Co-authored-by: Sigbjørn Skjæret <redacted>
convert_hf_to_gguf.py