What do I need to read to understand basic pytorch?

https://lemmy.world/post/9618215

What do I need to read to understand basic pytorch? - Lemmy.World

What papers or textbooks do i need to read to have all the basics / background knowledge to use pytorch and understand what I am doing based on solely the documentation pytorch provides?

I mean what are you trying to do?

It’s about the same as tensorfkiw in that it’s a largely abstracted language.

Its lego blocks with ML components. I think the dataset builder/ pipelines are better than tf. I think tf is a bit nicer if you need to do some quick and dirty assements of model performance.

I would say just hop into hugging face and pull down some models/ repos and start playing around.

More broadly it’s more important to understand bug picture concepts in ai ml rather than some language in particular, especially around frameworks and data.

The easiest way to get the basics is to search for articles, online courses, and youtube videos about the specific modules you’re interested in. Papers are written for people who are already deep in the field. You’ll get there, but they’re not the most efficient way to get up to speed. I have no experience with textbooks.

It helps to think of PyTorch as just a fancy math library. It has some well-documented frameworky structure (nn.Module) and a few differentiation engines, but all the deep learning-specific classes/functions (Conv2d, BatchNorm1d, ReLU, etc.) are just optimized math under the hood.

You can see the math by looking for projects that reimplement everything in numpy, e.g. picoGPT or ConvNet in NumPy.

If you can’t get your head around the tensor operations, I suggest searching for “explainers”. Basically for every impactful module there will be a bunch of " Explained" articles or videos out there. There are also ones for entire models, e.g. The Illustrated Transformer. Once you start googling specific modules’ explainers, you’ll find people who have made mountains of them.

If you’re not getting an explanation of something, just google and find another one. People have done an incredible job of making this information freely accessible in many different formats. I basically learned my way from webdev to an AI career with a couple years of casually watching YouTube videos.

GPT in 60 Lines of NumPy | Jay Mody

Implementing a GPT model from scratch in NumPy.

Jay Mody