Google DeepMind: Discover The Transformer Architecture
Learn how transformer language models use attention to predict tokens, implement attention in labs, and plan community engagement for AI projects.
Transformer language models read a prompt and predict the next token, and attention is what lets that prediction depend on context. You work through how attention weights merge information from separate tokens, then add masking, multiple heads, positional embeddings, multi-layer perceptrons and layer normalization until a full model is assembled. A second thread looks at how community values shape what AI technologies mean, and at planning engagement so the people a project affects can influence it.
What You Will Achieve
- Implement the attention mechanism, including a masked multi-head version
- Read a visualization of Gemma’s attention weights to tell which tokens drive a prediction
- Identify the trainable parameters in every component of a transformer language model
- Work out who an AI project affects and what they value, then plan simple ways to involve them
Program Overview
Attention and Next-Token Prediction
Starts with which prompt tokens shape the next prediction, then builds attention that merges token information into prompt-level embeddings, adding masking and multiple heads.
- Modern LLM architecture and what drives predictions
- A Gemma lab on which tokens matter
- Computing attention weights
- Masked and multi-head attention variants
Assembling the Transformer and Generating Text
Adds positional information and the remaining block components, walks through a complete language model implementation, and weighs transformer strengths and weaknesses alongside text generation methods.
- Sinusoidal and rotary positional embeddings
- Transformer blocks with multi-layer perceptrons and layer normalization
- A complete language model implementation
- Transformer pros and cons, decoding and generation
Community Values and Stakeholder Engagement
Runs alongside the technical work, examining how AI shapes shared meaning, and closes with a stakeholder challenge, further reading and a glossary.
- Community values and meaning in an automated world
- Gendered chatbots in Nigerian banks
- Stakeholder and social values mapping
- A mini-engagement plan
Certificate Awarded (Paid)
Job Outlook
These skills apply to work on language models and the neural networks behind them, and to planning AI projects that involve the communities they affect.
Good for: Learners who want to see how attention, positional embeddings and transformer blocks fit together, with labs that implement each piece.
Keep in mind: Alongside the architecture lessons runs a thread on community values and engagement, and the closing challenge is a stakeholder map and an engagement plan.
Bottom line: A lab-based walk through attention and the parts of a transformer, paired with practical exercises on involving affected communities in AI work.
Frequently Asked Questions
Which model is used in the attention labs?
The opening lab visualizes the attention weights of the Gemma model, showing which tokens in a prompt it relies on when predicting the next one. Later labs have you implement attention, masked multi-head attention and positional embeddings yourself.
What do the community engagement lessons involve?
They ask how everyday human interactions build shared meaning and what may be lost when automated systems replace them, study gendered chatbots in Nigerian banks, and end with a challenge to map stakeholders and design a mini-engagement plan for an AI project.
How does the course handle text generation?
A later lesson covers decoding and generation, the methods used to produce text with a language model, next to a discussion of the advantages and disadvantages of transformer models.
What material is there for further study?
The final module gathers additional resources and further reading on the topics covered, a glossary of the terms used, and a short look at possible next steps after the course.
Please log in to report a problem with this page.


There are no reviews yet.