Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For chatper 1, smoll-llm is not generating eos_tokens because eos_token and padding_tokens are the same. #159

Open
r4hul77 opened this issue Jan 3, 2025 · 0 comments

Comments

@r4hul77
Copy link

r4hul77 commented Jan 3, 2025

I was able to fix it following snippet
`tokenizer = AutoTokenizer.from_pretrained(pretrained_model_name_or_path=model_name)
tokenizer.pad_token = tokenizer.unk_token
tokenizer.pad_token_id = tokenizer.unk_token_id
model, tokenizer = setup_chat_format(model=model, tokenizer=tokenizer)
tokenizer.pad_token = tokenizer.unk_token

finetune_name = "SmolLM2-FT-MyDataset"
finetune_tags = ["smol-course", "module_1"]`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant