$39.51 with 24 percent savings
List Price: $51.99

The List Price is the suggested retail price of a new product as provided by a manufacturer, supplier, or seller. Except for books, Amazon will display a List Price if the product was purchased by customers on Amazon or offered by other retailers at or above the List Price in at least the past 90 days. List prices may not necessarily reflect the product's prevailing market price.
Learn more
FREE Returns
FREE delivery Thursday, August 8. Order within 1 hr 43 mins
In Stock
$$39.51 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$39.51
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Ships from
Amazon.com
Ships from
Amazon.com
Sold by
Amazon.com
Sold by
Amazon.com
Returns
30-day refund/replacement
30-day refund/replacement
This item can be returned in its original condition for a full refund or replacement within 30 days of receipt.
Returns
30-day refund/replacement
This item can be returned in its original condition for a full refund or replacement within 30 days of receipt.
Payment
Secure transaction
Your transaction is secure
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
Payment
Secure transaction
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
Kindle app logo image

Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.

Read instantly on your browser with Kindle for Web.

Using your mobile phone camera - scan the code below and download the Kindle app.

QR code to download the Kindle App

Follow the author

Something went wrong. Please try your request again later.

Mastering PyTorch - Second Edition: Create and deploy deep learning models from CNNs to multimodal models, LLMs, and beyond 2nd ed. Edition

4.8 4.8 out of 5 stars 17 ratings

