EXPLORE THE LIBRARY

AI Engineering

Evaluation, inference, model products, and applied AI systems.

6 min read

What Is Self-Attention?

Self-attention is attention applied inside one sequence. Each token builds a better representation by comparing itself with the other tokens in the same input.

6 min read

What Problem Did Attention Solve?

Attention changed the sequence-model bottleneck. Instead of forcing every old clue through one running state, it let the model look back and score which earlier tokens mattered now.

6 min read

Why LSTMs Were Better Than Plain RNNs

Plain RNNs rewrote one hidden state at every step. LSTMs added gates and a cell state, giving the model a cleaner path for preserving useful information over longer spans.

6 min read

Why RNNs Process Text Sequentially

RNNs improved on local n-gram counting by carrying a hidden state through the text. The tradeoff was dependency: token 10 cannot be processed until token 9 has updated the state.

6 min read

Why N-Gram Models Hit a Wall

N-gram models were useful because they turned language into counts. They failed because a fixed local window cannot remember distant context, understand meaning, or generalize well to unseen phrases.

6 min read

What Came Before Transformers?

Transformers were not the first attempt to model language. They arrived after rules, n-grams, recurrent networks, LSTMs, seq2seq models, and attention exposed the same bottleneck: sequence processing was too slow and too forgetful.

6 min read

The Memory Trick Behind Fast LLM Serving

Bigger GPUs help, but fast LLM serving is mostly a scheduling and KV cache problem. PagedAttention, block allocation, batching, and prefix caching decide how much useful work fits in memory.

Menu