Skip to content

Add other BPE models#5

Open
dqbd wants to merge 1 commit into
masterfrom
custom-bpe-models
Open

Add other BPE models#5
dqbd wants to merge 1 commit into
masterfrom
custom-bpe-models

Conversation

@dqbd

@dqbd dqbd commented Apr 12, 2023

Copy link
Copy Markdown
Owner

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

vercel Bot commented Apr 12, 2023

Copy link
Copy Markdown

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

dqbd commented Apr 12, 2023

Copy link
Copy Markdown
Owner Author

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

@bzantium

bzantium commented May 8, 2023

Copy link
Copy Markdown

@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