|
|
|
|
|
by minimaxir
1167 days ago
|
|
It's worth noting that this only for GPT-3. If you're using ChatGPT or GPT-4, both use a different tokenizer that's more robust and uses/generates about 10% fewer tokens. (unclear how well it performs for non-English languages) You can test it offline using tiktoken: https://github.com/openai/tiktoken |
|