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

fix: Handle Salamandra and OpenCoder tokenizers #90

Merged

Conversation

saattrupdan
Copy link
Contributor

Salamandra and OpenCoder tokenizers use ".�" and "�s" in their vocabularies, respectively, which causes errors with Outlines.

This is similar to this previous PR, which featured other variations of the � symbol, and was fixed then by extending the re_replacement_seq regex to accommodate these variations. This PR does exactly the same as before, adding the options of having a "." before �, as well as an "s" after.

@torymur torymur force-pushed the fix/parsing-token-vocabularies-edge-cases branch from ca83995 to cb52a64 Compare November 19, 2024 12:46
@torymur torymur added the enhancement New feature or request label Nov 19, 2024
Copy link
Contributor

@torymur torymur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @saattrupdan 👋

Appreciate you doing this, LGTM!

@torymur torymur merged commit 9ddf5e7 into dottxt-ai:main Nov 19, 2024
8 checks passed
@saattrupdan saattrupdan deleted the fix/parsing-token-vocabularies-edge-cases branch November 19, 2024 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants