Ternary language models keep each weight at −1, 0 or +1, so their matrix multiplications become additions. Here, three published ternary models up to eight billion weights write text on a small AMD Kria KV260 FPGA board. Their arithmetic circuits come from untrusted design sources, including a language model, and none is used until a formal proof accepts it. After every run, a PC recomputes all of the board's results from the models' original weights.
The ternary products run on four engines built around a proven adder core, which stream the weights from memory at five trits per byte. The board's ARM cores do the rest of each layer. The output layer runs on four more engines under a certificate, described below.
| Model | Ternary weights | Words / s | Products audited per run | ARC-Challenge |
|---|---|---|---|---|
| Microsoft BitNet b1.58 2B4T | 2.08 B | 13.2 | every one | 0.705 |
| bitnet.cpp, same board, same text | 3.1 | — | ||
| TII Falcon3-7B-Instruct-1.58bit | 6.65 B | 4.6 | 85.3 M, all exact | 0.456 |
| OpenBMB BitCPM-CANN-8B | 7.58 B | 5.1 | 139.9 M, all exact | 0.832 |
Greedy decoding on an AMD Kria KV260 (four Cortex-A53 cores, 4 GB DDR4). ARC-Challenge: all 1,172 test questions, multiple choice, scored with the engines' exact arithmetic. The training method matters more than the size: Falcon3's after-the-fact ternary conversion answers far worse than the two models trained as ternary.
A layered Z3 prover compares each arithmetic circuit with a trusted reference. The design candidates come from a DeepSeek design loop and from code generators; neither is trusted, and neither are the hints they give the prover.
Each run records what the FPGA computed. A PC recomputes every product from the model's published weights, and replays the ARM's floating-point work in a reference model, bit for bit.
The output layer runs on int8 engines. A rigorous error bound proves that each chosen word is exactly the one the full float32 computation would choose, so the speed-up costs no accuracy.
Every check also has a planted fault that it must catch: a wrong circuit with lying hints, a weight changed in memory during a run, one product off by one, an error bound made too small. A check that cannot fail checks nothing.
Hard-wired blocks of real BitNet weights, built by a generator and proven before use, swept upward in clock speed on the KV260. Each step is compared with a reference run. On the official Vivado score they are 4.0× (16 × 16) and 5.7× (64 × 64) better than a plain adder tree.
piternary is an independent research project by Valdas Klicmanas, aimed at AI hardware that is cheaper to run and can be trusted. Claude (Anthropic) wrote most of the code and the text of the report under the author's direction, and DeepSeek proposed circuit designs; the author chose the experiments, ran them, checked the results and edited the text. That is part of the experiment: nothing produced this way was accepted without a proof, a simulation against independently computed outputs, or an audit.
Everything is open: the prover, the generators, the FPGA engines, the board scripts and the audited run records, under the Apache-2.0 licence.