A Non-Hardware Founder Got an LLM Running on an FPGA for $10,000
Ankit Gupta says coding agents took an FPGA from a bit-exact baseline to 213 tokens per second, 33 times faster, on roughly $10,000 of tokens, with no Verilog experience.
On November 20, Ankit Gupta published an account of getting a language model running on an FPGA, a chip he says he had never worked with, using coding agents to write nearly all of the code. By his telling, he had not written serious C++ in about a decade and had never written Verilog. Over several days, a cloud agent took the system from a first full-model, bit-exact baseline of 6.43 tokens per second to 213.13, a 33.13x speedup. He says it wrote roughly 3 million lines of code across the experiment history, parsed 30 million lines of output, and ran hundreds of experiments for about $10,000 in Claude and OpenAI tokens.
What was actually built
An FPGA (field-programmable gate array) is a chip whose internal wiring can be reconfigured after manufacture. Instead of running instructions on a fixed general-purpose design like a CPU, you load a configuration that defines how its logic and routing connect, so the circuit can be shaped around one job. Gupta ran his on an AWS F2 instance with 16 GB of on-chip high-bandwidth memory (HBM).
The model was a ternary-weight architecture from the DeepGrove founders. Ternary means each weight takes one of three values, so it can be stored in 2 bits. That suits a memory-limited chip. The target was bit-exact output, meaning results had to match a reference implementation exactly, not approximately.
Why it was fast, and why it was hard
At batch size 1, generating one response for one user, speed is limited mostly by how quickly weights can be moved from memory, not by arithmetic. The hardware notes Gupta pasted into the session make this point: fetching weights costs more time and energy than the math. Packing weights at 2 bits moves eight times more per transfer than 16-bit.
The same notes describe a multiplier-free matrix engine, since multiplying by a ternary weight reduces to passing a value through, flipping its sign, or zeroing it. Hardware work is also hard to verify, because failures hide in timing and numerics. Gupta's chart shows the gains came in steps: a parallel router, a new pipeline, speculative decoding with a draft model, wider memory ports, weight packing, and a parallel head loader that added 17.3% in an on/off test. He also reports running one clock step lower after a soak test found random faults at 231.25 MHz.
What is new and what is not
Porting models to FPGAs is not new; Gupta notes existing GitHub attempts. What he says is new is a writeup of whether coding agents can handle the C++ and Verilog and the verification. He says they can.
He also tested how much human expertise mattered. A detailed design prompt from the DeepGrove founders made, in his words, little qualitative difference. The agent's own retrospective said its biggest design ideas were already in its plan, and that it rejected five numerics shortcuts because they would change output bits and violate the bit-exact rule. Gupta says he cannot prove those ideas would not have arrived without the notes. The founders told him they had tried this months earlier and the models were not good enough then.
Questions You Should Be Asking
- Is 213 tokens per second competitive with the same model on a GPU or Mac hardware, and at what cost per token? The post gives no such comparison.
- Was the $10,000 the whole cost? Does it include failed branches, cloud instance time, and the author's own hours?
- Gupta says the agent was bit-exact at the baseline. Was exactness preserved through all 14 optimizations, including speculation, and who audited that?
- The ternary model came from the DeepGrove founders, whom Gupta consulted. How much of the result depends on that architecture suiting this chip?
- The fault found at 231.25 MHz appeared only in a soak test. What other timing or reliability issues would a short demo miss?
What To Watch Next
The signal is replication. If someone else, with a different model and different hardware, reproduces a comparable speedup from a similar agent loop, the claim that agents lower the barrier to custom inference hardware holds. If results depend on this specific ternary model and a hand-picked setup, it remains a strong demo, not a method.
- 1Check whether any speedup claim is measured bit-exact against a reference, not just fast.
- 2Ask for cost per token, not tokens per second alone, when comparing chips.
- 3Run soak tests at your target clock before trusting a hardware benchmark.
Ready to implement AI in your business?
Our team builds the AI systems you just read about. Start with a free 30-minute discovery meeting.
