Ternix: Learning and Deploying Ternary Language Models with Shared Scaling
Abstract
Demand for running large language models (LLMs) on edge devices has continued to grow recently. CPU-centric deployment extends on-device intelligence to hardware without dedicated GPUs, as CPUs are the most ubiquitous processors across these systems. We present Ternix-9B, which jointly learns ternary connections and shared group and source scales across all text parameters through online distillation from Qwen3.5-9B. To improve CPU inference efficiency, we combine compact weight encoding, table-lookup computation, and parallel scheduling. Evaluations across seven full benchmarks and nine x86 and ARM CPUs show that Ternix-9B achieves a 50.16% mean score (76.9% of the BF16 teacher) with a 2.53 GB CPU execution weight file, while decoding at 32.19 tokens/s on an Intel Core Ultra 5 laptop and 51.85 tokens/s on Apple M6.
Community
Introducing Ternix-9B, a ternary language model designed for efficient on-device CPU inference.
- 2.53 GB CPU execution weights for a 9B language model.
- 51.85 tokens/s on Apple M6.
- 32.19 tokens/s on an Intel Core Ultra 5 laptop.
- 76.9% of the BF16 teacher's average benchmark score.
- Evaluated across 7 full benchmarks and 9 x86/ARM CPUs.
Ternix jointly learns ternary connections and shared group/source scales through online distillation. Our CPU runtime combines compact 1.67-bit connection encoding, SIMD table lookup, and dependency-aware parallel scheduling.
We aim to make capable language models practical on everyday devices without dedicated GPUs or NPUs.
Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper
