Back to Courses
AI030 Professional

Generative AI Foundations in Python

A comprehensive guide to understanding and implementing Generative AI and Large Language Models (LLMs). This course covers the transition from theoretical foundations to practical Python-based development, including GANs, diffusion models, transformers, fine-tuning, and production deployment.

4.8
21.0h
964 students
5 likes
Artificial Intelligence
Start Learning

Lessons

Lesson

This lesson explores the concept of the technological Singularity and the exponential growth of AI, while establishing the fundamental distinction between discriminative models that classify data and generative models that synthesize it. Students will learn to analyze the synergy between compute, data, and algorithmic efficiency, as well as the mathematical foundations of probabilistic modeling in high-dimensional spaces.

This lesson explores the three core pillars of generative AI—GANs, diffusion models, and transformers—by analyzing their unique mathematical strategies and architectural trade-offs. Students will learn to differentiate these models based on their training stability, computational efficiency, and specific applications in multimodal synthesis.

This lesson explores the evolution of Natural Language Processing from sparse, count-based methods like TF-IDF to dense, distributed vector representations and recurrent neural architectures. It examines the limitations of RNNs and LSTMs, such as the vanishing gradient problem and the Seq2Seq bottleneck, while establishing the mathematical foundations of the Transformer architecture and self-attention mechanisms.

AI030: Production Engineering and Responsible AI Deployment (Lesson 4) explores the transition from experimental prototyping in notebooks to robust, scalable production systems. Students will learn to implement CI/CD pipelines, ensure model reliability through automated testing, and integrate fairness monitoring to meet ethical and regulatory standards.

This lesson explores the spectrum of model adaptation, comparing the computational efficiency of In-Context Learning with the specialized performance and stability of Parameter-Efficient Fine-Tuning (PEFT) and full fine-tuning. Students will learn to navigate the trade-offs between hardware constraints and model alignment, with a focus on implementing techniques like LoRA to optimize performance in resource-limited environments.

This lesson explores the necessity of domain adaptation for general-purpose LLMs, focusing on techniques like continued pre-training and fine-tuning to align model knowledge with specialized fields. Students will learn to implement parameter-efficient methods like LoRA and develop evaluation frameworks to ensure linguistic accuracy in high-stakes professional environments.

This lesson explores the paradigm shift from resource-heavy model fine-tuning to efficient prompt-based inference and in-context learning. Students will learn to master advanced prompting techniques, such as persona-based conditioning and Chain-of-Thought, to optimize model performance and maintain factual consistency.

Course Overview

📚 Content Summary

A comprehensive guide to understanding and implementing Generative AI and Large Language Models (LLMs). This course covers the transition from theoretical foundations to practical Python-based development, including GANs, diffusion models, transformers, fine-tuning, and production deployment.

Master the core principles and practical applications of modern LLMs and generative techniques with Python.

Author: Carlos Rodriguez

Acknowledgments: Special thanks to the author's wife, Jill, his parents, and the technical reviewers Morgan Boyce, Eric Rui, and Samira Shaikh (Foreword author).

🎯 Learning Objectives

  1. Distinguish between classical (discriminative) machine learning paradigms and generative AI models.
  2. Identify the foundational architectures of Generative AI, including GANs, Diffusion models, and Transformers.
  3. Explain the role and evolution of Large Language Models (LLMs) within the broader artificial intelligence landscape.
  4. Distinguish the unique features and architectural paradigms of GANs, diffusers, and transformers.
  5. Analyze the advancements and limitations of each model type, including specific issues like mode collapse or sampling speed.
  6. Implement a Stable Diffusion pipeline and evaluate generated outputs using CLIP-based logits and probabilities.
  7. Trace the evolution of NLP from early count-based methods and RNNs to modern Distributed Representations and Transfer Learning.
  8. Explain the technical mechanics of Multi-head Attention (MHA), Self-attention, Masking, and the Feed-Forward Network (FFN).
  9. Implement a complete Transformer model architecture, including data tokenization, positional encoding, and training/inference functions.
  10. Map prototyping features (e.g., Google Colab) to production-ready environments using Docker and VS Code.

Lessons