dqbd/tiktokenizer

token count is inconsistent with OpenAI tokenizer

GorvGoyl opened this issue · 1 comments

As shown below:

screenshot 2023-11-21 at 10 41 58@2x

screenshot 2023-11-21 at 10 42 20@2x

text:

<|im_start|>dd<|im_sep|>OpenAI's large language models (sometimes referred to as GPT's) process text using tokens, which are common sequences of characters found in a set of text. The models learn to understand the statistical relationships between these tokens, and excel at producing the next token in a sequence of tokens.<|im_end|><|im_start|>assistant<|im_sep|><|im_end|><|im_start|>assistant<|im_sep|>

any update to this? They work fine without the special characters.

https://platform.openai.com/tokenizer
image

https://tiktokenizer.vercel.app/
image