@@ -1612,7 +1612,6 @@ enum llm_chat_template {
16121612 LLM_CHAT_TEMPLATE_MISTRAL_V3_TEKKEN,
16131613 LLM_CHAT_TEMPLATE_MISTRAL_V7,
16141614 LLM_CHAT_TEMPLATE_PHI_3,
1615- LLM_CHAT_TEMPLATE_FALCON_3,
16161615 LLM_CHAT_TEMPLATE_ZEPHYR,
16171616 LLM_CHAT_TEMPLATE_MONARCH,
16181617 LLM_CHAT_TEMPLATE_GEMMA,
@@ -1645,7 +1644,6 @@ static const std::map<std::string, llm_chat_template> LLM_CHAT_TEMPLATES = {
16451644 { "mistral-v3-tekken", LLM_CHAT_TEMPLATE_MISTRAL_V3_TEKKEN },
16461645 { "mistral-v7", LLM_CHAT_TEMPLATE_MISTRAL_V7 },
16471646 { "phi3", LLM_CHAT_TEMPLATE_PHI_3 },
1648- { "falcon3", LLM_CHAT_TEMPLATE_FALCON_3 },
16491647 { "zephyr", LLM_CHAT_TEMPLATE_ZEPHYR },
16501648 { "monarch", LLM_CHAT_TEMPLATE_MONARCH },
16511649 { "gemma", LLM_CHAT_TEMPLATE_GEMMA },
@@ -6475,11 +6473,6 @@ static void llm_load_vocab(
64756473 } else if (
64766474 tokenizer_pre == "falcon") {
64776475 vocab.type_pre = LLAMA_VOCAB_PRE_TYPE_FALCON;
6478- } else if (
6479- tokenizer_pre == "falcon3") {
6480- vocab.type_pre = LLAMA_VOCAB_PRE_TYPE_LLAMA3;
6481- vocab.tokenizer_ignore_merges = true;
6482- vocab.tokenizer_add_bos = true;
64836476 } else if (
64846477 tokenizer_pre == "mpt") {
64856478 vocab.type_pre = LLAMA_VOCAB_PRE_TYPE_MPT;
@@ -22226,8 +22219,6 @@ static llm_chat_template llama_chat_detect_template(const std::string & tmpl) {
2222622219 }
2222722220 } else if (tmpl_contains("<|assistant|>") && tmpl_contains("<|end|>")) {
2222822221 return LLM_CHAT_TEMPLATE_PHI_3;
22229- } else if (tmpl_contains("<|assistant|>") && tmpl_contains("<|user|>")) {
22230- return LLM_CHAT_TEMPLATE_FALCON_3;
2223122222 } else if (tmpl_contains("<|user|>") && tmpl_contains("<|endoftext|>")) {
2223222223 return LLM_CHAT_TEMPLATE_ZEPHYR;
2223322224 } else if (tmpl_contains("bos_token + message['role']")) {
@@ -22380,15 +22371,6 @@ static int32_t llama_chat_apply_template_internal(
2238022371 if (add_ass) {
2238122372 ss << "<|assistant|>\n";
2238222373 }
22383- } else if (tmpl == LLM_CHAT_TEMPLATE_FALCON_3) {
22384- // Falcon 3
22385- for (auto message : chat) {
22386- std::string role(message->role);
22387- ss << "<|" << role << "|>\n" << message->content << "\n";
22388- }
22389- if (add_ass) {
22390- ss << "<|assistant|>\n";
22391- }
2239222374 } else if (tmpl == LLM_CHAT_TEMPLATE_ZEPHYR) {
2239322375 // zephyr template
2239422376 for (auto message : chat) {
0 commit comments