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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issues with LitGPT Tokenizer (SentencePiece and HF Tokenizers) #1396

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

Conversation

Andrei-Aksionov
Copy link
Collaborator

Hi there 馃憢

While I was working on #1341, I noticed a couple of strange things with the tokenizer:

  1. If to make a prompt a bit more complex (by adding special tokens from the prompt) then the output doesn't match to what HF AutoTokenizer outputs. It is true for both SentencePiece and Tokenizers.
  2. If to force Phi-3 to use Tokenizers library, then generate.base outputs something useful, while chat.base doesn't.
  3. Test for tokenizers checks only SentencePiece. We need to test both SentencePiece and Tokenizers.

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.

None yet

1 participant