Skip to Content
Deep Learning with PyTorch, Second Edition
book

Deep Learning with PyTorch, Second Edition

by Thomas Viehmann, Eli Stevens, Luca Pietro Giovanni Antiga, Howard Huang
March 2026
Intermediate to advanced
544 pages
15h 56m
English
Manning Publications
Audiobook available

Overview

Everything you need to create neural networks with PyTorch, including Large Language and diffusion models.

PyTorch core developer Howard Huang updates the bestselling original Deep Learning with PyTorch with new insights into the transformers architecture and generative AI models.

In Deep Learning with PyTorch, Second Edition you’ll find:

  • Deep learning fundamentals reinforced with hands-on projects
  • Mastering PyTorch's flexible APIs for neural network development
  • Implementing CNNs, transformers, and diffusion models
  • Optimizing models for training and deployment
  • Generative AI models to create images and text

Instantly familiar to anyone who knows PyData tools like NumPy, PyTorch simplifies deep learning without sacrificing advanced features. In Deep Learning with PyTorch, Second Edition you’ll learn how to create your own neural network and deep learning systems and take full advantage of PyTorch’s built-in tools for automatic differentiation, hardware acceleration, distributed training, and more. You’ll discover how easy PyTorch makes it to build your entire DL pipeline, including using the PyTorch Tensor API, loading data in Python, monitoring training, and visualizing results. Each new technique you learn is put into action with practical code examples in each chapter, culminating into you building your own convolution neural networks, transformers, and even a real-world medical image classifier.

About the Technology
The powerful PyTorch library makes deep learning simple—without sacrificing the features you need to create efficient neural networks, LLMs, and other ML models. Pythonic by design, it’s instantly familiar to users of NumPy, Scikit-learn, and other ML frameworks. This thoroughly-revised second edition covers the latest PyTorch innovations, including how to create and refine generative AI models.

About the Book
Deep Learning with PyTorch, Second Edition shows you how to build neural network models using the latest version of PyTorch. Clear explanations and practical projects help you master the fundamentals and explore advanced architectures including transformers and LLMs. Along the way you’ll learn techniques for training using augmented data, improving model architecture, and fine tuning.

What's Inside
  • PyTorch APIs for neural network development
  • LLMs, transformers, and diffusion models
  • Model training and deployment


About the Reader
For Python programmers with a background in machine learning.

About the Authors
Howard Huang is a software engineer and developer on the PyTorch library focusing on large scale, distributed training. Eli Stevens, Luca Antiga, and Thomas Viehmann authored the first edition of Deep Learning with PyTorch.

Quotes
An approachable and incremental introduction to deep learning.
- Carl Osipov, Cognizant

Covers everything from beginner to advanced deep learning models using PyTorch.
- Ted Kyi, Deep Sentinel

Covers everything from beginner to advanced deep learning models using PyTorch.
- Ted Kyi, Deep Sentinel

The structure flows seamlessly, making the learning experience enjoyable and highly educational.
- Prashanth Josyula, Salesforce

Masterfully introduces complex concepts in a way approachable for beginner and students.
- Raja Rao Budaraju, Oracle

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

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Generative Deep Learning, 2nd Edition

Generative Deep Learning, 2nd Edition

David Foster
Deep Learning with Python, Third Edition

Deep Learning with Python, Third Edition

Matthew Watson, Francois Chollet
Math for Deep Learning

Math for Deep Learning

Ronald T. Kneusel
Grokking Deep Learning

Grokking Deep Learning

Andrew W. Trask

Publisher Resources

ISBN: 9781633438859Publisher SupportPublisher WebsitePurchase Link