“If the model predicts one token at a time, how does it keep track of relationships across a sentence or document?”
One token's journey through a transformer passes through the same stages, in the same order, every time. Click the stages below in what you think is the correct order.
Reorder six shuffled stage labels into the correct transformer pipeline order.