alt.hn

6/22/2026 at 11:44:59 PM

The annotated PyTorch training loop

https://idlemachines.co.uk/essays/pytorch-training-loop

by smaddrellmander

6/25/2026 at 8:37:45 PM

PyTorch already does a huge job at keeping DL not verbose. It captures the complexity to allow you to make a whole GPT model with it, running on your GPU, and keep the code readable. Yes, there are a lot of breaking points, but at some point, DL is supposed to be non trivial, it handles math concepts most people don’t understand. That is why Data Scientists have a job ;)

by GL26

6/25/2026 at 9:14:56 PM

I mean partial derivatives aren't that complicated if you know normal derivatives, which most people do. And backpropagation isn't too difficult either.

The value of PyTorch lies more in utilizing accelerators like GPUs while offering a nice abstraction. But you can build your own (inefficient) tensor library without too much effort as e.g. Andrej Karpathy has shown in his "NN zero to hero" youtube series.

by sva_

6/26/2026 at 3:07:39 AM

I hope you don't actually believe that most people know derivatives.

by breezybottom

6/26/2026 at 8:41:42 AM

I would hope most people do. It's in pretty much every high school curriculum, isn't it?

by farresito

6/26/2026 at 10:55:19 AM

https://xkcd.com/2501/

Even if most people had calculus in high school (which is not a given), I'd expect pretty much anyone who did not go into STEM to promptly forget it, just like I forgot much from chemistry and biology after studying Computer Science.

by maleldil

6/26/2026 at 8:33:03 PM

Not in the United States at least. It's only something you would need if you went on to college anyway.

by breezybottom

6/26/2026 at 3:02:29 PM

I attended one of the better (read: top ~200) public high schools in the US, and you could graduate without even taking trigonometry

by legobmw99

6/25/2026 at 8:16:58 PM

The host website seems extremely interesting in general. Anyone here used it before?

by vovavili

6/26/2026 at 5:51:56 PM

I think the methodology is interesting, but you can probably design a similar, and probably better loop for "diving" into a topic and going through examples than is presented.

I have to imagine they just asked Claude to dive into a topic and generate example problems along the way.

As for the content... a lot feels like knowledge overload and concepts are introduced without explanation or "why". It basically says "here is a training loop" and never answers my immediate question of "...for what?" It also introduces random concepts like setting the seed that don't look like they're even in the final training loop it provides.

As a comparison, Pytorch itself has docs that go over the entire training loop as well. And it explains why you're loading the data its loading. With examples that run instead of being scattered on.

by blharr

6/25/2026 at 8:23:34 PM

The design is similar to what Claude generates. Makes me skeptical that all the content is AI-generated.

by f3408fh

6/25/2026 at 8:26:08 PM

This looks better than 90% of websites I visited. The palette is pleasant, content has the right density and spacing is very relaxed. If this is AI-generated without some clever prompt tuning, frontend as a profession is done.

by vovavili

6/25/2026 at 8:55:56 PM

I am 95% sure Claude came up with the design. It has all the tell-tale signs like the all-caps bold letter-spaced microcopy (See the orange "Sharpen your AI fundamentals" on the landing page.) Many card-like elements with a colored border on one side only. The italic serif font as subtitle. Etc. That being said I'm not judging. It's competently done.

I also put the content of a workshop into an LLM detector and it said 100% of the text was likely AI generated.

I'd just like the author to disclose how much of the content is entirely LLM-generated.

by f3408fh

6/26/2026 at 2:36:02 AM

It's surprising to say people complimenting the color palette on this site. It's almost unreadable on my (very nice) monitor but clearly it works for many readers.

by CamperBob2

6/26/2026 at 12:02:47 AM

Most people here seem to think the content is high quality.

Do you disagree?

by panarky

6/26/2026 at 2:05:44 AM

Uhhh apart from OP I don’t see anyone commenting on the content quality?

Also OP didn’t even praise the content. They said it “seems interesting.”

by f3408fh

6/25/2026 at 7:40:44 PM

https://idlemachines.co.uk/courses/foundations doesn't render correctly on mobile

by Synthetic7346

6/25/2026 at 7:42:29 PM

even the submitted page doesn't, huge margin if you zoom out on mobile (Firefox)

by moelf

6/25/2026 at 8:38:31 PM

I've seen that huge margin when zooming out issue before. I'm using Safari on iOS, but have also experienced this issue in Chrome on Android. It's probably some sort of weird compatibility thing for desktop websites. You start zoomed correctly, but for some reason, there's horizontal scroll and you can also zoom out. For seemingly no reason, as I doubt any of the websites where this happens intended it.

Note that I can't reproduce it myself on this submission, but I've seen it so many times and in so many different places that I don't think it's a website issue.

by LoganDark

6/26/2026 at 1:12:16 AM

Does Anthropic/OpenAI use PyTorch to train?

by brcmthrowaway