Skip to content

Commit 31a1b0e

Browse files
committed
llama : fix Viking pre-tokenizer regex
The order was previously wrong, which caused errors in some tests.
1 parent f9d42c5 commit 31a1b0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/llama.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15440,8 +15440,8 @@ struct llm_tokenizer_bpe {
1544015440
break;
1544115441
case LLAMA_VOCAB_PRE_TYPE_VIKING:
1544215442
regex_exprs = {
15443-
"\\p{N}",
1544415443
" ?[^(\\s|.,!?…。,、।۔،)]+",
15444+
"\\p{N}",
1544515445
};
1544615446
break;
1544715447
default:

0 commit comments

Comments
 (0)