Downloads · 30 days
40
9% of all-time downloads
ericleigh007/MiniCPM-o-4_5-BNB-Int8
MiniCPM-o-4_5-BNB-Int8 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.
8-bit bitsandbytes quantization of openbmb/MiniCPM-o-45 with selective module skipping for audio/vision quality preservation.
Downloads · 30 days
40
9% of all-time downloads
All-time downloads
427
Public
Parameters
9.4B
11.8 GB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors11.8 GB · 100%
How the weights are stored.
I86.9B · 74%
From the Hugging Face model README
8-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 |
| 8-bit (this repo) | 14.5 GB | 14.8 GB | 20.5s |
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-Int8"
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 8-bit linear
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