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
I would like to load the tokenizer automatically from the model that was chosen by the user in the UI. My goal is to use this tokenizer to count the number of tokens and clip the conversation history such that the LLM prompt stays within the LLM's context window. I do not want to use any generic tiktoken library which #tokens might be off. I am using vLLM as the backend inference engine.
Any alternative (easier) ideas are more than welcome!
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.
-
I would like to load the tokenizer automatically from the model that was chosen by the user in the UI. My goal is to use this tokenizer to count the number of tokens and clip the conversation history such that the LLM prompt stays within the LLM's context window. I do not want to use any generic tiktoken library which #tokens might be off. I am using vLLM as the backend inference engine.
Any alternative (easier) ideas are more than welcome!
Beta Was this translation helpful? Give feedback.
All reactions