Comment on Show HN: LLaMA tokenizer that runs in browserComments−adroitboss3yDoes anyone know of a chatgpt/gpt-4 tokenizer that can run client-side?−sp3323yhttps://platform.openai.com/tokenizer or the official python library tiktoken https://github.com/openai/tiktoken or this JS port of tiktoken https://github.com/dqbd/tiktoken−oofsa3yhttps://platform.openai.com/tokenizer is not for GPT-4 but GPT-3. https://tiktokenizer.vercel.app/ supports GPT-4.−adroitboss3yThanks for the recommendations. I found the one I needed because of this comment thread.−YetAnotherNick3yhttps://github.com/cogentapps/chat-with-gpt/blob/main/app/sr...−WilliamBerglund3yYes, tiktoken, here's a client side visualizer for ithttps://github.com/functorism/gpt4-tokenizer-visualizer−adroitboss3yThanks for the recommendations everyone.
Comments
Does anyone know of a chatgpt/gpt-4 tokenizer that can run client-side?
https://platform.openai.com/tokenizer or the official python library tiktoken https://github.com/openai/tiktoken or this JS port of tiktoken https://github.com/dqbd/tiktoken
https://platform.openai.com/tokenizer is not for GPT-4 but GPT-3. https://tiktokenizer.vercel.app/ supports GPT-4.
Thanks for the recommendations. I found the one I needed because of this comment thread.
https://github.com/cogentapps/chat-with-gpt/blob/main/app/sr...
Yes, tiktoken, here's a client side visualizer for it
https://github.com/functorism/gpt4-tokenizer-visualizer
Thanks for the recommendations everyone.