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

Support for LLaMA models #160

Merged
merged 1 commit into from
Mar 14, 2023
Merged

Support for LLaMA models #160

merged 1 commit into from
Mar 14, 2023

Conversation

zphang
Copy link
Contributor

@zphang zphang commented Mar 8, 2023

Can be merged after huggingface/transformers#21955

@dustydecapod
Copy link

Have you tested this? In my local testing previously, implementing this exact change, I ran into an issue where the trainers didn't like not having a pad token in the tokenizer.

@younesbelkada
Copy link
Contributor

@zoidbb does adding:

tokenizer.pad_token = tokenizer.eos_token

helps solving your issue?

@zphang
Copy link
Contributor Author

zphang commented Mar 8, 2023

Have you tested this? In my local testing previously, implementing this exact change, I ran into an issue where the trainers didn't like not having a pad token in the tokenizer.

Yes, but I tested with my own data pipeline/data collator.

@dustydecapod
Copy link

@zoidbb does adding:

tokenizer.pad_token = tokenizer.eos_token

helps solving your issue?

Oddly not, I tried this and it still complained. I'll provide more details this evening when I'm done with work.

@tloen
Copy link

tloen commented Mar 12, 2023

@zoidbb you may also need:

tokenizer.pad_token_id = tokenizer.eos_token_id

Copy link
Contributor

@pacman100 pacman100 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @zphang for adding this! 🤗

@pacman100 pacman100 merged commit 1c11bc0 into huggingface:main Mar 14, 2023
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

Successfully merging this pull request may close these issues.

5 participants