]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
Add `mistral-v1`, `mistral-v3`, `mistral-v3-tekken` and `mistral-v7` chat template...
authorJuk Armstrong <redacted>
Sun, 1 Dec 2024 22:09:49 +0000 (22:09 +0000)
committerGitHub <redacted>
Sun, 1 Dec 2024 22:09:49 +0000 (23:09 +0100)
commit917786f43d0f29b7c77a0c56767c0fa4df68b1c5
tree7cca6d261f6a14470673d3b4601156c868d5fee7
parent5e1ed95583ca552a98d8528b73e1ff81249c2bf9
Add `mistral-v1`, `mistral-v3`, `mistral-v3-tekken` and `mistral-v7` chat template types (#10572)

* Templates: `mistral-v1`, `mistral-v2`, `mistral-v3`, `mistral-v3-tekken`

* Changed system message logic and added tests for all 4

* Invalid `system_message` instead of `content` fixed

* Removed tab-indented lines

* Added template code and test for `mistral-v7`

* Added all tests. Fixed bug with `tmpl == "llama2"` test.

* Replaced tabs with spaces.

* Removed `'mistral-v2'` option as no (open) models ever used it

* Removed all references to 'v2' template from comments

* Update llama.cpp

Fixed `trim_assistant_message` bug
src/llama.cpp
tests/test-chat-template.cpp