Lesson 5: Under the Hood
Simplified Transformer Architecture
The diagram and steps below describe a simplified version of the process of how transformers are used when training LLMs to understand language.
- Tokenise: the input text is tokenised
- Embed Meanings: the tokens are turned into lists of numbers that encode their possible meanings
- Find word connections: the transformer finds connections between the words represented as numbers using lots of thinking steps, stacked on top of each other all working at the same time.
Using those connections, the transformer then guesses which word is likely to come next.