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

Tokenizer #63

Open
belladoreai opened this issue Jun 15, 2023 · 1 comment
Open

Tokenizer #63

belladoreai opened this issue Jun 15, 2023 · 1 comment

Comments

@belladoreai
Copy link

Hey, I happened to notice you started using my tokenizer: https://github.com/belladoreai/llama-tokenizer-js

I was happy to see you use it, but then I realized you are creating this on top of OpenAI's API. OpenAI uses different tokenization than LLaMA, so the token counts will not be the same. I think you need to use a different library, such as https://github.com/niieani/gpt-tokenizer

@egonSchiele
Copy link
Owner

Thank you! I was using yours to estimate, but an exact count would be better. I'll check it out.

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

No branches or pull requests

2 participants