LLM 101: The Mechanical Mind Behind the Magic
Peeling back the layers of "Artificial Intelligence". It's not a brain; it's a probability machine. Understand the math to master the output.
What is a Large Language Model?
Tokens
AI reads numbers, not words. Text is converted into chunks called "tokens". Common words are single tokens, but complex words or numbers might be split. For example, "9.11" might be seen as three tokens: "9", ".", and "11". This abstraction layer is why AI struggles with character-level tasks like spelling backwards or counting letters.
Temperature
Temperature is a hyperparameter that controls the "creativity" or randomness of the model's output. A low temperature (e.g., 0.2) makes the model deterministic and focused, ideal for coding or factual retrieval where you want the same answer every time. A high temperature (e.g., 0.8) introduces more randomness in token selection, making it better for creative writing.