Skip to content

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

@ArthurZucker ArthurZucker merged commit 5c475db into main Jun 24, 2025
30 checks passed
@ArthurZucker ArthurZucker deleted the fix-trainer branch June 24, 2025 08:50
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.

3 participants