vocab : correctly identify LF token for GPT-2 style BPE tokenizer (#11496)
This commit is contained in:
parent
4314e56c4f
commit
ffd0821c57
1 changed files with 1 additions and 1 deletions
|
@ -1692,7 +1692,7 @@ void llama_vocab::impl::load(llama_model_loader & ml, const LLM_KV & kv) {
|
||||||
GGML_ASSERT(!ids.empty() && "model vocab missing newline token");
|
GGML_ASSERT(!ids.empty() && "model vocab missing newline token");
|
||||||
linefeed_id = ids[0];
|
linefeed_id = ids[0];
|
||||||
} else {
|
} else {
|
||||||
const std::vector<int> ids = tokenize("\xC4\x8A", false); // U+010A
|
const std::vector<int> ids = tokenize("\n", false);
|
||||||
|
|
||||||
//GGML_ASSERT(!ids.empty() && "model vocab missing newline token");
|
//GGML_ASSERT(!ids.empty() && "model vocab missing newline token");
|
||||||
if (ids.empty()) {
|
if (ids.empty()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue