Skip to content

Commit ad2a19a

Browse files
committed
change log warning when no mask token of modern-bert
1 parent 68f399e commit ad2a19a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/llama-vocab.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2106,7 +2106,7 @@ void llama_vocab::impl::load(llama_model_loader & ml, const LLM_KV & kv) {
21062106
}
21072107
} else if (_contains_any(general_arch, {"modern-bert"})) {
21082108
if (token_to_id.count("[MASK]") == 0) {
2109-
LLAMA_LOG_WARN("%s: Mask token is missing in vocab, please reconvert model!\n", __func__);
2109+
LLAMA_LOG_WARN("%s: Mask token not found in vocab!\n", __func__);
21102110
} else {
21112111
_set_token_attr("[MASK]", LLAMA_TOKEN_ATTR_LSTRIP, true);
21122112
}

0 commit comments

Comments
 (0)