Count tokens used by GPT-4 and Llama for large texts (> 50k characters)(huggingface.co)
huggingface.co
Count tokens used by GPT-4 and Llama for large texts (> 50k characters)
https://huggingface.co/spaces/Xenova/the-tokenizer-playground
https://huggingface.co/spaces/Xenova/the-tokenizer-playground
Everything runs in-browser thanks to Transformers.js.