Downloads · 30 days
837
1% of all-time downloads
openbmb/MiniCPM-o-2_6-int4
MiniCPM-o-2_6-int4 is a any-to-any model from openbmb. 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 apache-2.0.
<h1A GPT-4o Level MLLM for Vision, Speech and Multimodal Live Streaming on Your Phone</h1
Downloads · 30 days
837
1% of all-time downloads
All-time downloads
98.4K
Public
Parameters
8.7B
7.6 GB on disk
Likes
54
Public
Click a slice to open those files.
.safetensors7.6 GB · 99%
How the weights are stored.
I326.5B · 75%
From the Hugging Face model README
GitHub | MiniCPM Wiki(Chinese) | Online Demo | Technical Blog | Join Us
This is the int4 quantized version of MiniCPM-o 2.6.
Running with int4 version would use lower GPU memory (about 9GB).
We are submitting PR to officially support minicpm-o 2.6 inference
git clone https://github.com/RanchiZhao/AutoGPTQ.git && cd AutoGPTQ
git checkout minicpmo
# install AutoGPTQ
pip install -vvv --no-build-isolation -e .
Change the model initialization part to AutoGPTQForCausalLM.from_quantized
import torch
from transformers import AutoModel, AutoTokenizer
from auto_gptq import AutoGPTQForCausalLM
model = AutoGPTQForCausalLM.from_quantized(
'openbmb/MiniCPM-o-2_6-int4',
torch_dtype=torch.bfloat16,
device="cuda:0",
trust_remote_code=True,
disable_exllama=True,
disable_exllamav2=True
)
tokenizer = AutoTokenizer.from_pretrained(
'openbmb/MiniCPM-o-2_6-int4',
trust_remote_code=True
)
model.init_tts()
Usage reference MiniCPM-o-2_6#usage