Vibecoding an inference chip
By hackernews · · Vibe Coding
Or rather, I vibe-coded an FPGA into running an LLM. And it… just worked.
One of the more entertaining things about programming recently is that coding agents let me work in entirely new domains by giving me access to new programming languages and paradigms. Lately, that has meant hacking on hardware, now that writing low-level software is much easier. So, in this blog post, I’m going to try to recount the experience of vibe coding an FPGA, going through a series of “oh shit” moments several times, and giving myself a new appreciation for what’s possible if you have a large token budget (thanks YC) and interesting problems to point the models at.
I overheard some founders recently talk about how FPGAs work. I’ll admit I was relatively naive about them. I’d never really experimented with them in my startup or in college, so I knew little about them before. The basic idea I was familiar with: you can program a circuit into a reprogrammable chip.
So rather than having a general purpose computing architecture (like a CPU) you can have a reprogrammable one, i.e. the configuration loaded onto the chip determines how its logic and routing are connected, and that (in theory) enables performance advantages. I also know that it took a mountain of C++ to write and involved manually analyzing waveforms for simulation and verification. I had never done this before though and it seemed cumbersome.
What Hacker News is saying
- “Does not say what type of model or size they were serving, but one of the traces mentions Maple, which is a 20b model.”
- “This is cool Next step is tuning your post training pipeline to optimize your model for your chosen FPGA architecture...”
- “Good chance I'm not the only one thinking this: share the code…”
- “I did something like this with Opus 4.5: https://github.com/cpldcpu/smollm.c It seems implementing transformers is the new "hello world" of AI assisted coding.”