Preview of diffusion.pdfOpen diffusion.alexvd.dev

diffusion.alexvd.dev

diffusion.pdf

A PDF file embedding a 55-million-parameter denoising diffusion image model that generates doodle images entirely within the PDF, without external API calls.

Visit project

Show me a random project

First shared
Aug 13, 2026
HN activity
50

Show HN@alexvdAug 13, 2026

Show HN: Diffusion PDF – A Diffusion Image Model Embedded Entirely in a PDF File

Hey Hacker News! I'm Alex, I'm 19 and I work at Hack Club! The last two weeks i've been messing around with pdfs. I made slop pdf (https://slop.alexvd.dev -- notice the similar website design), a pdf that generates random ai slop stories when you open it, and I was showing that off to one of my friends who suggested I get the LLM to actually work inside the pdf, without an API call to a relay. I laughed at the idea, but then we did some research together, and we managed to find EvanZhouDev's llm.pdf (https://github.com/EvanZhouDev/llm.pdf). Because it existed, I didn't want to waste my time or my tokens building something like it. So I pivoted, eventually deciding to make a diffusion image model work fully inside a pdf. I forked EvanZhouDev's llm.pdf repo, and eventually managed to get it working (with the help of claude). Here's the finished version. It took a while to train, but was worth it so i can show it to my future classmates (I'm an incoming freshman in college this year).

Community

Hacker News discussion

Loading the thread…