Would be cool to see WASM bindings for this here https://github.com/dqbd/tiktoken
Or maybe even your speedups from "b" in the pure js implementation
11–20 of 79 posts
Or maybe even your speedups from "b" in the pure js implementation
You know what's also faster to roughly get the amount of tokens? string.length/5
Is there any way we can get local tokenizers for other LLMs? e.g. Gemini only offer a remote API for their tokenizer. Is it proprietary? Could we infer the token mapping somehow efficiently by making lots of calls?