Opt.Gear: On-Device Language Models Trained on 0.5T Tokens
Introducing the open-source Opt.Gear (270M/1B) on-device text generation models, designed from the outset for environments with limited SRAM, bandwidth, and power.
🤗 HUGGING FACE 🏠 OptAI ✉️ CONTACT
Opt.Gear is an open-source model family developed by OptAI. Rather than simply shrinking server-scale language models, it is designed for on-device text generation in environments constrained by SRAM, memory bandwidth, power, and latency: smartphones, laptops, robots, vehicles, and embedded boards. The 270M and 1B Dense models provide a 65,536-token Context Window. This release includes Supervised Fine-Tuning (SFT) weights and deployment binaries for ONNX, Qualcomm NPU, and Apple ANE.
This first article in the Opt.Gear series introduces Opt.Gear-270M and Opt.Gear-1B. The following articles cover the QAT model Opt.Gear-QAT and the ultra-small microcontroller model Opt.Gear-1M .
Key points
- Training efficiency: Trained on just 0.5T tokens curated from a 2T-token candidate corpus, without knowledge distillation. This is the most data-efficient training recipe among existing foundation models.
- Fast on-device inference: The new hybrid architecture achieves up to ×4.9 faster prefill and decoding on NPUs than comparable models.
- Efficient architecture: To reduce the KV-cache that grows with context length, we introduced a hybrid architecture incorporating the convolution-based ConvKV-Gated Mixer.
- On-device optimization: Designed around static linear, convolution, and element-wise operations that NPUs handle well, the models are optimized for efficient local execution on laptops, mobile devices, and edge boards.
Summary of Opt.Gear
Gear-1B balances quality and efficiency, while Gear-270M focuses on lower latency and smaller mobile and edge environments. Both share the same hybrid design and 64K context, supporting Korean-English bilingual text generation, summarization, and instruction following.
The models use a hybrid attention mechanism combining local sliding-window attention, global attention, and the convolution-based ConvKV-Gated Mixer. This design provides lightweight-model processing speed and low memory usage without sacrificing the performance needed for complex long-context tasks.
| Opt.Gear-1B | Opt.Gear-270M | |
|---|---|---|
| Hidden size | 1,152 | 640 |
| Decoder layers | 26 | 18 |
| FFN dimension | 6,912 | 2,048 |
| Query / KV heads | 4 / 1 | 4 / 1 |
| Head size | 256 | 256 |
| ConvKV kernel | 3 | 3 |
| Max sequence length | 65,536 | 65,536 |
| Tokenizer / Vocab size | KORMo / 125,184 | KORMo / 125,184 |
| FFN activation | GeGLU | GeGLU |
ConvKV-Gated Mixer: Why Is It Fast?
The bottleneck in on-device inference is often memory access rather than computation. Auto-regressive decoding reads and writes the KV-cache for every generated token. Once this state exceeds on-chip SRAM, external DRAM traffic becomes a major source of latency and power consumption.
Sliding-window attention only bounds the cache to a window of size W: a larger W still increases the live decoding state. ConvKV-Gated Mixer changes this pattern. Instead of a token window, it maintains only a convolution buffer with a fixed kernel size :
Most local attention layers are replaced with ConvKV-Gated Mixer, while a small number of global GQA layers route long-range information. With only static linear, convolution, and element-wise operations, and no softmax or matrix multiplication, the mixer maps readily to CPUs, GPUs, and NPUs. This is central to its NPU-friendly design.
Pre-trained & SFT
Running foundation-model ablation studies and training on tens of trillions of tokens requires substantial time and resources with 8 H200 GPUs. To train efficiently within a short time, the 1B and 270M models collected approximately 2T candidate tokens from English, Korean, mathematics, and general web sources, then used filtering, deduplication, and mixture rebalancing to select 0.5T tokens . The final training mix was approximately 92% English, 6% Korean, and 2% mathematics.
The training recipe has three stages:
- Pretraining : large-scale pretraining with a 4K context on the curated 0.5T tokens
- Long-Context Extension : two additional training stages on the prolong-data-64k corpus, using 10B tokens each in English and Korean, progressively extending the context from 4K → 32K → 64K
- Supervised Fine-Tuning (SFT): a two-stage design separating general instruction-following SFT from reasoning-oriented SFT for mathematical and analytical responses
The final checkpoints balance strong foundational capabilities with deeper contextual understanding and reasoning, demonstrating adaptability across downstream tasks.
Many recent small models rely on distillation from large teacher models. With 8xH200, however, online KD requires approximately 30 days for just 100B training tokens. Offline KD stores only approximately 6B tokens in 1TB with Top-K=32 logits. Training Gear without distillation keeps the recipe reproducible and allows architecture and data efficiency to be measured transparently.
Benchmark Performance
We evaluated the models on a broad collection of datasets and metrics covering text generation, using LM Evaluation Harness. The significance of Gear’s results lies in the combination of fewer training tokens, no distillation, and Korean performance rather than absolute superiority on every benchmark.
| Korean benchmarks | Opt.Gear-270M | SmolLM2-135M | Gemma3-270M |
|---|---|---|---|
| Trained Tokens | 0.5T | 2T | 6T |
| Distilled | ✗ | ✗ | ✓ |
| KMMLU | 30.0 | 29.1 | 28.0 |
| KoBEST | 51.9 | 48.7 | 50.0 |
| HAERAE | 21.5 | 18.9 | 20.4 |
| Korean benchmark | Opt.Gear-1B | Gemma-3-1B |
Llama-3.2-1B |
EXAONE4-1.2B |
LFM2.5-1.2B |
|---|---|---|---|---|---|
| Trained Tokens | 0.5T | 2T | 6T | 12T | 36T |
| KMMLU | 36.0 | 30.7 | 29.9 | 32.6 | 29.2 |
| KoBEST | 60.3 | 59.5 | 51.8 | 50.7 | 59.1 |
| CLIcK | 39.7 | 37.8 | 30.6 | 32.9 | 38.3 |
| HAERAE | 44.2 | 35.3 | 32.6 | 30.2 | 33.9 |
Language Model Evaluation Harness, one shared configuration, July 2026. Full tables — including the English suite and the 270M class — are on the benchmarks page.
What stands out is data efficiency . While baselines such as Gemma3, Llama3.2, and EXAONE4 use 2T~12T tokens and knowledge distillation, Gear-270M and Gear-1B achieve comparable or better performance with just 0.5T tokens and no distillation, particularly across Korean benchmarks including KMMLU, KoBEST, CLIcK, and HAERAE.
Inference Performance
To measure text generation speed in real edge environments, we benchmarked across processors (CPU/GPU/NPU) and runtimes (Qualcomm AI Engine Direct, llama.cpp, CoreML). The configuration uses W4A16 quantization with 16-bit embedding and LM head.
Qualcomm Snapdragon NPU
On the Snapdragon 8 Elite GEN5 NPU, Opt.Gear-1B achieved prefill 7,042 tokens/s, substantially ahead of Llama3.2-1B (4,481 tok/s) and Gemma3-1B (3,226 tok/s). This demonstrates server-class prompt throughput in a mobile environment.
| Model | Snapdragon 8 Elite GEN5 | Snapdragon 8 Elite |
|---|---|---|
| Opt.Gear-1B | 7042 / 86 | 5882 / 80 |
| Llama3.2-1B | 4481 / 65 | 3013 / 50 |
| Gemma3-1B | 3226 / 61 | 2724 / 51 |
| Qwen3-1.7B | 2466 / 41 | 1739 / 32 |
| EXAONE4.0-1.2B | 4386 / 57 | 3436 / 49 |
Apple iPhone (CoreML)
| Model | CPU | GPU | NPU | |
|---|---|---|---|---|
| iPhone 17 Pro: A19 Pro | ||||
| Opt.Gear-1B | 613 / 58 | 2050 / 98 | 3085 / 97 | |
| Llama3.2-1B | 362 / 41 | 1308 / 74 | 1073 / 34 | |
| Gemma3-1B | 544 / 45 | 1852 / 60 | 2380 / 90 | |
| EXAONE4.0-1.2B | 286 / 40 | 1192 / 66 | 590 / 20 | |
| iPhone 16 Pro: A18 Pro | ||||
| Opt.Gear-1B | 642 / 56 | 999 / 40 | 2589 / 80 | |
| Llama3.2-1B | 381 / 40 | 615 / 42 | 696 / 25 | |
| Gemma3-1B | 587 / 46 | 1010 / 34 | 1862 / 70 | |
| EXAONE4.0-1.2B | 254 / 33 | 379 / 34 | 319 / 15 | |
* ANE (Apple Neural Engine) is strongly affected by memory bottlenecks. Full-attention architectures Llama3.2 and EXAONE4.0 show substantial performance drops on the NPU, while Opt.Gear-1B records the best performance on both GPU (2,050 tok/s) and NPU (3,085 tok/s).
Build with Opt.Gear
Opt.Gear is available as open weights on Hugging Face and supports inference with Transformers, llama.cpp, ExecuTorch, and vLLM. Optimized execution binaries for Qualcomm Hexagon NPU and Apple ANE are also provided.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "OptAI/Opt.Gear-1B" # TODO: 실제 리포지토리 ID로 교체
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
messages = [{"role": "user", "content": "온디바이스 AI가 왜 중요한지 설명해줘."}]
inputs = tokenizer.apply_chat_template(messages, return_tensors="pt")
outputs = model.generate(inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
# llama.cpp — TODO: GGUF 파일명 확정 후 교체
llama-cli -m opt-gear-1b-q4.gguf -p "안녕하세요" -n 128
Base models output
<EOS> at the end of generation, while Instruction models output <EOT>. Fine-tuning examples must end with the same termination-token convention used by the target runtime. On-device inference with incorrect termination handling directly wastes decoding work and increases latency.
The llama.cpp NPU backend does not support assigning Sliding Window Attention patterns to hardware acceleration, substantially reducing prefill performance in that configuration. On Snapdragon NPUs, we recommend the QAIRT (Qualcomm AI Engine Direct) path.
Limitation and Future works
The limited 0.5T-token training budget also constrains Gear-270M and Gear-1B on complex reasoning and mathematics tasks. Beyond increasing the number of training tokens, future work will focus on improving capability gained per token through high-quality data selection, domain-aware mixture optimization, curriculum scheduling, and reasoning- and mathematics-focused data.
Summary
Opt.Gear shows that well-designed architectures and curated data can deliver meaningful on-device performance. Trained on 0.5T tokens without distillation, the 1B model outperforms comparable models trained on 2T~12T tokens across Korean benchmarks and achieves prefill speeds of up to 7,042 tok/s on Snapdragon NPUs. The next articles introduce Opt.Gear-QAT, covering quantization-aware training, and the ultra-small microcontroller model Opt.Gear-1M. We welcome community feedback and look forward to the edge applications built with Opt.Gear.
Citation
@misc{optgear2026,
title = {{Opt-Gear} Technical Report},
author = {{OptAI Gear Team}},
year = {2026},
url = {https://huggingface.co/OptAI}
}
Correspondence: contact@opt-ai.kr · Hugging Face: huggingface.co/OptAI
Gemma-3-1B
Llama-3.2-1B
EXAONE4-1.2B
LFM2.5-1.2B