🏆 2026 Sparse Operator Acceleration & Race (SOAR) is Now Live!
"The MiniCPM-SALA architecture is just the beginning. Realizing its full potential requires deep system-level synergy and cross-layer compilation optimization."
In collaboration with SGLang and NVIDIA, OpenBMB invites global geeks to push the boundaries of 9B-scale, 1M-token inference on NVIDIA 6000D.
💰 Prize Pool: >$100,000 USD (🥇 Top Prize: $89,000) | 🚀 Challenge: Single & Multi-batch Optimization
[2026.02.11] MiniCPM-SALA is released! This is the first large-scale hybrid model effectively integrating sparse and linear attention for million-token context modeling. You can find technical report here.🔥🔥🔥
Highlights
MiniCPM-SALA (Sparse Attention and Linear Attention) is the first large-scale hybrid model effectively integrating sparse and linear attention for million-token context modeling
✅ Innovative Hybrid Architecture: Synergizes 25% Sparse Attention (InfLLM-v2) for high-fidelity long context modeling with 75% Linear Attention (Lightning Attention) for global efficiency.
✅ Shattering Efficiency Walls: Breaks the "Compute Wall" and the "Memory Wall," achieving 3.5× inference speed and significantly lower KV-cache overhead compared to dense baselines.
✅ Million-Token Context: Empowered by HyPE (Hybrid Positional Embedding), it scales to 1M+ tokens while maintaining strong length generalization.
✅ HALO Adaptation: Utilizes Hybrid Attention via Layer Optimization (HALO), a novel distillation recipe that effectively transfers dense attention capabilities to the hybrid architecture, avoiding the severe performance degradation typical of pure linear models.
Introduction
MiniCPM-SALA is an efficient hybrid model in which 25% of the layers adopt InfLLM-V2 and the remaining 75% utilize Lightning Attention. This architecture enables inference of one million tokens on consumer GPUs such as the NVIDIA RTX 5090.
SALA Hybrid Attention Mechanism
Integrates 25% InfLLM-V2 and 75% Lightning Attention, effectively leveraging the granular focus of sparse attention for local details and the high efficiency of linear attention for broad context.
Transformer-to-Hybrid Continue Training
Circumvents the inefficiencies of cold-start training by performing an architectural transformation on the pre-trained weights, thereby reducing the total training budget to approximately 25% relative to training a comparable model from scratch.
Harmonizes the performance across both short and long contexts, which can maintain general capabilities (e.g., knowledge, mathematics, and coding) comparable to modern full-attention models like Qwen3-8B and achieve substantial advantages across multiple long-context benchmarks.
Efficient Inference on Long Sequences
Achieves up to 3.5x the inference speed of Qwen3-8B at a sequence length of 256K tokens on A6000D, supports inference at context lengths of up to 1M tokens on both NVIDIA A6000D and 5090 GPUs, whereas Qwen3-8B fails at this length due to out-of-memory (OOM) errors.
Inference
To achieve optimal performance, we recommend using Temperature=0.9.
HuggingFace
Our model is readily compatible with 🤗 Hugging Face transformers. You can perform inference with our model as follows:
python
1import torch
2from transformers import AutoModelForCausalLM, AutoTokenizer
34model_path ="openbmb/MiniCPM-SALA"5tokenizer = AutoTokenizer.from_pretrained(model_path)6model = AutoModelForCausalLM.from_pretrained(model_path, trust_remote_code=True, device_map="auto")7model.eval()89prompts =["My name is","The capital of China is"]10with torch.no_grad():11 inputs = tokenizer(prompts, return_tensors="pt").to(model.device)12 outputs = model.generate(**inputs)13output_texts = tokenizer.batch_decode(outputs)14print(output_texts)
SGLang
Requirements
CUDA 12.x or higher
gcc / g++ compiler
uv package manager (script will check)
Installation
bash
1# Clone repository2git clone -b minicpm_sala https://github.com/OpenBMB/sglang.git
3cd sglang
45# One-click installation (creates venv and compiles all dependencies)6bash install_minicpm_sala.sh
78# Or specify PyPI mirror9bash install_minicpm_sala.sh https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
The installation script performs the following steps: