Understanding Perplexity in Language Models: A Detailed Exploration — Blankdot