Book description
Master advanced techniques and algorithms for machine learning with PyTorch using real-world examples Updated for PyTorch 2.x, including integration with Hugging Face, mobile deployment, diffusion models, and graph neural networks Purchase of the print or Kindle book includes a free eBook in PDF format
Key Features
- Understand how to use PyTorch to build advanced neural network models
- Get the best from PyTorch by working with Hugging Face, fastai, PyTorch Lightning, PyTorch Geometric, Flask, and Docker
- Unlock faster training with multiple GPUs and optimize model deployment using efficient inference frameworks
Book Description
PyTorch is making it easier than ever before for anyone to build deep learning applications. This PyTorch deep learning book will help you uncover expert techniques to get the most out of your data and build complex neural network models.
You’ll build convolutional neural networks for image classification and recurrent neural networks and transformers for sentiment analysis. As you advance, you'll apply deep learning across different domains, such as music, text, and image generation, using generative models, including diffusion models. You'll not only build and train your own deep reinforcement learning models in PyTorch but also learn to optimize model training using multiple CPUs, GPUs, and mixed-precision training. You’ll deploy PyTorch models to production, including mobile devices. Finally, you’ll discover the PyTorch ecosystem and its rich set of libraries. These libraries will add another set of tools to your deep learning toolbelt, teaching you how to use fastai to prototype models and PyTorch Lightning to train models. You’ll discover libraries for AutoML and explainable AI (XAI), create recommendation systems, and build language and vision transformers with Hugging Face.
By the end of this book, you'll be able to perform complex deep learning tasks using PyTorch to build smart artificial intelligence models.
What you will learn
- Implement text, vision, and music generation models using PyTorch
- Build a deep Q-network (DQN) model in PyTorch
- Deploy PyTorch models on mobile devices (Android and iOS)
- Become well versed in rapid prototyping using PyTorch with fastai
- Perform neural architecture search effectively using AutoML
- Easily interpret machine learning models using Captum
- Design ResNets, LSTMs, and graph neural networks (GNNs)
- Create language and vision transformer models using Hugging Face
Who this book is for
This deep learning with PyTorch book is for data scientists, machine learning engineers, machine learning researchers, and deep learning practitioners looking to implement advanced deep learning models using PyTorch. This book is ideal for those looking to switch from TensorFlow to PyTorch. Working knowledge of deep learning with Python is required.
Table of contents
- Preface
- Overview of Deep Learning Using PyTorch
-
Deep CNN Architectures
- Why are CNNs so powerful?
- Evolution of CNN architectures
- Developing LeNet from scratch
- Fine-tuning the AlexNet model
- Running a pretrained VGG model
- Exploring GoogLeNet and Inception v3
- Discussing ResNet and DenseNet architectures
- Understanding EfficientNets and the future of CNN architectures
- Summary
- References
- Combining CNNs and LSTMs
- Deep Recurrent Model Architectures
- Advanced Hybrid Models
-
Graph Neural Networks
- Introduction to GNNs
- Types of graph learning tasks
-
Reviewing prominent GNN models
- Understanding graph convolutions with GCNs
- Using attention in graphs with GAT
- Performing graph sampling with GraphSAGE
- Building a GCN model using PyTorch Geometric
- Loading and exploring the citation networks dataset
- Building a simple NN-based node classifier
- Building a GCN model for node classification
- Training a GAT model with PyTorch Geometric
- Summary
- Reference list
- Music and Text Generation with PyTorch
- Neural Style Transfer
- Deep Convolutional GANs
-
Image Generation Using Diffusion
- Understanding image generation using diffusion
- Training a diffusion model for image generation
- Understanding text-to-image generation using diffusion
- Using the Stable Diffusion model to generate images from text
- Summary
- Reference list
- Deep Reinforcement Learning
- Model Training Optimizations
- Operationalizing PyTorch Models into Production
- PyTorch on Mobile Devices
- Rapid Prototyping with PyTorch
- PyTorch and AutoML
- PyTorch and Explainable AI
- Recommendation Systems with PyTorch
- PyTorch and Hugging Face
- Index
Product information
- Title: Mastering PyTorch - Second Edition
- Author(s):
- Release date: May 2024
- Publisher(s): Packt Publishing
- ISBN: 9781801074308
You might also like
book
Mastering PyTorch
Master advanced techniques and algorithms for deep learning with PyTorch using real-world examples Key Features Understand …
book
Learning Go, 2nd Edition
Go has rapidly become the preferred language for building web services. Plenty of tutorials are available …
book
Learning Modern Linux
If you use Linux in development or operations and need a structured approach to help you …
book
Learning Spark, 2nd Edition
Data is bigger, arrives faster, and comes in a variety of formatsâ??and it all needs to …