Show HN

Diffusion PDF

by @alexvd

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).

Discover more builders

Builderlust is an endless, joyful scroll of real projects people are shipping right now. Get the app to keep finding your next spark of inspiration.

📱 Coming soon to iOS & AndroidOpen in the app