A 27B ternary LLM at up to 284 tokens/s on one RTX 5090
A language model whose weights are only −1, 0 or +1, served through an OpenAI-compatible API on a single consumer GPU. The work is the engineering between model and silicon: custom Tensor Core kernels in CUDA C++ with CUTLASS/CuTe, a faster Hadamard transform, bounded prefill memory, and tuned speculative decoding inside vLLM.
Observed on short code probes with one active request; 246–284 tok/s across restarts. The model and the original plugin are upstream work; this project is the kernel optimization, integration and validation. Implementation not published yet.
| task | generated |
|---|---|
| Constraint solving, exact probability 1/26 | 6,076 |
| Circular strings, 1,038 rotation classes | 27,346 |
| All 16 weight counts, with proof | 41,073 |
| Four lengths: 272 of 272 values, with proof | 73,089 |