Ternix-9B Distills Qwen3.5-9B into a 2.53 GB Ternary CPU Model
Summary:The Ternix research team presents Ternix-9B, a 9B student distilled online from a BF16 Qwen3.5-9B teacher. It jointly learns ternary connections and shared group/source scales for all text parameters, then couples compact weight encoding, table-lookup computation, and parallel scheduling for CPU inference. Across seven full benchmarks and nine x86 and ARM CPUs, the paper reports a 2.53 GB execution-weight file, a 50.16% aggregate mean score equal to 76.9% of the teacher, and decoding speeds of 3
Core Result
Ternix-9B treats language-model compression and CPU execution as a single co-design problem. A 9B student is distilled online from Qwen3.5-9B while learning ternary connections across the text parameters. Shared scales restore representational magnitude, and compact encoding, table-lookup computation, and parallel scheduling provide a deployment path for processors without dedicated accelerators.
The paper reports a 2.53 GB execution-weight file and a 50.16% aggregate mean score across seven full benchmarks, retaining 76.9% of the BF16 teacher's score. Decoding reaches 32.19 tokens/s on an Intel Core Ultra 5 laptop and 51.85 tokens/s on Apple M6. This demonstrates that a 9B-class model can execute without a discrete GPU, but the 2.53 GB figure covers weights rather than total process memory.
Technical Mechanism: More Than One-Bit Quantization
1. Ternary connections with shared scales
A weight group can be abstracted as W_g ≈ s_g · T_g, where every element of T_g belongs to {-1, 0, +1} and s_g is a shared scale. A ternary state carries a theoretical lower bound of log₂3 = 1.585 bits per weight, compared with 16 bits for BF16. If all 9B parameters were packed losslessly as three-state values, the theoretical payload would be about 1.78 GB. The reported 2.53 GB file also accommodates scales, indexing, format overhead, and other runtime data, showing that metadata and execution requirements are not free after compression.
The paper describes shared group and source scales across all text parameters. Shared scales reduce metadata volume and simplify CPU kernels, but they also prevent individual weights from receiving equally fine-grained magnitude correction. That limitation can become visible on sensitive layers or long-tail tasks. The exact group size, scale axes, and any parameters excluded from the text-parameter scope still need to be verified against the full implementation.
2. Online distillation for capability retention
Ternary discretization restricts weights to a finite state space, making direct optimization difficult because the assignment operation is not naturally differentiable. Online distillation from Qwen3.5-9B guides both the ternary connections and the scales, allowing the compression process to follow teacher behavior instead of relying only on the language-model loss. Ternary training commonly requires a straight-through estimator or an equivalent discretization technique, but the supplied abstract does not identify the implementation, so the method name alone is insufficient for reproduction.
Online distillation also means that the teacher must remain available during training. Deployment becomes cheaper after compression, but training does not inherit the same cost reduction. The teacher defines an upper bound that the student can approach only insofar as ternary connections and shared scales can represent it.
3. A CPU-oriented execution chain
Compact encoding reduces the volume of weight data read from memory. Table-lookup computation turns sign selection and partial summation in a ternary matrix product into lookups and accumulations, while parallel scheduling distributes independent groups or matrix rows across CPU cores. At an abstract level, a linear layer can be written as y_g = s_g · Σ_i(T_gi · x_i), reducing multiplication by ternary coefficients to addition, subtraction, or indexed selection. The actual lookup granularity and fusion strategy determine whether this abstraction produces useful acceleration.
CPU decoding is commonly constrained by memory bandwidth and cache locality. Reducing multiplication count therefore does not automatically reduce latency. The ternary format must actually lower DRAM traffic, lookup operations must not introduce excessive random access, and the scheduler must avoid serializing work around a single bottleneck thread before the design translates into end-to-end throughput.
Engineering Trade-offs
- Quality versus compression: Retaining 76.9% of the teacher's aggregate score represents an approximately 23.1% relative loss, not a uniform 23.1-percentage-point decline on every task. Aggregate scores can conceal uneven regressions in coding, mathematics, long-chain reasoning, and safety alignment.
- Weight size versus runtime memory: A 2.53 GB weight file does not mean the application needs only 2.53 GB of RAM. Runtime buffers, operator workspaces, temporary tensors, and context-dependent KV Cache must also be counted; KV Cache may dominate long-context or multi-session workloads.
- Shared scales versus expressiveness: Coarser group and source scales simplify metadata management and kernel design, but reduce the model's ability to correct magnitude errors locally. The benefit is deployability, while the cost is representational capacity.
- Single-stream speed versus service throughput: The reported 32.19 and 51.85 tokens/s are decoding rates, not concurrent-service throughput. A lookup kernel may scale better under batching, or it may remain constrained by memory bandwidth and synchronization overhead.
- CPU versus GPU economics: The approach fits offline, privacy-sensitive, accelerator-free, and large-fleet deployments. For high concurrency, strict tail-latency targets, or long contexts, GPUs and established 4-bit or 8-bit runtimes may still offer better total cost.
Reported Performance and Evidence Limits
| Metric | Paper report | Engineering interpretation | |---|---:|---| | Execution-weight file | 2.53 GB | Roughly one-seventh of the nominal 18 GB BF16 size for 9B parameters, but not total runtime memory | | Evaluation scope | 7 full benchmarks, 9 x86/ARM CPUs | Broad architecture coverage is valuable, but device settings and variance are absent from the supplied summary | | Aggregate mean score | 50.16% | Should not be interpreted as universal accuracy across all tasks | | Teacher retention | 76.9% | Significant capability compression, but also an approximately 23.1% relative aggregate loss | | Intel Core Ultra 5 laptop | 32.19 tokens/s | Useful single-stream reference, although thread count and power limits are undisclosed | | Apple M6 | 51.85 tokens/s | Strong unified-memory result, but not a controlled cross-chip speedup factor |
The supplied material does not provide per-benchmark scores, variance, prompt templates, decoding settings, batch sizes, thread counts, prefill latency, or p95 tail latency. The two processor results also come from different hardware environments, so dividing one speed by the other cannot establish a fixed architectural advantage. The numbers are author-reported measurements; independent reproduction remains necessary before judging production readiness.
Practical Deployment Guidance
- Match the task's tolerance for quality loss: Offline summarization, classification, document extraction, and lightweight assistants are reasonable initial candidates. Complex code generation, strict mathematical reasoning, and high-stakes decisions require task-level regression testing rather than reliance on the aggregate retention rate.
- Use a controlled comparison: Compare the BF16 teacher, 4-bit, and 8-bit alternatives under identical prompts, context lengths, sampling settings, thread counts, and batch sizes. Record TTFT, TPOT, p50/p95 latency, sustained throughput, peak RSS, and energy consumption.
- Budget KV Cache separately: Calculate KV Cache requirements for the intended context and concurrency before treating the 2.53 GB weight file as the deployment footprint. Fast loading with short prompts says little about long-session behavior.
- Validate the software stack: Confirm that weights, source code, runtime kernels, and licensing are available and compatible. Check that ternary packing, scale restoration, lookup computation, and multithread scheduling use a consistent numerical configuration.
- Test sustained rather than peak operation: Laptop and mobile CPUs are sensitive to thermal throttling and background activity. Production evaluation should include long-running loops, cold starts, warm-cache runs, and explicit power-policy conditions.
Ternix-9B's main contribution is the integration of ternary model learning, shared-scale design, and CPU-oriented execution into one research framework. It shows a credible route toward low-bit LLMs on devices without GPUs, but its path from a paper prototype to a general-purpose edge infrastructure depends on per-task quality, reproducible software, KV Cache control, and tail latency under real concurrency.
— END —Source: Hugging Face Daily Papers (2026-11-26)
Tags: #Ternix-9B #Ternary Weights #Online Distillation #CPU Inference #On-device Deployment
Editorial & Fact-Checking Note: This article is compiled from primary research, official release documentation, and source papers by the ZICQ Newsroom pipeline with automated entity verification and human editorial review. If you notice any technical inaccuracy, please submit a correction via our corrections policy or email our editorial desk directly.
Community Comments