Skip to content
Snippets Groups Projects
Commit 557e881f authored by Hamid Shojanazeri's avatar Hamid Shojanazeri
Browse files

aliginng the pad token with HF latest

parent 7ec390bf
No related branches found
No related tags found
No related merge requests found
...@@ -62,13 +62,11 @@ def main( ...@@ -62,13 +62,11 @@ def main(
tokenizer = LlamaTokenizer.from_pretrained(model_name) tokenizer = LlamaTokenizer.from_pretrained(model_name)
tokenizer.add_special_tokens( tokenizer.add_special_tokens(
{ {
"eos_token": "</s>",
"bos_token": "</s>", "pad_token": "<PAD>",
"unk_token": "</s>",
"pad_token": "[PAD]",
} }
) )
chats = format_tokens(dialogs, tokenizer) chats = format_tokens(dialogs, tokenizer)
with torch.no_grad(): with torch.no_grad():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment