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

Use eos token for padding lazily #369

Merged
merged 1 commit into from
Apr 22, 2024
Merged

Use eos token for padding lazily #369

merged 1 commit into from
Apr 22, 2024

Conversation

jonatanklosko
Copy link
Member

Currently, for models that don't specify pad token, we use eos token as the default. However, this breaks if the model repo configures a different eos token, since the pad one is still the default (and may be invalid). This moves the fallback to where we actually use the pad token.

@jonatanklosko jonatanklosko merged commit c0d069c into main Apr 22, 2024
2 checks passed
@jonatanklosko jonatanklosko deleted the jk-pad-fallback branch April 22, 2024 15:37
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.

1 participant