openbmb / MiniCPM-SALA

huggingface.co
Total runs: 11.5K
24-hour runs: 0
7-day runs: 2.3K
30-day runs: 10.4K
Model's Last Updated: May 07 2026
text-generation

Introduction of MiniCPM-SALA

Model Details of MiniCPM-SALA

GitHub Repo | Technical Report | Join Us

👋 Contact us in Discord and WeChat

🏆 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

👉 Click Here to Join the Race @ soar.openbmb.cn

What's New
  • [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.
  • HyPE (Hybrid Positional Encoding)

    • 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:

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_path = "openbmb/MiniCPM-SALA"
tokenizer = AutoTokenizer.from_pretrained(model_path)
model = AutoModelForCausalLM.from_pretrained(model_path, trust_remote_code=True, device_map="auto")
model.eval()

prompts = ["My name is", "The capital of China is"]
with torch.no_grad():
    inputs = tokenizer(prompts, return_tensors="pt").to(model.device)
    outputs = model.generate(**inputs)
output_texts = tokenizer.batch_decode(outputs)
print(output_texts)
SGLang
Requirements
  • CUDA 12.x or higher
  • gcc / g++ compiler
  • uv package manager (script will check)
Installation
# Clone repository
git clone -b minicpm_sala https://github.com/OpenBMB/sglang.git
cd sglang

# One-click installation (creates venv and compiles all dependencies)
bash install_minicpm_sala.sh

# Or specify PyPI mirror
bash install_minicpm_sala.sh https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple

The installation script performs the following steps:

  1. Creates sglang_minicpm_sala_env virtual environment (Python 3.12)
  2. Clones dependencies to 3rdparty/ (infllmv2) and initializes submodules (sparse_kernel)
  3. Installs MiniCPM-SALA (current repo)
  4. Compiles and installs infllmv2_cuda_impl
  5. Compiles and installs sparse_kernel
  6. Installs tilelang & flash-linear-attention
Usage
# Activate environment
source sglang_minicpm_sala_env/bin/activate

# Launch Inference Server (Replace MODEL_PATH with actual path)
MODEL_PATH=/path/to/your/MiniCPM-SALA

python3 -m sglang.launch_server \
    --model ${MODEL_PATH} \
    --trust-remote-code \
    --disable-radix-cache \
    --attention-backend minicpm_flashinfer \
    --chunked-prefill-size 8192 \
    --max-running-requests 32 \
    --skip-server-warmup \
    --port 31111 \
    --dense-as-sparse
Parameter Description
--trust-remote-code Allow custom code in model
--disable-radix-cache Disable RadixAttention prefix cache
--attention-backend minicpm_flashinfer Use MiniCPM FlashInfer backend
--chunked-prefill-size 8192 Chunked prefill size
--max-running-requests 32 Max concurrent requests
--skip-server-warmup Skip server warmup
--port 31111 Server port
--dense-as-sparse Use dense-as-sparse mode
Manual Installation

If the script doesn't work for you, follow these steps:

# 0. Ensure uv is installed
pip install uv

# 1. Create venv
uv venv --python 3.12 sglang_minicpm_sala_env
source sglang_minicpm_sala_env/bin/activate

# 2. Install SGLang
uv pip install --upgrade pip setuptools wheel
uv pip install -e ./python[all]

# 3. Compile CUDA Extensions
# (Ensure dependencies are cloned to 3rdparty/)
cd 3rdparty/infllmv2_cuda_impl && python setup.py install && cd ../..
cd 3rdparty/sparse_kernel && python setup.py install && cd ../..

# 4. Install extra deps
uv pip install tilelang flash-linear-attention
Q&A

Q: CUDA extension compilation failed?

  • Ensure CUDA 12+ is installed ( nvcc --version ).
  • Ensure gcc / g++ are available.
  • If CXX is set to clang++ -pthread , manually export CXX=g++ .
Evaluation Results
Efficiency Evaluation

inference_speed_a6000d

inference_speed_5090

Long-Context Evaluation

long_text_evaluation

Ultra-long Context Evaluation

ultra_long_text_evaluation

Standard Evaluation

benchmark

Statement
  • As a language model, MiniCPM-SALA generates content by learning from a vast amount of text.
  • However, it does not possess the ability to comprehend or express personal opinions or value judgments.
  • Any content generated by MiniCPM-SALA does not represent the viewpoints or positions of the model developers.
  • Therefore, when using content generated by MiniCPM-SALA, users should take full responsibility for evaluating and verifying it on their own.
LICENSE
  • This repository and MiniCPM models are released under the Apache-2.0 License.
Citation
  • Please cite our paper if you find our work valuable.
@article{minicpm4,
  title={{MiniCPM-SALA}: Hybridizing Sparse and Linear Attention for Efficient Long-Context Modeling},
  author={MiniCPM Team},
  year={2026}
}

Runs of openbmb MiniCPM-SALA on huggingface.co

11.5K
Total runs
0
24-hour runs
171
3-day runs
2.3K
7-day runs
10.4K
30-day runs

More Information About MiniCPM-SALA huggingface.co Model

More MiniCPM-SALA license Visit here:

https://choosealicense.com/licenses/apache-2.0

MiniCPM-SALA huggingface.co

MiniCPM-SALA huggingface.co is an AI model on huggingface.co that provides MiniCPM-SALA's model effect (), which can be used instantly with this openbmb MiniCPM-SALA model. huggingface.co supports a free trial of the MiniCPM-SALA model, and also provides paid use of the MiniCPM-SALA. Support call MiniCPM-SALA model through api, including Node.js, Python, http.

MiniCPM-SALA huggingface.co Url

https://huggingface.co/openbmb/MiniCPM-SALA

openbmb MiniCPM-SALA online free

MiniCPM-SALA huggingface.co is an online trial and call api platform, which integrates MiniCPM-SALA's modeling effects, including api services, and provides a free online trial of MiniCPM-SALA, you can try MiniCPM-SALA online for free by clicking the link below.

openbmb MiniCPM-SALA online free url in huggingface.co:

https://huggingface.co/openbmb/MiniCPM-SALA

MiniCPM-SALA install

MiniCPM-SALA is an open source model from GitHub that offers a free installation service, and any user can find MiniCPM-SALA on GitHub to install. At the same time, huggingface.co provides the effect of MiniCPM-SALA install, users can directly use MiniCPM-SALA installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

MiniCPM-SALA install url in huggingface.co:

https://huggingface.co/openbmb/MiniCPM-SALA

Url of MiniCPM-SALA

MiniCPM-SALA huggingface.co Url

Provider of MiniCPM-SALA huggingface.co

openbmb
ORGANIZATIONS

Other API from openbmb

huggingface.co

Total runs: 200.2K
Run Growth: 91.4K
Growth Rate: 45.63%
Updated:October 05 2025
huggingface.co

Total runs: 134.8K
Run Growth: -3.0K
Growth Rate: -2.19%
Updated:March 10 2026
huggingface.co

Total runs: 117.8K
Run Growth: 4.9K
Growth Rate: 4.17%
Updated:September 15 2025
huggingface.co

Total runs: 112.2K
Run Growth: 89.6K
Growth Rate: 79.87%
Updated:May 10 2026
huggingface.co

Total runs: 106.9K
Run Growth: -45.2K
Growth Rate: -42.32%
Updated:June 13 2025
huggingface.co

Total runs: 25.5K
Run Growth: 411
Growth Rate: 1.61%
Updated:October 24 2025
huggingface.co

Total runs: 20.0K
Run Growth: 1.8K
Growth Rate: 8.78%
Updated:October 24 2025
huggingface.co

Total runs: 19.9K
Run Growth: 406
Growth Rate: 2.04%
Updated:January 15 2025
huggingface.co

Total runs: 8.9K
Run Growth: -3.7K
Growth Rate: -41.23%
Updated:June 02 2023
huggingface.co

Total runs: 7.7K
Run Growth: -4.1K
Growth Rate: -52.99%
Updated:February 27 2025
huggingface.co

Total runs: 6.5K
Run Growth: 523
Growth Rate: 8.06%
Updated:January 14 2026
huggingface.co

Total runs: 5.4K
Run Growth: 5.4K
Growth Rate: 99.14%
Updated:June 10 2025
huggingface.co

Total runs: 5.2K
Run Growth: 3.7K
Growth Rate: 70.38%
Updated:October 20 2025
huggingface.co

Total runs: 4.8K
Run Growth: 2.7K
Growth Rate: 56.92%
Updated:November 04 2024
huggingface.co

Total runs: 3.0K
Run Growth: -6.6K
Growth Rate: -223.09%
Updated:September 09 2026
huggingface.co

Total runs: 1.4K
Run Growth: 79
Growth Rate: 5.80%
Updated:January 15 2025
huggingface.co

Total runs: 1.0K
Run Growth: 153
Growth Rate: 14.93%
Updated:September 19 2025
huggingface.co

Total runs: 891
Run Growth: 76
Growth Rate: 8.53%
Updated:June 27 2023
huggingface.co

Total runs: 847
Run Growth: 48
Growth Rate: 5.67%
Updated:August 24 2023
huggingface.co

Total runs: 827
Run Growth: 546
Growth Rate: 61.83%
Updated:May 14 2024
huggingface.co

Total runs: 436
Run Growth: 372
Growth Rate: 85.32%
Updated:February 12 2026
huggingface.co

Total runs: 416
Run Growth: -75
Growth Rate: -18.03%
Updated:October 14 2023
huggingface.co

Total runs: 306
Run Growth: 162
Growth Rate: 52.94%
Updated:February 21 2024
huggingface.co

Total runs: 297
Run Growth: 168
Growth Rate: 56.57%
Updated:February 21 2024
huggingface.co

Total runs: 248
Run Growth: 122
Growth Rate: 49.19%
Updated:February 21 2024
huggingface.co

Total runs: 245
Run Growth: -76
Growth Rate: -31.15%
Updated:June 14 2025
huggingface.co

Total runs: 225
Run Growth: 46
Growth Rate: 20.44%
Updated:February 21 2024