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

Add other BPE models #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add other BPE models #5

wants to merge 1 commit into from

Conversation

dqbd
Copy link
Owner

@dqbd dqbd commented Apr 12, 2023

This is a hack which converts huggingface/tokenizers JSON configuration into a format acceptable by openai/tiktoken and @dqbd/tiktoken.

This is mostly a stop-gap solution / interesting research avenue in order to port tiktoken models into huggingface/tokenizers.

  • Revisit invalid checks when merging ranks

@vercel
Copy link

vercel bot commented Apr 12, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tiktokenizer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 12, 2023 4:13pm

@dqbd
Copy link
Owner Author

dqbd commented Apr 12, 2023

However, the best solution would be to use unstable_wasm of huggingface/tokenizers to support SentencePiece, Unigram and other tokenizers.

@bzantium
Copy link

bzantium commented May 8, 2023

@dqbd Thank you for sharing interesting work! I also want to compare our own tokenizer using this project, but I'm stuck at converting huggingface tokenizer.json file into tiktoken json file like calude.json or gptj.json. Could you share any code for this :)?

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.

2 participants