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

[ignore_merges] Fix offsets #1640

Merged
merged 3 commits into from
Oct 1, 2024
Merged

[ignore_merges] Fix offsets #1640

merged 3 commits into from
Oct 1, 2024

Conversation

ArthurZucker
Copy link
Collaborator

@ArthurZucker ArthurZucker commented Sep 30, 2024

>>> import tokenizers
>>> from tokenizers import Tokenizer
>>> t = Tokenizer.from_pretrained("meta-llama/Meta-Llama-3-8B-Instruct")
>>> t.encode("are you ok").offsets
[(0, 0), (0, 3), (3, 7), (7, 10)]

fixes #1553, fixes #1517, fixes huggingface/transformers#33675, fixes #1620

@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.

@thepowerfuldeez
Copy link

Hi @ArthurZucker can you push a hotfix to pip as a 0.20.1 version? Seems like installing from source is complicated for tokenizers :)

@ArthurZucker
Copy link
Collaborator Author

On it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants