Skip to content

Add special token handling to bpe from scratch code #616

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

Merged
merged 1 commit into from
Apr 13, 2025
Merged

Conversation

rasbt
Copy link
Owner

@rasbt rasbt commented Apr 13, 2025

This adds correct tiktoken-style special token handling, i.e., allowed_special={"<|endoftext|>"} to BPE from scratch implementation.

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@rasbt rasbt merged commit 72efebd into main Apr 13, 2025
13 checks passed
@rasbt rasbt deleted the special-tokens branch April 13, 2025 17:38
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