Y
Hacker News
new
|
ask
|
show
|
jobs
by
adroitboss
1105 days ago
Does anyone know of a chatgpt/gpt-4 tokenizer that can run client-side?
4 comments
sp332
1105 days ago
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
link
oofsa
1104 days ago
https://platform.openai.com/tokenizer
is not for GPT-4 but GPT-3.
https://tiktokenizer.vercel.app/
supports GPT-4.
link
adroitboss
1104 days ago
Thanks for the recommendations. I found the one I needed because of this comment thread.
link
YetAnotherNick
1105 days ago
https://github.com/cogentapps/chat-with-gpt/blob/main/app/sr...
link
WilliamBerglund
1104 days ago
Yes, tiktoken, here's a client side visualizer for it
https://github.com/functorism/gpt4-tokenizer-visualizer
link
adroitboss
1104 days ago
Thanks for the recommendations everyone.
link