9 Understanding Transformers
In this chapter, we’ll explore transformers, a revolutionary architecture that has redefined natural language processing (NLP). We’ll begin with the theory behind how these models understand relationships between words, regardless of their position in a sequence. We’ll learn about key components such as attention mechanisms that make these models so effective. We’ll then build a transformer from scratch in Keras before showing you how to leverage pretrained models to create practical applications with minimal code. By the chapter’s end, you’ll understand transformer fundamentals and how to apply them to real-world problems.
Transformers are a revolutionary concept in the field of AI, forming the foundation of virtually ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access