Learn Generative AI with PyTorch you own this product

Mark Liu
Foreword by Sarah Sanders
  • October 2024
  • ISBN 9781633436466
  • 432 pages
  • printed in black & white

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases

lite $19.99 per month

  • access to all Manning books, including MEAPs!

team

5, 10 or 20 seats+ for your team - learn more


ePub + liveBook available Nov 25, 2024
Look inside
Learn how generative AI works by building your very own models that can write coherent text, create realistic images, and even make lifelike music.

Learn Generative AI with PyTorch teaches the underlying mechanics of generative AI by building working AI models from scratch. Throughout, you’ll use the intuitive PyTorch framework that’s instantly familiar to anyone who’s worked with Python data tools. Along the way, you’ll master the fundamentals of General Adversarial Networks (GANs), Transformers, Large Language Models (LLMs), variational autoencoders, diffusion models, LangChain, and more!

In Learn Generative AI with PyTorch you’ll build these amazing models:

  • A simple English-to-French translator
  • A text-generating model as powerful as GPT-2
  • A diffusion model that produces realistic flower images
  • Music generators using GANs and Transformers
  • An image style transfer model
  • A zero-shot know-it-all agent

The generative AI projects you create use the same underlying techniques and technologies as full-scale models like GPT-4 and Stable Diffusion. You don’t need to be a machine learning expert—you can get started with just some basic Python programming skills.

about the technology

Transformers, Generative Adversarial Networks (GANs), diffusion models, LLMs, and other powerful deep learning patterns have radically changed the way we manipulate text, images, and sound. Generative AI may seem like magic at first, but with a little Python, the PyTorch framework, and some practice, you can build interesting and useful models that will train and run on your laptop. This book shows you how.

about the book

Learn Generative AI with PyTorch introduces the underlying mechanics of generative AI by helping you build your own working AI models. You’ll begin by creating simple images using a GAN, and then progress to writing a language translation transformer line-by-line. As you work through the fun and fascinating projects, you’ll train models to create anime images, write like Hemingway, make music like Mozart, and more. You just need Python and a few machine learning basics to get started. You’ll learn the rest as you go!

what's inside

  • Build an English-to-French translator
  • Create a text-generation LLM
  • Train a diffusion model to produce high-resolution images
  • Music generators using GANs and Transformers

about the reader

Examples use simple Python. No deep learning experience required.

about the author

Mark Liu is the founding director of the Master of Science in Finance program at the University of Kentucky.

The technical editor on this book was Emmanuel Maggiori.

Mark has an engaging writing style and makes complex concepts accessible, and enjoyable. I highly recommend this book.

Simon Sheather, Dean of the Gatton College of Business & Economics, University of Kentucky

An exceptional guide with real-world examples. Interactive, approachable, and highly practical!

Noah Flynn, Research Scientist, Amazon

Comprehensive, hands-on, and state-of-the-art. After reading it, you’ll understand generative AI models and be equipped with the tools to build your own.

Arpit Singh, Senior Software, Engineer, Nvidia

choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • Learn Generative AI with PyTorch ebook for free

choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • Learn Generative AI with PyTorch ebook for free