Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Udemy

Mathematics Behind Large Language Models and Transformers

via Udemy

Overview

Deep Dive into Transformer Mathematics: From Tokenization to Multi-Head Attention to Masked Language Modeling & Beyond

What you'll learn:
  • Mathematics Behind Large Language Models
  • Positional Encodings
  • Multi Head Attention
  • Query, Value and Key Matrix
  • Attention Masks
  • Masked Language Modeling
  • Dot Products and Vector Alignments
  • Nature of Sine and Cosine functions in Positional Encodings
  • How models like ChatGPT work under the hood
  • Bidirectional Models
  • Context aware word representations
  • Word Embeddings
  • How dot products work
  • Matrix multiplication
  • Programatically Create tokens

Welcome to the Mathematics of Transformers, an in-depth course crafted for those eager to understand the mathematical foundations of large language models like GPT, BERT, and beyond. This course delves into the complex mathematical algorithms that allow these sophisticated models to process, understand, and generate human-like text. Starting with tokenization, students will learn how raw text is converted into a format understandable by models through techniques such as the WordPiece algorithm. We’ll explore the core components of transformer architectures—key matrices, query matrices, and value matrices—and their roles in encoding information. A significant focus will be on the mechanics of the attention mechanism, including detailed studies of multi-head attention and attention masks. These concepts are pivotal in enabling models to focus on relevant parts of the input data, enhancing their ability to understand context and nuance. We will also cover positional encodings, essential for maintaining the sequence of words in inputs, utilizing cosine and sine functions to embed the position information mathematically. Additionally, the course will include comprehensive insights into bidirectional and masked language models, vectors, dot products, and multi-dimensional word embeddings, crucial for creating dense representations of words. By the end of this course, participants will not only master the theoretical underpinnings of transformers but also gain practical insights into their functionality and application. This knowledge will prepare you to innovate and excel in the field of machine learning, placing you among the top echelons of AI engineers and researchers

Taught by

Patrik Szepesi

Reviews

4.5 rating at Udemy based on 169 ratings

Start your review of Mathematics Behind Large Language Models and Transformers

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.