Skip to content

Commit ffa5099

Browse files
authored
llama.cpp : llama default UNK token = id 0
1 parent 9853f2c commit ffa5099

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llama.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ struct llama_vocab {
929929
// default LLaMA special tokens
930930
id special_bos_id = 1;
931931
id special_eos_id = 2;
932-
id special_unk_id = -1;
932+
id special_unk_id = 0;
933933
id special_sep_id = -1;
934934
id special_pad_id = -1;
935935

0 commit comments

Comments
 (0)