Hi everyone — I’m the author of openTPU, an Apache-2.0 AI accelerator that runs language models on a Kintex-7 PCIe FPGA card.
I wanted to share the inference and reproducibility side of the project here. The repository includes the hardware RTL, ISA, bit-exact simulator, compiler, profiler, and host software, so you can follow a model from its weights and kernels down to the accelerator instructions.
Physical-card results: with 4-bit weights and an int8 LM head, LFM2.5-230M reaches 82.1 tokens/s and Qwen3-0.6B 30.7 tokens/s, including host overhead. The protocol generates 64 greedy decode tokens after a 512-token prompt. The card is an Inspur YPCB-00338 with a Kintex-7 xc7k480t and 4 GiB of DDR3; the README lists the bitstreams, measurement method, and results for other models.
The 4-bit format uses FP4 values with two-level block scales, about 4.25 bits per weight. Quantization changes accuracy, so the quantization notes include measured perplexity tradeoffs. The board checks compare against the project’s simulator; that is distinct from matching a Hugging Face reference for every model and prompt.
You can try the simulator without an FPGA:
After cloning the repo:
pip install -e .
pip install pytest torch transformers
hf download LiquidAI/LFM2.5-230M --local-dir models/LFM2.5-230M
otpu-chat --model lfm2 --backend isa
The README includes a live FPGA chat demo. I’d welcome feedback on model coverage, numerical validation, and useful evaluation workloads. Contributions around model kernels and quantization are especially welcome.