← All lab updates

How a transformer writes its answer: from layer to layer to the next word

Ask a model to complete "The Eiffel Tower is in the city of" and it answers "Paris", 85% sure. Where does that answer come from? We follow it up through the 24 layers of a real model: a notebook that every layer writes in, a bank of detectors, and an answer that only appears near the top. Part 2 of our series on how transformers work.