Learn Generative AI, Prompt Engineering, and LLMs for Free
Launch Your Cybersecurity Career in 6 Months
Overview
Build a Learning Habit
Download Class Central's free printable study calendar
Download for Free
In this Google DeepMind course you will discover the mechanisms of the transformer architecture. You will investigate how transformer language models process prompts to make context-sensitive next-token predictions. Through practical activities you will explore the attention mechanism, visualize attention weights, and encounter advanced concepts like masked attention and multi-head attention. You will also learn other techniques that are necessary to build neural networks that are well-suited to be used as language models. Finally, through activities on values, stakeholder mapping and community engagement, you will practice concrete tools for ensuring AI projects are developed with communities, not just for them.
Syllabus
- Introduction
- The architecture of modern LLMs
- What drives predictions?
- Lab: Visualizing Attention Weights
- Learning objectives
- How to get the most out of this course
- Knowledge check 1
- The attention mechanism
- Transformer architecture
- Computing attention weights
- Lab: Implement the Attention Mechanism
- Masked attention
- Multi-head attention
- Lab: Implement Masked Multi-Head Attention
- The attention mechanism
- Community values and meaning in an automated world
- Knowledge check 2
- Assembling a transformer
- Positional embeddings
- Lab: Positional Embeddings
- Sinusoidal and rotary positional embeddings
- Transformer blocks
- Multi-layer perceptron
- Layer normalization
- Lab: Trainable Parameters in the Transformer Model
- Knowledge check 3
- Reflection and practice
- Pros and cons of transformers
- Decoding and generation
- Why engagement matters: Gendered chatbots in Nigerian banks
- Knowledge check 4
- Challenge
- Mapping stakeholders and social values
- Design a mini-engagement plan
- Knowledge check 5
- Continue your journey
- Summary
- Looking forward
- Additional resources and further reading
- Glossary
- Feedback
- Your Next Steps
- Claim credential