You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 22, 2025. It is now read-only.
Does anyone know which tokenizer (and library) we should use to count tokens the exact way the Perplexity models do it?
I'm integrating Perplexity's LLaMa 3.1 models (small/large/huge online and small/large chat) into our product. We need to exactly count input tokens for user quota management, but couldn't find documentation about which exact tokenizer these models use. For example, OpenAI models use Tiktoken.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone!
Does anyone know which tokenizer (and library) we should use to count tokens the exact way the Perplexity models do it?
I'm integrating Perplexity's LLaMa 3.1 models (small/large/huge online and small/large chat) into our product. We need to exactly count input tokens for user quota management, but couldn't find documentation about which exact tokenizer these models use. For example, OpenAI models use Tiktoken.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions