merged pixtral support, not fully working

This commit is contained in:
Concedo 2025-04-24 15:27:02 +08:00
commit 28a2723100
24 changed files with 1279 additions and 512 deletions

View file

@ -1741,7 +1741,8 @@ void llama_vocab::impl::load(llama_model_loader & ml, const LLM_KV & kv) {
tokenizer_pre == "llama3" ||
tokenizer_pre == "llama-v3" ||
tokenizer_pre == "llama-bpe"||
tokenizer_pre == "falcon3") {
tokenizer_pre == "falcon3" ||
tokenizer_pre == "pixtral") {
pre_type = LLAMA_VOCAB_PRE_TYPE_LLAMA3;
ignore_merges = true;
add_bos = true;