#Token counting
2 messages · Page 1 of 1 (latest)
I made some tests with transformers: https://gist.github.com/cbouvard/9a6ac5aa5d034030c4df856f6e8be966.
With LlamaTokenizerFast.from_pretrained("hf-internal-testing/llama-tokenizer")and AutoTokenizer.from_pretrained("mistralai/xxxxx") I have almost the same token count than the "prompt_tokens" returned by La Plateforme.