News for hackers. Stuff that matters.
Re:I have reimplemented Stable Diffusion 3.5 from scratch in... by eapriv on Saturday June 14, 2025 @12:44PM (#44277357)
I find it hilarious that “from scratch” now somehow means “in PyTorch”.
Re:I have reimplemented Stable Diffusion 3.5 from scratch in... by monsieurbanana on Saturday June 14, 2025 @12:54PM (#44277418)
If any "from scratch" post doesn't start with linking to a Primitive Technology video, I'm closing the tab
Re:I have reimplemented Stable Diffusion 3.5 from scratch in... by mkoubaa on Saturday June 14, 2025 @03:04PM (#44278127)
Unless the author was raised by chimps I'm out
Re:I have reimplemented Stable Diffusion 3.5 from scratch in... by 0cf8612b2e1e on Saturday June 14, 2025 @04:14PM (#44278518)
Not fusing heavier elements from hydrogen? I’m out.
Re:I have reimplemented Stable Diffusion 3.5 from scratch in... by chairmansteve on Saturday June 14, 2025 @02:50PM (#44278022)
Yeah. Should have done it in assembly.
Re:I have reimplemented Stable Diffusion 3.5 from scratch in... by mardifoufs on Saturday June 14, 2025 @04:51PM (#44278743)
Pytorch is a pretty basic building block when you get to some degree of model complexity. It wouldn't really be interesting to implement autograd or some other things pytorch provides imo when the goal is to show a reimplantation of something as "higher" level as SD. It's similar to how I don't mind it when someone doesn't reimplement an OS, or a JavaScript engine when writing a web app from scratch.

And there's been a recent surge in abstractions over pytorch, and even standalone packages for models that you are just expected to import and use as an API (which are very useful, don't get me wrong!). So it's nice to see an implementation that doesn't have 10 different dependencies that each abstract over something pytorch does.

Re:I have reimplemented Stable Diffusion 3.5 from scratch in... by eapriv on Sunday June 15, 2025 @02:00AM (#44280824)
> It wouldn't really be interesting

Andrej Karpathy did exactly that, and I think it’s quite interesting.

Re:I have reimplemented Stable Diffusion 3.5 from scratch in... by yorpinn on Sunday June 15, 2025 @10:29PM (#44286220)
I agree, great series of videos, but there's a dependent clause:

> ...when the goal is to show a reimplantation of something as "higher" level as SD.

Implementing autograd is interesting, but it's not directly in service to our main subject (Stable Diffusion) and would be a major yak shave. Comparable in complexity to the original project.