PyTorch Extra Resources#
Despite the full Zero to Mastery PyTorch course being over 40 hours, youâll likely finish being excited to learn more.
After all, the course is a PyTorch momentum builder.
The following resources are collected to extend the course.
A warning though: thereâs a lot here.
Best to choose 1 or 2 resources from each section (or less) to explore more. And put the rest in your bag for later.
Which oneâs the best?
Well, if theyâve made it on this list, you can consider them a quality resource.
Most are PyTorch-specific, fitting extensions to the course but a couple are non PyTorch-specific, however, theyâre still valuable in the world of machine learning.
đ„Â Pure PyTorch resources#
PyTorch blog â Stay up to date on the latest from PyTorch right from the source. I check the blog once a month or so for updates.
PyTorch documentation â Weâll have explored this plenty throughout the course but thereâs still a large amount we havenât touched. No trouble, explore often and when necessary.
PyTorch Performance Tuning Guide â One of the first things youâll likely want to do after the course is to make your PyTorch models faster (training and inference), the PyTorch Performance Tuning Guide helps you do just that.
PyTorch Recipes â PyTorch recipes is a collection of small tutorials to showcase common PyTorch features and workflows you may want to create, such as Loading Data in PyTorch and Saving and Loading models for Inference in PyTorch.
PyTorch Ecosystem - A vast collection of tools that build on top of pure PyTorch to add specialized features for different fields, from PyTorch3D for 3D computer vision to Albumentations for fast data augmentation to TorchMetrics for model evaluation (thank you for the tip Alessandro).
Setting up PyTorch in VSCode â VSCode is one of the most popular IDEs out there. And its PyTorch support is getting better and better. Throughout the Zero to Mastery PyTorch course, we use Google Colab because of its ease of use. But chances are youâll be developing in an IDE like VSCode soon.
đ Libraries that make pure PyTorch better/add features#
The course focuses on pure PyTorch (using minimal external libraries) because if you know how to write plain PyTorch, you can learn to use the various extension libraries.
fast.ai â fastai is an open-source library that takes care of many of the boring parts of building neural networks and makes creating state-of-the-art models possible with a few lines of code. Their free library, course and documentation are all world-class.
MosaicML for more efficient model training â The faster you can train models, the faster you can figure out what works and what doesnât. MosaicMLâs open-source
Composer
library helps you train neural networks with PyTorch faster by implementing speedup algorithms behind the scenes which means you can get better results out of your existing PyTorch models faster. All of their code is open-source and their docs are fantastic.PyTorch Lightning for reducing boilerplate â PyTorch Lightning takes care of many of the steps that you often have to do by hand in vanilla PyTorch, such as writing a training and test loop, model checkpointing, logging and more. PyTorch Lightning builds on top of PyTorch to allow you to make PyTorch models with less code.
Libraries that extend/make pure PyTorch better.
đ Books for PyTorch#
Machine Learning with PyTorch and Scikit-Learn: Develop machine learning and deep learning models with Python by Sebastian Raschka â A fantastic introduction to machine learning and deep learning. Starting with traditional machine learning algorithms using Scikit-Learn for problems with structured data (tabular or rows and columns or Excel-style) and then switching to how to use PyTorch for deep learning on unstructured data (such as computer vision and natural language processing).
PyTorch Step-by-Step series by Daniel Voigt Godoy â Where the Zero to Mastery PyTorch course works from a code-first perspective, the Step-by-Step series covers PyTorch and deep learning from a concept-first perspective with code examples to go along. With three editions, Fundamentals, Computer Vision and Sequences (NLP), the step-by-step series is one of my favourite resources for learning PyTorch from the ground up.
Dive into Deep Learning book â Possibly one of the most comprehensive resources on the internet for deep learning concepts along with code examples in PyTorch, TensorFlow and Gluon. And all for free! For example, take a look at the authorâs explanation of the Vision Transformer we cover in 08. PyTorch Paper Replicating.
Bonus: The fast.ai course (available free online) also comes as a freely available online book, Deep Learning for Coders with fastai & PyTorch.
Textbooks to learn more about PyTorch as well as deep learning in general.
đ Resources for Machine Learning and Deep Learning Engineering#
Machine Learning Engineering (also referred to as MLOps or ML operations) is the practice of getting the models you create into the hands of others. This may mean via a public app or working behind the scenes to make business decisions.
The following resources will help you learn more about the steps around deploying a machine learning model.
Designing Machine Learning Systems book by Chip Huyen â If you want to build an ML system, itâd be good to know how others have done it. Chipâs book focuses less on building a single machine learning model (though thereâs plenty of content on that in the book) but rather building a cohesive ML system. It covers everything from data engineering to model building to model deployment (online and offline) to model monitoring. Even better, itâs a joy to read, you can tell the book is written by a writer (Chip has previously authored several books).
Made With ML by Goku Mohandas â Whenever I want to learn or reference something to do with MLOps, I go to madewithml.com/mlops and see if thereâs a lesson on it. Made with ML not only teaches you the fundamentals of many different ML models but goes through how to build an end-to-end ML system with plenty of code and tooling examples.
The Machine Learning Engineering book by Andriy Burkov â Even though this book is available to read online for free, I bought it as soon as it came out. Iâve used it as a reference and to learn more about ML engineering so much itâs basically always on my desk/within arms reach. Burkov does an excellent job at getting to the point and referencing further materials when necessary.
Full Stack Deep Learning course â I first did this course in 2021. And itâs continued to evolve to cover the latest and greatest tools in the field. Itâll teach you how to plan a project to solve an ML problem, how to source or create data, how to troubleshoot an ML project when it goes wrong and most of all, how to build ML-powered products.
Resources to improve your machine learning engineering skills (all of the steps that go around building a machine learning model).
đ Where to find datasets#
Machine learning projects begin with data.
No data, no ML.
The following resources are some of the best for finding open-source and often ready-to-use datasets on a wide range of topics and problem domains.
Paperswithcode Datasets â Search for the most used and common machine learning benchmark datasets, understand what they contain, where they came from and where they can be found. You can often also see the current best-performing model on each dataset.
HuggingFace Datasets â Not just a resource to find datasets across a wide range of problem domains but also a library to download and start using them within a few lines of code.
Kaggle Datasets â Find all kinds of datasets that usually accompany Kaggle Competitions, many of which come straight out of industry.
Google Dataset search â Just like searching Google but specifically for datasets.
These should be plenty to get started, however, for your own specific problems youâll likely want to build your own dataset.
Places to find existing and open-source datasets for a variety of problem spaces.
Tools for Deep Learning Domains#
The following resources are focused on libraries and pretrained models for specific problem domains such as computer vision and recommendation engines/systems.
đ Computer Vision#
We cover computer vision in 03. PyTorch Computer Vision but as a quick recap, computer vision is the art of getting computers to see.
If your data is visual, images, x-rays, production line video or even hand-written documents, it may be a computer vision problem.
TorchVision â PyTorchâs resident computer vision library. Find plenty of methods for loading vision data as well as plenty of pretrained computer vision models to use for your own problems.
timm (Torch Image Models) library â One of the most comprehensive computer vision libraries and resources for pretrained computer vision models. Almost all new research in that uses PyTorch for computer vision leverages the
timm
library in some way.Yolov5 for object detection â If youâre looking to build an object detection model in PyTorch, the
yolov5
GitHub repository might be the quickest way to get started.VISSL (Vision Self-Supervised Learning) library â Self-supervised learning is the art of getting data to learn patterns in itself. Rather than providing labels for different classes and learning a representation like that, self-supervised learning tries to replicate similar results without labels. VISSL provides an easy to use way to get started using self-supervised learning computer vision models with PyTorch.
đ Natural Language Processing (NLP)#
Natural language processing involves finding patterns in text.
For example, you might want to extract important entities in support tickets or classify a document into different categories.
If your problem involves a large of amount of text, youâll want to look into the following resources.
TorchText â PyTorchâs in-built domain library for text. Like TorchVision, it contains plenty of pre-built methods for loading data and a healthy collection of pretrained models you can adapt to your own problems.
HuggingFace Transformers library â The HuggingFace Transformers library has more stars on GitHub than the PyTorch library itself. And thereâs a reason. Not that HuggingFace Transformers is better than PyTorch but because itâs the best at what it does: provide data loaders and pretrained state-of-the-art models for NLP (and a whole bunch more).
Bonus: To learn more about how to HuggingFace Transformers library and all of the pieces around it, the HuggingFace team offer a free online course.
đ€Â Speech and Audio#
If your problem deals with audio files or speech data, such as trying to classify a sound or transcribe speech into text, youâll want to look into the following resources.
TorchAudio â PyTorchâs domain library for everything audio. Find in-built methods for preparing data and pre-built model architectures for finding patterns in audio data.
SpeechBrain â An open-source library built on top of PyTorch to handle speech problems such as recognition (turning speech into text), speech enhancement, speech processing, text-to-speech and more. You can try out many of their models on the HuggingFace Hub.
âRecommendation Engines#
The internet is powered by recommendations. YouTube recommends videos, Netflix recommends movies and TV shows, Amazon recommends products, Medium recommends articles.
If youâre building an online store or online marketplace, chances are youâll want to start recommending things to your customers.
For that, youâll want to look into building a recommendation engine.
TorchRec â PyTorchâs newest in-built domain library for powering recommendation engines with deep learning. TorchRec comes with recommendation datasets and models ready to try and use. Though if a custom recommendation egnine isnât up to par with what youâre after (or too much work), many cloud vendors offer recommendation engine services.
âłÂ Time Series#
If your data has a time component and youâd like to leverage patterns from the past to predict the future, such as, predicting the price of Bitcoin next year (donât try this, stock forecasting is BS) or a more reasonable problem of predicting electricity demand for a city next week, youâll want to look into time series libraries.
Both of these libraries donât necessarily use PyTorch, however, since time series is such a common problem, Iâve included them here.
Salesforce Merlion â Turn your time series data into intelligence by using Merlionâs data loaders, pre-built models, AutoML (automated machine learning) hyperparameter tuning and more for time series forecasting and time series anomaly detection all inspired by practical use cases.
Facebook Kats â Facebookâs entire business depends on prediction: whenâs the best time to place an advertisement? So you can bet theyâre invested heavily in their time series prediction software. Kats (Kit to Analyze Time Series data) is their open-source library for time series forecasting, detection and data processing.
đ©âđ»Â How to get a job#
Once youâve finished an ML course, itâs likely youâll want to use your ML skills.
And even better, get paid for them.
The following resources are good guides on what to do to get one.
âHow can a beginner data scientist like me gain experience?â by Daniel Bourke â I get the question of âhow do I get experience?â often because many different job requirements state âexperience neededâ. Well, it turns out one of the best ways to get experience (and a job) is to: start the job before you have it.
You Donât Really Need Another MOOC by Eugene Yan â MOOC stands for massive online open course (or something similar). MOOCs are beautiful. They enable people all over the world at their own pace. However, it can be tempting to just continually do MOOCs over and over again thinking âif I just do one more, Iâll be readyâ. The truth is, a few is enough, the returns of a MOOC quickly start to trail off. Instead, go off the trail, start to build, start to create, start to learn skills that canât be taught. Showcase those skills to get a job.
Bonus: For the most thorough resource on the internet for machine learning interviews, check out Chip Huyenâs free Introduction to Machine Learning Interviews book.