Downloads · 30 days
41
7% of all-time downloads
ericleigh007/MiniCPM-o-4_5-BNB-Int4
MiniCPM-o-4_5-BNB-Int4 is a any-to-any model from ericleigh007. Use it for the any-to-any task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as other.
4-bit bitsandbytes quantization of openbmb/MiniCPM-o-45 with selective module skipping for audio/vision quality preservation.
Downloads · 30 days
41
7% of all-time downloads
All-time downloads
588
Public
Parameters
9.6B
8.4 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors8.4 GB · 100%
How the weights are stored.
U87.2B · 75%
From the Hugging Face model README
4-bit bitsandbytes quantization of openbmb/MiniCPM-o-4_5 with selective module skipping for audio/vision quality preservation.
weight_norm layers are explicitly skipped (they crash under bitsandbytes quantization)| Precision | VRAM (loaded) | Peak VRAM | Load Time |
|---|---|---|---|
| bf16 (baseline) | 21.0 GB | 21.3 GB | 16.3s |
| 4-bit (this repo) | 11.3 GB | 11.6 GB | 19.0s |
Benchmarked on NVIDIA RTX PRO 6000 Blackwell (96 GB). Your load times will vary.
from transformers import AutoModel, AutoTokenizer, BitsAndBytesConfig
import torch
model_name = "ericleigh007/MiniCPM-o-4_5-BNB-Int4"
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
model = AutoModel.from_pretrained(
model_name,
trust_remote_code=True,
attn_implementation="sdpa",
torch_dtype=torch.bfloat16,
device_map="auto",
init_vision=True,
init_audio=True,
init_tts=True,
)
model.eval()
model.init_tts()
Method: bitsandbytes NF4 with double quantization
Modules kept in bf16 (not quantized):
| Module | Reason |
|---|---|
lm_head | Output projection — standard practice |
apm | Whisper audio encoder — small, quality-sensitive |
tts | TTS decoder — uses weight_norm, incompatible with bitsandbytes |
vpm | SigLIP vision encoder — small, quality-sensitive |
resampler | Vision resampler — small |
audio_projection_layer | Audio-to-LLM projector — small |
audio_avg_pooler | Audio pooling layer — small |
Text quality is identical to bf16 (echo prompts return exact matches, math returns correct answers). Audio quality shows minor spectral variation within the range of normal run-to-run differences.
Full benchmark report with spectrograms: OmniChat Quantization Benchmarks
Same as the base model: MiniCPM Model License
Exported on 2026-03-11