llama : more prominent warning for old BPE models
This commit is contained in:
parent
6d6ce93959
commit
3202676f5d
1 changed files with 6 additions and 0 deletions
|
@ -4334,6 +4334,12 @@ static void llm_load_vocab(
|
||||||
if (vocab.type == LLAMA_VOCAB_TYPE_BPE) {
|
if (vocab.type == LLAMA_VOCAB_TYPE_BPE) {
|
||||||
if (tokenizer_pre.empty()) {
|
if (tokenizer_pre.empty()) {
|
||||||
LLAMA_LOG_WARN("%s: missing pre-tokenizer type, using: 'default'\n", __func__);
|
LLAMA_LOG_WARN("%s: missing pre-tokenizer type, using: 'default'\n", __func__);
|
||||||
|
LLAMA_LOG_WARN("%s: \n", __func__);
|
||||||
|
LLAMA_LOG_WARN("%s: ************************************ \n", __func__);
|
||||||
|
LLAMA_LOG_WARN("%s: GENERATION QUALITY WILL BE DEGRADED! \n", __func__);
|
||||||
|
LLAMA_LOG_WARN("%s: CONSIDER REGENERATING THE MODEL \n", __func__);
|
||||||
|
LLAMA_LOG_WARN("%s: ************************************ \n", __func__);
|
||||||
|
LLAMA_LOG_WARN("%s: \n", __func__);
|
||||||
vocab.type_pre = LLAMA_VOCAB_PRE_TYPE_DEFAULT;
|
vocab.type_pre = LLAMA_VOCAB_PRE_TYPE_DEFAULT;
|
||||||
} else if (
|
} else if (
|
||||||
tokenizer_pre == "default") {
|
tokenizer_pre == "default") {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue