OpenTPU: a full open-source stack for running LLMs on an FPGA
Ships RTL, an ISA, a compiler and a bit-exact simulator, with int8 kernels for Qwen3-0.6B. The catch: it's a simulation-only prototype so far.

Copy markdown
The whole stack is in one repo
OpenTPU isn't just RTL—it ships a SystemVerilog design, a documented ISA, a kernel-language compiler called 'ol', a bit-exact simulator, and host tooling for diagnostics and profiling, all Apache 2.0. You can read every layer from the matmul array up to the Python host.
It targets a cheap secondhand FPGA, not a GPU
The design maps to a Xilinx Kintex-7 (xc7k480t) on a PCIe card with two DDR3 channels—the kind of board you can find used, not a datacenter accelerator. int8 decode is projected at ~15 tok/s for Qwen3-0.6B and ~42 tok/s for Liquid's LFM2.5-230M at 100 MHz.
The catch: it's simulation-only
No bitstream has been built or validated on silicon yet. Those throughput figures are cycle-accurate projections from the simulator, not measured numbers—so treat this as a reference design and teaching tool, not a plug-in inference appliance.
An LLM agent helped tune the hardware
Part of the RTL was optimized by 'tourney', an automated hill-climb that uses LLM agents to propose microarchitecture changes. A small but concrete case of agents editing hardware-description code, not just application software.
What you can build this weekend
If you've wanted to see how an LLM actually executes on hardware, this is a complete, minimal, readable path: step the simulator through Qwen3-0.6B, or write a new kernel in 'ol' to support a model it doesn't handle yet. A rare end-to-end view from attention math down to the ISA.