Some notes about statistics
Hello,
thank you for your program. It looks very nice. Something I noticed testing different models is that each model uses different tokenizer and perplexity is not directly comparable. For example for the Greek language in qwen3 tokenizer each token is about each character but other tokenizers like Mistral each token is about a syllable. So it would be helpful if you outputted also the number of tokens. Also I think it would be helpful if you outputted perplexity with more decimal points to compare different quants for the same model. Also an other idea is to output also the total entropy of the text in bits. This I think is the most fair comparison between different models. But I am not sure how common it is in NLP field. The entropy from what I understand is (number of tokens)*log2(Perplexity per token).
Thanks for the feedback, I implemented many of your requested features in the latest commits, so feel free to try them out!
Thanks Belluxx,
something I noticed is that when I change the model the token count doesn't change automatically. I need to edit the text in order for it to update.
Good catch, fixed. If everything works as expected I will close the issue.
Yes it works as expected now. Thanks.