Model reference · open weights

MiniCPM-SALA

LLMs openbmb Text gen 1 build Open weights 26k dl/mo

MiniCPM-SALA is an open-weight language model from openbmb. MiniCPM-SALA (BF16) weighs 19.0 GB; the smallest configuration that runs it is 2× RTX 3060 12 GB.

  • MiniCPM-SALA is a 9.5B parameter text-generation model developed by openbmb that integrates sparse and linear attention mechanisms for efficient long-context modeling.
  • It supports a context length of 524,288 tokens and operates in Chinese and English.
  • The model is released under the Apache-2.0 license.

Summary of the openbmb/MiniCPM-SALA model card, 2026-10-01

What it is

Released byopenbmb
Released2026-02-11
Parameters9.5B
VRAM19.0 GB for the weights

What it runs on

Memory and cards for MiniCPM-SALA (BF16)

19.0 GBweights, file size
33 MBcache per 1K tokens
706 MBruntime overhead, at least
524,288 tokenscontext max
CardRequests at onceContext maxMemory
8K each32K each
RTX 3060 12 GB … RTX 4060 Ti 16 GB
2 smaller cards
———
RTX 3090 24 GB133111K23.4 GB
RTX 4090 24 GB133110K23.4 GB
RTX 5090 32 GB4210338K31.0 GB
L40S 48 GB9022all 512K44.0 GB
A100 80 GB21854all 512K78.2 GB
H100 80 GB20451all 512K78.1 GB
RTX PRO 6000 Blackwell 96 GB26365all 512K93.8 GB
DGX Spark (GB10) 128 GB unified31378all 512K107 GB
H200 141 GB427106all 512K138 GB
B200 180 GB566141all 512K176 GB
2× RTX 3060 12 GB
tensor parallel
10285K11.6 GB a card
2× RTX 4060 Ti 16 GB
tensor parallel
389311K15.4 GB a card
Memory needed at each load
Requests at once8K tokens each32K tokens each
119.9 GB20.7 GB
521.0 GB25.0 GB
821.8 GB28.3 GB
1624.0 GB36.8 GB
3228.3 GB54.0 GB
6436.8 GB88.4 GB

One card, with vLLM's small-card settings.

From the model card

What openbmb says about MiniCPM-SALA

Read the model card

👋 Contact us in Discord and WeChat

[!NOTE]

🏆 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
ParameterDescription
--trust-remote-codeAllow custom code in model
--disable-radix-cacheDisable RadixAttention prefix cache
--attention-backend minicpm_flashinferUse MiniCPM FlashInfer backend
--chunked-prefill-size 8192Chunked prefill size
--max-running-requests 32Max concurrent requests
--skip-server-warmupSkip server warmup
--port 31111Server por

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms