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

Remove add_prefix_space #650

Merged
merged 2 commits into from Apr 3, 2024
Merged

Remove add_prefix_space #650

merged 2 commits into from Apr 3, 2024

Conversation

psinger
Copy link
Collaborator

@psinger psinger commented Apr 2, 2024

This PR removes the hidden hardcoded option of add_prefix_space=False. It will now always respect the settings of the model used.

Copy link
Collaborator

@pascal-pfeiffer pascal-pfeiffer 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. Looks like a reasonable change to me, to just use the default provided from the base model and tokenizer.

We might want to add a note somewhere that old model configs may be invalid in future transformers versions as transformers does currently not respect that setting for LlamaTokenizerFast.

@psinger psinger merged commit ab61b93 into main Apr 3, 2024
3 checks passed
@psinger psinger deleted the psi/add_prefix_space branch April 3, 2024 10:14
@psinger psinger mentioned this pull request May 22, 2024
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.

None yet

2 participants