Byte Pair Encoding: How a Compression Trick From the 1990s Became Every LLM’s Tokenizer
Language models never see words, letters, or sentences. They see integers. Everything you type gets mapped to a sequence of
Language models never see words, letters, or sentences. They see integers. Everything you type gets mapped to a sequence of
Every RAG pipeline, semantic search feature, and recommendation feed eventually hits the same wall: a few million embedding vectors, a
Continue readingHNSW From the Ground Up: How Vector Search Actually Finds Your Nearest Neighbor
Attention gets described as an O(N²) algorithm, and that description is simultaneously correct and misleading. Yes, the score matrix between
Continue readingFlashAttention: Why Attention Is a Memory Problem in Disguise
Ask an inference server to answer one question and you get one GPU doing something odd: running a matrix multiplication
Continue readingContinuous Batching: The Scheduling Model Behind Every LLM Serving Stack
Every conversation with a chatbot hides a growing accounting problem. Each token the model generates must attend to every token
Continue readingThe KV Cache: The Memory Bill Behind Every Token Your Model Generates
Ask a language model for JSON and most of the time it complies. Every so often it wraps the object
Continue readingConstrained Decoding: How LLMs Get Forced Into Valid JSON
In August 2026, ByteDance founder Zhang Yiming told the company’s Seed AI research team something almost nobody in the industry
Continue readingThe Distillation Wars: Which Chinese AI Labs Actually Train Their Own Models
Every token an LLM emits costs a full forward pass. The GPU reads hundreds of gigabytes of weights, computes one
Continue readingSpeculative Decoding: The Math, the Drafters, and When the Bet Pays Off
Every modern large language model you use is almost certainly a Mixture-of-Experts model. Mixtral, DeepSeek-V3, GPT-OSS, the latest Kimi and
Continue readingInside Mixture-of-Experts: Routing, Load Balancing, and Why 671B Parameters Cost 37B
Most teams treat “thinking mode” as a switch. Turn it on and the model reasons through the problem step by
Continue readingThinking Inertia: Why LLMs Don’t Stop Reasoning When You Tell Them To