Home›Industry News›Ternary LLM Runs on KV260: Formal Proofs Reach the Token Level
← Back to Industry News
Open Source

Ternary LLM Runs on KV260: Formal Proofs Reach the Token Level

Open SourceTernary LLM Runs onKV260: Formal ProofsReach the Token Levelfpga.love
Illustration

Packing a ternary-weight LLM onto a Kria KV260 is nothing new; what is new is that every output token comes with a formal proof that the chosen token matches a full float32 computation. The open-source proven-ternary design carries proofs from the adders all the way to the language model output, while exposing the real bottleneck: DDR bandwidth.

Proof coverage extends to the output layer

The project takes a ternary neural network (weights of −1, 0, +1) from formally proven circuits to a complete model that generates text on the KV260. What is proven is the ternary arithmetic core and the hardwired design; the data-movement shell and the int8 output-layer engine are checked by simulation, post-route netlist simulation, and per-run auditing. The certificate covers only greedy decoding—it proves the highest-probability token—and does not cover sampling. This means there is a clear boundary between "every product is exact" and "every output token is certified"; the entire chain is not formally covered.

Board-level measurements for three models

On the KV260, Microsoft BitNet b1.58 2B4T (2.08B weights) reaches 13.2 token/s, versus 3.1 for bitnet.cpp on the same board; TII Falcon3-7B-Instruct-1.58bit (6.65B) reaches 4.6 token/s; OpenBMB BitCPM-CANN-8B (7.58B) reaches 5.1 token/s. The ARC-Challenge audit scores are 0.705, 0.456, and 0.832, respectively. The authors themselves note that the 1.58-bit conversion of Falcon3 answers far worse than the natively trained BitNet and BitCPM; model quality is each lab's own result.

RepoCoreQuick start
Illustration

The bottleneck is DDR, not logic

The board is memory-bandwidth-bound: most of the time per token is spent reading weights from DDR at about 13 GB/s, and the logic resources are far from saturated. The general-purpose ternary engine streams weights from DDR, with 4 engines and 5 trits per byte; the output layer runs on the int8 engine with a strict error bound. The same bitstream also runs the 7B and 8B models, with BitCPM using 16-bit activations split across two byte slots. The real issue is this: however elegant the proofs, throughput is still determined by memory access, and moving to a larger device will not automatically make it faster.

Three takeaways
  • Proofs cover only the ternary arithmetic core and hardwired design; the shell relies on simulation and auditing
  • On the KV260, BitNet 2B4T reaches 13.2 token/s, versus 3.1 for bitnet.cpp on the same board
  • The board is DDR-bandwidth-bound at about 13 GB/s, and logic resources are far from saturated

What it means for us

For engineers in China working on high-speed interfaces and board design, the direct value of this flow is not in the model itself but in the method: using Z3 for unit and contract proofs, implanting bugs for regression, and post-route netlist simulation to cover the unproven parts—this checking chain can be ported to your own FPGA projects. The toolchain is the free Vivado 2025.2 plus nextpnr, the device is xck26-sfvc784-2LV-c, and the KV260 runs Ubuntu 22.04 with CMA increased to 1600M, so the barrier to reproduction is low. But throughput is constrained by DDR bandwidth; to speed things up you have to start from the memory-access structure, not from swapping in more logic resources. Apart from two small BitNet slices, the model weights are not included in the repository and must be downloaded and verified by script.

ternary quantizationformal verificationKV260DDR bandwidth
fpga.love

Subscribe to fpga.love

Daily Briefing · Weekly Digest · Monthly Deep Dive