{"desktop_buybox_group_1":[{"displayPrice":"$39.51","priceAmount":39.51,"currencySymbol":"$","integerValue":"39","decimalSeparator":".","fractionalValue":"51","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"twTirEsPSjxQeCkJEL2pchsyki3FI4uGz7lD%2FaWsY4wJpbQyaMqeuBw3zr4OuazB29GLaz2CepAewvSYrTgffBisqNvVft5r5QpHQz1NKKY3S16WTgo668tDPI6qARXCou1e4YEAVTy1huhHryT3UA%3D%3D","locale":"en-US","buyingOptionType":"NEW","aapiBuyingOptionIndex":0}]}

Purchase options and add-ons

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 from 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 for prototyping models to training models using PyTorch Lightning. 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 generating models using PyTorch

- Build a deep Q-network (DQN) model in PyTorch

- Deploy PyTorch models on mobile devices (Android and iOS)

- Become well-versed with rapid prototyping using PyTorch with fast.ai

- 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.


Your Company Bookshelf
Save time and resources when buying books in bulk Learn more

Frequently bought together

This item: Mastering PyTorch - Second Edition: Create and deploy deep learning models from CNNs to multimodal models, LLMs, and beyond
$39.51
Get it as soon as Thursday, Aug 8
In Stock
Ships from and sold by Amazon.com.
+
$34.54
Get it as soon as Thursday, Aug 8
In Stock
Ships from and sold by Amazon.com.
Total price:
To see our price, add these items to your cart.
Details
Added to Cart
spCSRF_Control
Choose items to buy together.

From the brand


From the Publisher

Pytorch book
Deep Learning
PyTorch skills
ml pytorch pytorch book PML guide python book
Machine Learning with PyTorch and Scikit-Learn Mastering Pytorch 2E Python Machine Learning 3E Python Machine Learning by Example 4E
Customer Reviews
4.6 out of 5 stars
338
4.8 out of 5 stars
17
4.5 out of 5 stars
450
Price $34.54 $39.51 $41.59 $43.69
Technology Used PyTorch, scikit-learn PyTorch TensorFlow, scikit-learn PyTorch, TensorFlow, pandas, NumPy, scikit-learn
Reader Knowledge Level Beginner to intermediate Intermediate to advanced Beginner to intermediate Beginner to intermediate
New Topics New content on transformers, gradient boosting, and GNNs New content on diffusion models, recommender systems, mobile deployment, Hugging Face, and GNNs Revised and expanded to include GANs and reinforcement learning Revised with PyTorch builds, expanded best practices, and new content on LLMs and multimodal models

Editorial Reviews

About the Author

Ashish Ranjan Jha received his bachelor's degree in electrical engineering from IIT Roorkee (India), a master's degree in Computer Science from EPFL (Switzerland), and an MBA degree from Quantic School of Business (Washington). He has received a distinction in all 3 of his degrees. He has worked for large technology companies, including Oracle and Sony as well as the more recent tech unicorns such as Revolut, mostly focused on artificial intelligence. He currently works as a machine learning engineer. Ashish has worked on a range of products and projects, from developing an app that uses sensor data to predict the mode of transport to detecting fraud in car damage insurance claims. Besides being an author, machine learning engineer, and data scientist, he also blogs frequently on his personal blog site about the latest research and engineering topics around machine learning.

Product details

  • Publisher ‏ : ‎ Packt Publishing; 2nd ed. edition (May 31, 2024)
  • Language ‏ : ‎ English
  • Paperback ‏ : ‎ 558 pages
  • ISBN-10 ‏ : ‎ 1801074305
  • ISBN-13 ‏ : ‎ 978-1801074308
  • Item Weight ‏ : ‎ 2.11 pounds
  • Dimensions ‏ : ‎ 1.14 x 7.5 x 9.25 inches
  • Customer Reviews:
    4.8 4.8 out of 5 stars 17 ratings

About the author

Follow authors to get new release updates, plus improved recommendations.
Ashish Ranjan Jha
Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.

Ashish Ranjan Jha received his Bachelors degree in Electrical Engineering from IIT Roorkee (India), Masters degree in Computer Science from EPFL (Switzerland) and an MBA degree from Quantic School of Business (Washington). He has received distinction in all 3 of his degrees. He has worked for large technology companies like Oracle, Sony as well as the more recent tech unicorns such as Tractable and Revolut, mostly focussed around Artificial Intelligence. He currently works as Head of Machine Learning and Artificial Intelligence at XYZ Reality, a construction tech startup bringing AR/VR and AI into the world of construction.

Ashish has 10+ years of working experience and specialisation in the field of Machine Learning, and Python is his go-to tool. He has worked on a range of products and projects from developing an app that uses sensor data to predict the mode of transport, to detecting fraud in car damage insurance claims. Besides being an author, machine learning engineer, data scientist, he also blogs frequently on his personal blog site (DataShines) about the latest research and engineering topics around Machine Learning.

In his free time, Ashish likes to contribute to open source projects around python / ML, answering issues on stackoverflow, and if time permits - taking on a full blown kaggle competition. He also has a non-technical side in his musician avatar, a food-lover and a runner-for-life.

Customer reviews

4.8 out of 5 stars
17 global ratings
Must read for any ML engineer
5 out of 5 stars
Must read for any ML engineer
Here's my experience with the book:Positives:- Theoretical parts are easy to understand and the coding exercises make it challenging and engaging- Covers a breadth of topics, not being covered by other similar books in the field- Gives excellent deep dive into deep learning engineeringSuggestions:- Would be good to have torchrec based topics for recommendation systems in the next releaseOverall this book is a must read. The coding solutions to several complicated ML problems along with the ease of access to the code in a GitHub repo is a good resource as part of any ML developer’s machine learning toolkit.
Thank you for your feedback
Sorry, there was an error
Sorry we couldn't load the review

Top reviews from the United States

Reviewed in the United States on June 16, 2024
Here's my experience with the book:

Positives:
- Theoretical parts are easy to understand and the coding exercises make it challenging and engaging
- Covers a breadth of topics, not being covered by other similar books in the field
- Gives excellent deep dive into deep learning engineering

Suggestions:
- Would be good to have torchrec based topics for recommendation systems in the next release

Overall this book is a must read. The coding solutions to several complicated ML problems along with the ease of access to the code in a GitHub repo is a good resource as part of any ML developer’s machine learning toolkit.
Customer image
5.0 out of 5 stars Must read for any ML engineer
Reviewed in the United States on June 16, 2024
Here's my experience with the book:

Positives:
- Theoretical parts are easy to understand and the coding exercises make it challenging and engaging
- Covers a breadth of topics, not being covered by other similar books in the field
- Gives excellent deep dive into deep learning engineering

Suggestions:
- Would be good to have torchrec based topics for recommendation systems in the next release

Overall this book is a must read. The coding solutions to several complicated ML problems along with the ease of access to the code in a GitHub repo is a good resource as part of any ML developer’s machine learning toolkit.
Images in this review
Customer image Customer image
Customer imageCustomer image
One person found this helpful
Report
Reviewed in the United States on June 12, 2024
This book is quite hands-on. There is code in every chapter. I've done a few chapters and the code from github runs for me so far.
Initial chapters are a good easy read to understand deep learning concepts. Last chapters in the book are more on the practical side. Chapter on HuggingFace could be longer and split into 2 chapters as the author covers lots of content in 1 chapter. I expected more on LLMs, but the book is overall good to get comfortable working with PyTorch. Definitely recommend reading it once.
P.S. pretty big book
Customer image
5.0 out of 5 stars cool PyTorch guide with hands-on code. recommend
Reviewed in the United States on June 12, 2024
This book is quite hands-on. There is code in every chapter. I've done a few chapters and the code from github runs for me so far.
Initial chapters are a good easy read to understand deep learning concepts. Last chapters in the book are more on the practical side. Chapter on HuggingFace could be longer and split into 2 chapters as the author covers lots of content in 1 chapter. I expected more on LLMs, but the book is overall good to get comfortable working with PyTorch. Definitely recommend reading it once.
P.S. pretty big book
Images in this review
Customer image Customer image Customer image
Customer imageCustomer imageCustomer image
One person found this helpful
Report
Reviewed in the United States on June 9, 2024
I enjoyed reading "Mastering PyTorch" because it offered a hands-on, practical approach to deep learning with PyTorch. The clear explanations, real-world examples, and up-to-date content kept me engaged and informed. The expert insights and comprehensive coverage made complex concepts accessible and relevant, significantly enhancing my learning experience.
Customer image
5.0 out of 5 stars A very useful and practical guide to learn about LLMs
Reviewed in the United States on June 9, 2024
I enjoyed reading "Mastering PyTorch" because it offered a hands-on, practical approach to deep learning with PyTorch. The clear explanations, real-world examples, and up-to-date content kept me engaged and informed. The expert insights and comprehensive coverage made complex concepts accessible and relevant, significantly enhancing my learning experience.
Images in this review
Customer image
Customer image
Reviewed in the United States on July 12, 2024
As I read/studied the examples I was impressed. I was feeling confident that I could make the switch from tensorFlow to PyTorch. Then I started to look at "Using PyTorch to fine-tune AlexNet" I was unable to load 'hymenopters_data' from the downloaded data set. I kept getting "No such file or directory 'hymenopters/train'". I'm using Ubuntu
Reviewed in the United States on July 27, 2024
I've been working with PyTorch for a while now, but I really feel like this book took my skills to the next level. The explanations are clear and concise, and the code examples really helped me to understand the concepts. I especially appreciated the coverage of advanced techniques like generative models and graph neural networks, but most of the content is also completely suitable for beginners. I appreciate that the author also focuses on the modern landscape, including how to transition from TensorFlow to PyTorch, coverage of LLMs, neural networks in mobile settings (eg quantized models), autoML, integration with Hugging Face and beyond. I've already used some of the techniques from the book in my own work, and I'm really excited to see what else I can accomplish with PyTorch. Overall, I highly recommend this book to anyone who wants to learn more about PyTorch and deep learning.
Reviewed in the United States on July 2, 2024
This is one of the best books to practically learn PyTorch. It strikes a great balance between code and theory, covering all major algorithms and giving you a solid tour of the ML/AI world up to early 2024.
Reviewed in the United States on May 31, 2024
The book is an easy-read. It is quite resourceful for anyone looking to deepen their understanding of neural network models and its practical implementation using pytorch.
The concepts are well-explained with examples. I like the way the book covered different type of data: images, text, sounds, etc. There are things for everyone.
Other attraction is that it adapts to emerging concepts like diffusion models and integration with huggingface leveraging off-the-shelf pretrained models. Further, it provides practical guidance on deploying models to production, including on mobile devices.
Overall, Mastering PyTorch is a must-have for a deep learning enthusiast who looks into recent learning techniques and its applications. Highly recommended!
Reviewed in the United States on June 28, 2024
Pretty comprehensive coverage of most aspects of deep learning using Pytorch. Quite a read to digest so need to go slow at times or repeat read. Offers a refresher on the key concepts, including activation functions and optimization schedules. Compare and contrast on PyTorch library vs TensorFlow would be great read for those who use Tensorflow more. There are hands-on exercises on CNN from scratch, its architectures, how they are uniquely useful, and how they can be easily implemented. Coverage also on transformers, which is a good way to get updated based on what's going on with GPTs and LLMs nowadays. Also stuff on Graph Neural Networks (GNNs). Training a GCN model on a graph dataset was interesting as I never experience doing it before. You even get to iterate on it using a different GNN model with something called the Graph Attention Network (GAT). If you don't know what that is, get the book. Recommended.
One person found this helpful
Report

Top reviews from other countries

Sebastiano G.
5.0 out of 5 stars Engaging and Informative Read on PyTorch
Reviewed in Italy on July 8, 2024
I'm currently working my way through "Mastering PyTorch - Second Edition" by Ashish Ranjan Jha and finding it to be an indispensable resource for both beginners and seasoned practitioners in deep learning with PyTorch. The book is thorough, diving into both fundamental and advanced topics like CNNs, Transformers, and GNNs. Each chapter doesn't just discuss theory but also walks you through practical implementations which is great for hands-on learning.

The sections on Transformers and Graph Neural Networks are particularly insightful, providing practical applications and up-to-date information on these cutting-edge technologies. Although I am still in the process of reading and have much to learn, this book has already proven to be a comprehensive guide that enhances understanding through active engagement and experimentation with the exercises provided.

Highly recommended for anyone interested in mastering PyTorch and delving deep into the realm of artificial intelligence.
karun
5.0 out of 5 stars Upskill 0-100
Reviewed in the United Arab Emirates on June 18, 2024
The book is a must read for anyone looking to learn beyond basics and delve deeper into hands-on problem solving . What separates this book from the others is the breadth of topics aiming to solve real business problems than just explaining the concepts.
Ahmed Ahres
5.0 out of 5 stars Extremely insightful and well-written book!
Reviewed in the United Kingdom on June 8, 2024
I've been reading "Mastering PyTorch" and I'm blown away by the depth and breadth of knowledge shared by the author. As an AI enthusiast myself, I was looking for a book that would take my skills to the next level, and this book absolutely delivered.

The author's expertise in PyTorch and AI shines through on every page. The book is meticulously organized, with each chapter building upon the previous one to create a cohesive and comprehensive learning experience. The writing is clear, concise, and engaging, making even the most complex concepts accessible to readers with varying levels of experience.

I truly loved the focus on practical applications and real-world examples. The author doesn't just explain the theory behind PyTorch and AI; they show you how to implement models, optimize training, and deploy them to production. The chapters on generative models, reinforcement learning, and transformers are particularly impressive, providing a level of detail and insight that's hard to find elsewhere.

The book's coverage of the PyTorch ecosystem is also noteworthy, with in-depth explorations of fastai, PyTorch Lightning, and Hugging Face. The author's enthusiasm for these tools is infectious, and I found myself excited to try out new libraries and techniques (would highly recommend looking at Hugging Face!).

In short, "Mastering PyTorch" is an essential resource for anyone looking to take their AI and LLM skills to the next level. Whether you're a beginner or an experienced developer, this book definitely has something to offer! The author's passion for PyTorch and AI is evident on every page, and their expertise is generously shared with the reader.

If you're serious about mastering PyTorch and building complex AI models, you should definitely consider reading this book!
Customer image
Ahmed Ahres
5.0 out of 5 stars Extremely insightful and well-written book!
Reviewed in the United Kingdom on June 8, 2024
I've been reading "Mastering PyTorch" and I'm blown away by the depth and breadth of knowledge shared by the author. As an AI enthusiast myself, I was looking for a book that would take my skills to the next level, and this book absolutely delivered.

The author's expertise in PyTorch and AI shines through on every page. The book is meticulously organized, with each chapter building upon the previous one to create a cohesive and comprehensive learning experience. The writing is clear, concise, and engaging, making even the most complex concepts accessible to readers with varying levels of experience.

I truly loved the focus on practical applications and real-world examples. The author doesn't just explain the theory behind PyTorch and AI; they show you how to implement models, optimize training, and deploy them to production. The chapters on generative models, reinforcement learning, and transformers are particularly impressive, providing a level of detail and insight that's hard to find elsewhere.

The book's coverage of the PyTorch ecosystem is also noteworthy, with in-depth explorations of fastai, PyTorch Lightning, and Hugging Face. The author's enthusiasm for these tools is infectious, and I found myself excited to try out new libraries and techniques (would highly recommend looking at Hugging Face!).

In short, "Mastering PyTorch" is an essential resource for anyone looking to take their AI and LLM skills to the next level. Whether you're a beginner or an experienced developer, this book definitely has something to offer! The author's passion for PyTorch and AI is evident on every page, and their expertise is generously shared with the reader.

If you're serious about mastering PyTorch and building complex AI models, you should definitely consider reading this book!
Images in this review
Customer image
Customer image
Lien Michiels
5.0 out of 5 stars Excellent resource for anyone interested in deep learning
Reviewed in Belgium on June 17, 2024
"Mastering PyTorch, Second Edition" is an excellent resource for anyone interested in deep learning. This updated edition includes the latest advances, such as transformers, and so I think it's worth getting even (and maybe especially) if you already own the first edition.
As in the first edition, the book is packed with code snippets that get you started in no time.
It also covers all of the practical aspects of downloading a dataset, configuring your environment, and so on.
I really appreciate the Chapter on integrating PyTorch and HuggingFace, as HuggingFace is quickly becoming one of the most important libraries in machine learning.
Arpit Jain
5.0 out of 5 stars Exceptional book to develop deep learning skills
Reviewed in the United Kingdom on June 23, 2024
"Mastering PyTorch - Second Edition" is an exceptional resource for anyone looking to take their deep learning skills to the next level using the powerful PyTorch framework.
One of the biggest strengths of this book is that it covers the latest advancements in deep learning, including integration with Hugging Face for language models, diffusion models for image generation, and graph neural networks. The author does an excellent job of explaining these complex topics in a clear and accessible manner, complete with real-world examples and code implementations.
What truly sets this book apart is its emphasis on practical applications. In addition to teaching, you how to build advanced neural network models, it also guides you through deploying your models to production environments, including mobile devices. The chapters on optimizing model training with multiple GPUs and mixed-precision training are invaluable for those looking to maximize performance. The book also introduces readers to the rich ecosystem of PyTorch libraries and the author demonstrates their capabilities and how to leverage them effectively.
Overall, "Mastering PyTorch - Second Edition" is a must-have for any deep learning practitioner or researcher looking to stay ahead of the curve.