Course Overview
Dive into the most exhilarating and hands-on LLM course you'll ever experience! This isn't just learning—it's a journey that will transform you from an AI enthusiast into a creator working at the forefront of technology. AI expert Javier Ideami, the creator of one of the most successful AI related courses on Udemy, brings you a totally unique new experience around LLM technology.
What Makes This Course Unmissable:
Code Your Own AI Universe: 80% hands-on coding with Python and Pytorch. Build an LLM from scratch, line by line. Watch AI come alive through your fingertips. And then go beyond and code a compact version of an alignment process, the magic that makes ChatGPT, GPT 4, Claude and Gemini possible.
Fine-Tuning LLMs: Apply QLoRA to efficiently fine-tune and extend open source LLMs with new skills and capabilities.
Origami Meets AI: Be part of a world-first! Unravel deep learning mysteries through the art of paper folding.
Visual understanding: Combine the coding with visual exploration by going deep into the core of an LLM, seeing how its attention matrices evolve throughout training.
Deep Dive, Gradual Learning Curve: Only basic Python needed. We'll guide you through all the complex concepts around LLMs, from attention mechanisms to cross-entropy and beyond. By the end of the course, you will have gained advanced skills and knowledge about generative AI and LLMs.
Mind-Bending Finale: Cap it off with an optional guided meditation using the "generative AI" in your own brain. Mind = Blown!
Flexible requirements: Run everything on a humble 4GB GPU or anything more powerful. From Google Colab to your trusty laptop, flexibility is the mantra. On the cloud or local (Windows / Linux / Mac). All platforms and devices will work (with a minimum of 4GB of GPU memory)
Course Highlights:
Intro to Generative AI: Dive into the mesmerizing world of Generative AI, where machines create and innovate beyond imagination.
Code an LLM from Scratch: Code and nurture your very own LLM from scratch.
Unlocking an LLM Titan: Dissect an advanced LLM architecture. Peek behind the curtain of the most powerful AI systems on the planet.
Alignment. Code the Secret Sauce of the top LLMs: Code a cutting edge LLM alignment process. This is the crucial stage that makes ChatGPT, GPT 4, Claude and Gemini possible and we code together a cutting edge variation of it.
Origami AI: Fold your way to neural network nirvana. Experience a world-first fusion of ancient art and cutting-edge science to grasp deep learning like never before.
Advanced Visualizations of the Attention Mechanisms of LLMs: Understand visually how the core of an LLM, its attention matrices, evolves throughout the training process.
AI Meets Zen: Cap your journey with an optional mind-bending guided meditation. Explore the ultimate generative AI - the one in your own brain - in a profound finale that bridges technology and spirituality.
All in One / Why You Can't Miss This:
The full package: You code both a small LLM as well as a cutting edge alignment technique. You also go deep into the understanding of a complex LLM architecture. On top of that, you fine tune an open source LLM with the QLoRA technique in order to add new skills to it. In parallel you dive very deeply into all sorts of complex concepts around LLMs and deep learning, both during the coding and also during the unique Origami experience as well as the initial intro to Generative AI.
Uniqueness: Origami + AI = A learning experience you won't find anywhere else. Understand key insights about Deep Learning and Neural Networks through the magic of paper folding.
Practical Hands-on Mastery: 80% Practical. Learn and Build, Train and Align.
Future-Proof Skills: Position yourself at the forefront of the AI revolution.
And there's more: Added to all of that, the course connects you with free tools, articles and infographics produced by Ideami that enrich and accelerate your learning even more. Some of then, like the Loss Landscape explorer app, are unique tools in the world, created by Ideami for you.
Accessibility: Complex concepts explained so clearly, you'll feel like an AI whisperer.
In summary
This isn't just a course—it's a ticket to the AI creator's club. By the end, you'll have coded an LLM, understood its deepest secrets, coded an alignment technique, dived deep into profound insights about deep learning and gained practical skills that will make you the AI guru in any room.
Ready to code the future, fold profound insights through origami and blow your own mind? Join us on this unparalleled journey to the heart of LLM technology. Enroll now and prepare for the most fun, deep, and transformative tech adventure of your life!
FAQ
FAQ area empty
Course curriculum
Chương 1 Introduction to Generative AI 11 bài · 56 phút
- Welcome to the course Học thử 0:23
- Why we will start by introducing Generative AI concepts Học thử 0:38
- Introducing myself Học thử 0:31
- Generative modelling, Evolution of Generative AI and Overview of applications Học thử 6:44
- Building Blocks of Machine Creativity: Machine Learning Foundations for Gen AI Học thử 12:21
- Architectures of Machine Imagination, from GANs to Diffusion and beyond Học thử 13:26
- Machine Creativity Meets Real-World Impact - Applications of Generative AI Học thử 6:49
-
The Ethics of Machine Creativity: Challenges and Considerations in Generative AI 4:40
-
Worlds Reimagined: Visions of the Future with Generative AI 6:43
-
Summary and closing thoughts about this intro of GenAI 3:22
-
Review Quiz
Chương 2 Coding a small LLM from scratch, understanding all the key concepts involved 44 bài · 6 giờ 3 phút
-
Welcome to this section 0:25
-
Where to do the coding - Intro 0:37
-
Where to do the coding - Details 4:50
-
Dealing with challenges, and reminder about coding options 7:43
-
Setting up the coding environment 11:39
-
How Jupyter Notebooks work 10:41
-
Importing the necessary libraries 8:37
-
Setting up our base files 8:52
-
Setting up the parameters of the architecture 11:50
-
Exploring the crucial hyperparameters 6:34
-
Key parameters for an effective training process 8:37
-
Introducing Logging 0:27
-
Setting up logging 5:38
-
Setting up the tokenizer and related functionality 9:08
-
Splitting our data and creating our get batch function 11:29
-
The Transformer Architecture 2:59
-
Declaring the top layers of the LLM 13:48
-
The forward function of the LLM 12:21
-
The Cross Entropy Loss with Pytorch 9:07
-
The Cross Entropy Loss recreated manually 8:24
-
From Information to Cross-Entropy - Deep Dive 10:36
-
Completing and verifying the manual cross entropy loss 14:55
-
Generating new samples - Intro 0:10
-
Creating the functionality to generate new samples 9:53
-
Testing the sample generation functionality 11:03
-
Coding the blocks of the LLM architecture 9:50
-
Communication plus Computation 1:26
-
Providing computational power to the LLM 5:44
-
The Multi Head Attention Mechanism 5:20
-
Attention is all you need 0:19
-
Coding and understanding the attention head 22:02
-
Understanding attention - deep manual dive 14:18
-
Review and debugging example 9:59
-
Evaluating the performance with more precision 8:27
-
Setting up the Optimizer and Scheduler 10:40
-
Loading checkpoints for Inference or to restart trainings 5:54
-
Loading and testing a pre-trained checkpoint 9:52
-
Coding the learning process - Intro 0:28
-
The training loop 18:28
-
Training our LLM 18:01
-
Keeping in mind the scale of our LLM 0:37
-
Training the tokenizer 12:06
-
Encoding our dataset with the tokenizer 2:16
-
Conclusions and what comes next 6:27
Chương 3 Into the AI Matrix, exploring advanced visualizations of the core of your LLM 9 bài · 1 giờ 6 phút
-
Into the AI matrix: Introducing our journey to the core of LLMs 1:07
-
Advanced visualizations of LLM cores: a trailer 1:29
-
Deep dive: attention matrices at the start of LLM training 16:22
-
Tracking peak attention between a specific pair of tokens 9:25
-
Tracking peak attention between semantically meaningful connections 5:16
-
Exploring a set of semantic and structural connections through the training 7:06
-
Visualizing the capture of local sequential dependencies 3:13
-
The importance of understanding the attention matrix 2:21
-
Long-term evolution of attention pattern dynamics 19:35
Chương 4 Understanding the code and concepts of an Advanced LLM 14 bài · 2 giờ 1 phút
-
Welcome to a deep dive through an advanced LLM architecture 2:11
-
Setting up a new environment and hosting the support files 16:42
-
Declaring the main parameters of the model 10:54
-
Main structure and loss calculation 13:02
-
Advanced generation using extra parameters 5:40
-
The main blocks of the architecture 3:22
-
Analyzing the computational layers of the LLM 3:30
-
An efficient attention implementation, part 1 9:28
-
An efficient attention implementation, part 2 12:01
-
Exploring rotary positional embeddings and other supporting functions 9:07
-
Analyzing the inference code 9:47
-
Preparing to run inference on the cloud and locally 2:31
-
Inference on non-aligned vs aligned versions of the model 18:03
-
Further reflections on the inference results 5:04
Chương 5 Coding an alignment process from scratch, understanding all the key concepts 23 bài · 4 giờ 9 phút
-
The importance of alignment 7:58
-
The pretraining and alignment datasets 6:18
-
Importing the necessary libraries 4:28
-
Setting up the parameters for the alignment process 10:09
-
Setting up the chat template for the tokenizing process 14:32
-
Filtering our alignment dataset 11:17
-
Pre-processing and Tokenizing the alignment dataset 14:37
-
Debugging and completing the pre-processing function 14:35
-
Splitting the alignment data and creating our dataloaders 8:06
-
Setting up the model and optimizer for the alignment training process 10:10
-
Setting up our scheduler function 5:24
-
Coding the training loop of the alignment process 5:27
-
Coding the alignment loss calculation - part 1 16:39
-
Understanding how we will favor aligned responses - Deep Dive 15:59
-
Coding the alignment loss calculation - part 2 7:36
-
Coding the alignment loss calculation - part 3 26:09
-
Adding logging, checkpoint saving and launching the training 10:18
-
Training and testing the alignment, analyzing and expanding the stats 13:21
-
Adding new code to calculate more precise training and validation losses 13:48
-
Comparing training and validation charts - Deep Dive 23:41
-
Alignment wrap-up 4:09
-
The path towards alignment 2:29
-
Congrats, summary, and what's next 2:18
Chương 6 Add New Skills to LLMs with QLoRA (Practical Fine-Tuning) 12 bài · 2 giờ 14 phút
-
Introduction: Adding New Skills to LLMs with QLoRA 3:22
-
Environment Setup for the QLoRA Project 6:03
-
Model Access and Project Files 5:24
-
Imports, Configuration, and Weights & Biases Logging 7:16
-
Key Hyperparameters Explained (The Config Deep Dive) 16:05
-
Loading Model + Tokenizer, Applying LoRA/QLoRA 13:50
-
Prompt Formatting and Tokenization for Training 7:40
-
Preparing the training parameters 12:10
-
Building the LoRA Dataset (Train/Validation Pipeline) 13:07
-
Launching the QLoRA Fine-Tuning 6:01
-
Evaluate Results: Base Model vs LoRA Model 26:25
-
Evaluation + Validator Pipeline (How We Score Quality) 16:10
Chương 7 Origami + AI: Learning key insights about neural networks and AI with Origami 16 bài · 55 phút
-
Welcome to this original origami based journey to the core of AI 0:34
-
In Search of the Magical Mappings of Creativity, using Origami! 0:44
-
The Search for the Perfect Mapping: datasets and dimensionality 5:50
-
From Linearity to Complexity: Neural Networks and the Nonlinearities of Life 5:24
-
Bending the Rules: Non-Linear transformations and the key to complexity 11:23
-
Not Too Tight, Not Too Loose - Finding the perfect fit 3:23
-
How increasing the dimensionality impacts the latent complexity of the network 4:53
-
The Power of Depth: Creating Sophisticated Mappings with AI networks 5:07
-
From high dimensional manifolds to dynamic and ever changing latent spaces 6:04
-
Advanced digital representations of the latent complexity of neural networks 1:37
-
Visualizing the Journey: Loss Landscapes and the Search for Optimal Weights 4:26
-
Example of the dynamic Loss Landscape of a generative adversarial network 1:23
-
Lucy - Real Time Visualization of the changing weights of a neural network 2:49
-
Charting the hidden depths: a recap of our transformative latent space journey 0:34
-
Summary of the last sections 0:43
-
Review Quiz
Chương 8 Activating the Generative Model of your own mind 13 bài · 1 giờ 21 phút
-
Introducing our final journey 0:48
-
A guided visualization experience to exercise the generative model in your head 5:25
-
Intro to the journey to the center of the neuron 4:43
-
The container, the salty ocean and the 150000 cortical columns 7:58
-
Visualizing the pyramidal neuron 17:49
-
The Synapse, visualizing the input-output interface 6:01
-
Biological vs Artificial Neurons: Inputs, Outputs, Speed, etc 8:37
-
Learning in biological and artificial neurons 7:54
-
Planning, decision making and world models 12:32
-
Efficiency: sparsity in biological vs artificial networks 3:08
-
Consciousness: within the neurons 2:50
-
The future, towards AGI / ASI 2:51
-
Conclusion and congratulations 0:31
Requirment
-
Basic knowledge of python. It's enough with the very basics, as we will code every little thing together, line by line
-
You can code either on a free online platform like Google Colab, or using your local Laptop or Desktop
-
Lots of enthusiasm. We are going to go really deep into both the code and the concepts around the code. You can grow and stretch your knowledge and experience a lot if you stay focused and motivated throughout the course, let's do it :)
Outcomes
-
Code and train an LLM from scratch, line by line, understanding every concept in detail
-
Understand and analyze in depth an advanced LLM architecture based on the Llama system
-
Code and train an alignment process from scratch, to align an LLM with a preferred form of interaction
-
Apply QLoRA to efficiently fine-tune and extend open-source LLMs with new capabilities
-
Explore in depth insights about deep learning and neural networks through the use of Origami
-
Visual understanding: Dive deep into the core of an LLM and visually explore how its attention matrices evolve throughout the training process.
-
Understand in great depth key concepts like the Attention Mechanisms, the Cross Entropy Loss, the way neural networks learn and many more
-
In addition to the coding, every section includes in-depth explanations of key concepts related to these architectures and generative AI
0 Student
2 Courses
0 review