Perplex icon indicating copy to clipboard operation
Perplex copied to clipboard

Some notes about statistics

Open kagiannis opened this issue 9 months ago • 4 comments

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).

kagiannis avatar Feb 16 '26 20:02 kagiannis

Thanks for the feedback, I implemented many of your requested features in the latest commits, so feel free to try them out!

Belluxx avatar Feb 17 '26 23:02 Belluxx

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.

kagiannis avatar Feb 18 '26 06:02 kagiannis

Good catch, fixed. If everything works as expected I will close the issue.

Belluxx avatar Feb 18 '26 09:02 Belluxx

Yes it works as expected now. Thanks.

kagiannis avatar Feb 18 '26 14:02 kagiannis