From: openbmb <huggingface.co/openbmb>Newsgroups: alt.freeweights.minicpmSubject:

MiniCPM-SALA

Date: 2026-11-14Commit: 9180fe1Signed: 2DC28CC7B26A283B ✓

Text generation model with 9.5B parameters. Safetensors weights, 19.0 GB in all. Published by openbmb under Apache-2.0.

9.5B params19.0GBMiniCPM-SALAsafetensorspermissive
FactsParams9.5BSize19.0 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get openbmb/MiniCPM-SALA
# manifest sha256 2263a168d94c… · 19.0 GB · 15 files
$ fw verify ./MiniCPM-SALA openbmb/MiniCPM-SALA
From sourceHosted (signed)openbmb/MiniCPM-SALALast check: 2026-11-14 21:25 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Overview

Size
19.0 GB
Weights
19.0 GB (safetensors)
Parameters
9.5B
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
15, each with a sha256
Publisher
openbmb
Added
2026-11-14
Section
alt.freeweights.minicpm
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commitโ†’You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-14 21:25 UTCpassed

Model card

From the publisher at commit 9180fe1. Shown as plain text with links; images open at the publisher.

Image: image

GitHub Repo | Technical Report | Join Us

๐Ÿ‘‹ 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 port
--dense-as-sparseUse 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#

Image: inference_speed_a6000d

Image: inference_speed_5090

Long-Context Evaluation#

Image: long_text_evaluation

Ultra-long Context Evaluation#

Image: ultra_long_text_evaluation

Standard Evaluation#

Image: 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}
}

Files

15 files ยท 19.0 GBWeights 19.0 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 15 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md9.40 KB1011dc15ae0051403227e7feeaeba79f9635028549cdb105f79718e6551a1b0d
config.json2.40 KBcd6d042c4d8d5e32f7809c366d209bb183704bc2917bec5f162f36fb7439955c
configuration_minicpm_sala.py11.8 KB0bd0668a2c771911c6cc5bf64481a28b23a56aa63dbb60cbc9c75031b6b2cae2
generation_config.json153 B43b983b5c0d531f0955a4ac30259feb424adb67a0193419957b46dc175fabcb0
model-00001-of-00004.safetensors4.97 GBc78212b9421a7f674a0cbce97cd584884f275f381d576973bc0e6dad33a1b31f
model-00002-of-00004.safetensors4.87 GB1e93182ef3c7715d3659d297839f2340df869770e6a494f7fc8cce1fdef1eeed
model-00003-of-00004.safetensors4.87 GB7c9a8cc00265c89b922b3d3020925b0b39cd0ca99ed9dcd951aea6e52f491286
model-00004-of-00004.safetensors4.24 GBa34680df5ba413ff78e1b1faa5c3e4b83a18c07fd54b71fc51cbcb1ec0d995ea
model.safetensors.index.json32.6 KB1ebcdab945038e00c1149d3d30e68855af80c4d3a3bb49d1ee5ae9ed5fcc00bb
modeling_minicpm_sala.py132 KBb6060c08cfd45868f0e90726e48292689b15f01bf9828cf07f6257530477719c
special_tokens_map.json3.50 KBddea9320bf580e177483618f0baacadb4365c9bcd26a6a793d8b6ca2534932c8
tokenizer.json3.68 MBf6c51b273a33a35eab2af6d9ee20f047f81ba911ef0f8305b19c83aeb0940918
tokenizer.model1.18 MBbb74d51116831c3bf65db812c553f94ab0c88dcf97a5bbb37e3504f6d359c530
tokenizer_config.json14.3 KB381178d4203cf5c2cbe27e5c56e217ba915873a95ca3df5dba8e29068e596ed9
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
9180fe1db7 pinned now manifest updated, same commit2026-11-14 21:25 UTC15 files ยท 19.0 GB
9180fe1db72026-11-14 21:25 UTC15 files ยท 19.0 GB

Use it

$ fw get openbmb/MiniCPM-SALA
# manifest sha256 2263a168d94c… · 19.0 GB · 15 files
$ fw verify ./MiniCPM-SALA openbmb/MiniCPM-SALA
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/openbmb/MiniCPM-SALA.json --dir ./MiniCPM-SALA $ python3 fw.py verify ./MiniCPM-SALA ./openbmb__MiniCPM-SALA.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download openbmb/MiniCPM-SALA --revision 9180fe1db74f71fb81bc7105efe88f6b19c959b0 --local-dir ./MiniCPM-SALA
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("openbmb/MiniCPM-SALA", revision="9180fe1db74f71fb81bc7105efe88f6b19c959b0") model = AutoModelForCausalLM.from_pretrained("openbmb/MiniCPM-SALA", revision="9180fe1db74f71fb81bc7105efe88f6b19c959b0", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve openbmb/MiniCPM-SALA --revision 9180fe1db74f71fb81bc7105efe88f6b19c959b0

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-14
Text in
README.md
Text sha256
1011dc15ae0051403227e7feeaeba79f9635028549cdb105f79718e6551a1b0d
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: openbmb <huggingface.co/openbmb>Newsgroups: alt.freeweights.minicpmSubject: MiniCPM-SALADate: 2026-11-14Commit: 9180fe1Signed: 2DC28CC7B26A283B ✓
Upstream
openbmb/MiniCPM-SALA
Pinned commit
9180fe1db74f71fb81bc7105efe88f6b19c959b0
Manifest
MiniCPM-SALA.json ยท .minisig
Manifest sha256
2263a168d94c135114578ce8ca12f8d227cab567a5ba9b4e5cff929ed7247d87
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-14 21:25 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/openbmb/MiniCPM-SALA.json $ curl -O https://freeweights.allternit.com/manifests/openbmb/MiniCPM-SALA.json.minisig $ minisign -Vm MiniCPM-SALA.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

No related models in this catalog.Nothing here lists this model as its parent, and it names no parent.
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download openbmb/MiniCPM-SALA
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. MiniCPM-SALA.json. Provenance. Takedown history: none.
From: openbmb <huggingface.co/openbmb>Subject: AgentCPM-Explore-GGUF
From: openbmb <huggingface.co/openbmb>Subject: AgentCPM-Report
From: openbmb <huggingface.co/openbmb>Subject: AgentCPM-Report-GGUF
From: openbmb <huggingface.co/openbmb>Subject: BitCPM-CANN-0.5B-gguf
From: openbmb <huggingface.co/openbmb>Subject: BitCPM-CANN-1B-gguf
From: openbmb <huggingface.co/openbmb>Subject: BitCPM-CANN-3B-gguf