Back to articles

Ternix-9B explores ternary language models for CPU inference

2 min read

Introduction

For large language models on laptops and other edge devices, fitting a model into memory is only part of the problem. CPUs must also generate tokens at a useful rate, often without help from a dedicated GPU or NPU. Ternix introduces Ternix-9B as an attempt to address both model representation and execution. The paper reports a 2.53 GB CPU execution weight file and decoding rates of tens of tokens per second on two tested processors.

How it works

Ternix-9B is trained through online distillation from Qwen3.5-9B. The method jointly learns ternary connections and group- and source-level scales shared across text parameters. Rather than treating low-bit compression only as a post-training conversion, the approach makes the connection representation and its scaling part of the learning process. The supplied summary, however, does not specify all training settings or the detailed allocation of parameters.

The runtime is designed around CPU execution. It uses a compact 1.67-bit encoding for connections, SIMD table-lookup computation, and parallel scheduling that accounts for dependencies. This makes the work about more than reducing model size: it also addresses how the compressed representation can be executed efficiently on general-purpose processors.

Results and implications

The evaluation covers seven full benchmarks and nine x86 and ARM CPUs. Ternix-9B achieves a mean score of 50.16%, reported as 76.9% of the BF16 teacher’s average. For decoding, the paper reports 32.19 tokens per second on an Intel Core Ultra 5 laptop and 51.85 tokens per second on Apple M6. These results suggest that a low-bit model can offer practical generation speeds on some CPUs while retaining a portion of the teacher’s benchmark performance. They do not establish that the same performance will hold across all devices or workloads; the provided summary also does not name the benchmarks or list individual scores.

The broader contribution is to treat compression and hardware execution as a joint deployment problem. That is relevant for devices without discrete accelerators, but whether the approach is suitable for a particular application still depends on its quality requirements, processor, and workload. Further comparisons on the same hardware would help clarify how Ternix fares against other low-bit approaches in speed, memory use, energy consumption, and output quality.

Hugging Face Daily Papers

Comments

Checking sign-in status...

Loading comments...

Related articles

CCTest · Blog
Tencent Open-Sources DFly2 for Speculative Decoding in Sparse Models
Inference & Serving
cctest.ai

Tencent Open-Sources DFly2 for Speculative Decoding in Sparse Models

Tencent’s Hunyuan team has released DFly2’s weights, training code, and technical report for speeding up sparse-model inference. The team reports notable gains in selected tests, though the published post does not provide enough setup details to establish how broadly they apply.

Read more