RoPE Explained: How Transformers Know Where Words Are
Word order changes meaning. See how rotary position embeddings give transformer attention a signal for how far apart two tokens are.
Read moreExplore the notebook
Clear explanations of the ideas and mechanics behind artificial intelligence.
Word order changes meaning. See how rotary position embeddings give transformer attention a signal for how far apart two tokens are.
Read moreSome AI models route each token through only a few expert blocks. Here’s how that works and why active parameters don’t tell you how much memory you need.
Read moreLearn how reranking reorders candidates in AI search, where it helps, and how to measure when the right document never made the shortlist.
Read moreLearn what AI logprobs measure, why likely next tokens can appear in wrong answers, and how to test them for a narrow classification task.
Read moreA draft model can guess several tokens while the main model controls the answer. Here’s how speculative decoding speeds up generation, and when it doesn’t.
Read more