How an LLM Chooses the Next Token
Follow a delivery notification from logits to greedy decoding, sampling, and generation one token at a time.
Notes, experiments, and perspectives on AI engineering, software architecture, and building better software.
Follow a delivery notification from logits to greedy decoding, sampling, and generation one token at a time.
Follow a causal self-attention calculation from queries, keys, and values to multiple heads and a real SmolLM2 experiment.
Explore tokenizer training, byte-level BPE, token IDs, and learned embedding vectors through concrete SmolLM2 examples.
Understand base, instruction-tuned, and reasoning model labels through Qwen examples, chat templates, and a comparison of thinking modes.
Follow a delivery prompt through tokenization, embeddings, attention, and token generation to understand an LLM and the application around it.