Skip to content
AI Learning Ground Start learning

News ·

OpenTPU – An open-source AI accelerator, developed by AI

openTPU is an open-source AI accelerator designed largely by AI agents, with RTL, ISA, simulator, compiler and profiler in one repo, running models like Qwen3.5 and Gemma 4 on a Kintex-7 PCIe FPGA card bit-exactly against its simulator.

An open-source AI accelerator, developed by AI: RTL, ISA, simulator, compiler and profiler in one repo. Runs Qwen3, LFM2.5 and Qwen3.5 on a Kintex-7 PCIe card. - FeSens/openTPU
Image: Hacker News

openTPU is an open-source AI accelerator whose hardware and software were developed by AI, exploring whether agents can design the chip that runs their own inference. The project ships everything in one readable monorepo: SystemVerilog hardware, an instruction set, a bit-exact simulator, a kernel language and compiler, and host software for a real PCIe card (an Inspur board with a Xilinx Kintex-7 xc7k480t and two DDR3 channels).

The design runs ten modern models with their real weights, producing the same tokens as the simulator, bit for bit. The current image runs at 133.33 MHz with a four-column systolic matrix unit, a stream engine, and LiteDRAM controllers calibrated by a small CPU inside the memory core in 12 seconds at startup. It reaches 91-94% of the 17.1 GB/s DDR3 peak. Measured decode speeds with streamed logits include LFM2-2.6B at 11.07 tok/s, SmolLM3-3B at 8.92, and Phi-4-mini at 6.69 on device. Models too large for the card's 4 GiB run via MoE expert streaming: LFM2.5-8B-A1B hit 10.6 tok/s with 98.5% of expert uses hitting on-card slots, while Qwen3.5-35B-A3B ran at 3.95 tok/s with 153 MB streamed per token. 4-bit weights (4.25 bits per weight with two-level block scales, int8 LM head) cut bytes per token by roughly a third and raise decode speed 40-45%.

For builders, openTPU is a rare end-to-end reference showing how an accelerator works from a Python matmul down to the wires, with a simulator you can verify against real hardware. It also demonstrates agent-driven hardware design producing a working, measurable FPGA accelerator, and shows practical techniques like weight quantization, expert offloading over PCIe, and host overheads kept to fractions of a millisecond per token.

References

Read the full story at Hacker News ↗Like, save or discuss on Buzz

#community #signals