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

🚨 breaking: Fix training with special tokens #1617

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ArthurZucker
Copy link
Collaborator

@ArthurZucker ArthurZucker commented Aug 19, 2024

Fixes #1616: when training we don't extract added tokens, thus some of the merges include the added tokens.
This is not a real problem, as the merges are just not used, but some of them do participate in growing the size of the vocab, thus wasting some compute?

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@ArthurZucker ArthurZucker marked this pull request as ready for review August 19, 2024 12:40
@ArthurZucker ArthurZucker changed the title Fix training with special tokens 🚨 breaking: Fix training with special tokens Aug 19, 2024
@ArthurZucker ArthurZucker requested a review from Narsil August 19, 2024 12:41
@ArthurZucker
Copy link
Collaborator Author

@Narsil will add a flag to the trainer rather than break here, as this is for a special usecase

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.

BPE trainer ignoring special tokens.
2 participants