Add mpt
This commit is contained in:
parent
217f82e734
commit
c04ddb6990
1 changed files with 4 additions and 2 deletions
|
@ -136,8 +136,10 @@ for i in range(vocab_size):
|
|||
tokens.append(f"[PAD{i}]")
|
||||
toktypes.append(gguf.TokenType.USER_DEFINED)
|
||||
elif reverse_vocab[i] in added_vocab:
|
||||
# NOTE: wouldn't we like to distinguish CONTROL tokens here?
|
||||
tokens.append(reverse_vocab[i])
|
||||
if tokenizer.added_tokens_decoder[i].special:
|
||||
toktypes.append(gguf.TokenType.CONTROL)
|
||||
else:
|
||||
toktypes.append(gguf.TokenType.USER_DEFINED)
|
||||
else:
|
||||
tokens.append(reverse_vocab[i])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue