Updated 31 October 2026
Notes on language models and the parts that break.
Inference, retrieval, evaluation, architecture — ten notes on what the model actually does when you run it, and what it costs.
Latest notes
All 10 notes
Inference
The KV cache is the real context window
Long context is a memory budget, not a model feature. The arithmetic behind the cache, and why 128k on one card is usually a promise about someone else’s hardware.
Read note → InferenceSpeculative decoding is a bet on your draft model
The target model still does the work. A smaller draft just guesses which tokens it will accept, and the speedup lives or dies on the acceptance rate.
Read note → InferenceQuantization is a memory trade
Fewer bits buy memory and bandwidth. They do not buy FLOPs, and they do not automatically make a model faster or worse.
Read note → RetrievalEmbeddings and rerankers do different jobs
The embedding decides what enters the shortlist. The reranker decides the order. Neither one fixes a corpus that does not contain the answer.
Read note →Reading
All readingUpdates
- New notes on the KV cache and speculative decoding.
- Added the quantization note.
- Added the embeddings/rerankers and RAG notes.
- Added the fine-tuning-vs-RAG note.