Any-to-Any
Transformers
Safetensors
multilingual
minicpmo
feature-extraction
minicpm-o
omni
vision
ocr
multi-image
video
custom_code
audio
speech
voice cloning
live Streaming
realtime speech conversation
asr
tts
Instructions to use openbmb/MiniCPM-o-2_6 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use openbmb/MiniCPM-o-2_6 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("openbmb/MiniCPM-o-2_6", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
Yesterday
-
Add native Transformers support (config and processor files only)
Verified signatureThis PR adds native Transformers support for MiniCPM-o 2.6 (image and audio in, text out) while keeping the existing remote code working. It goes with https://github.com/huggingface/transformers/pull/51319, which adds the model to Transformers as `minicpmo2_6`, on top of MiniCPM-V 2.6 and 4.0 (https://github.com/huggingface/transformers/pull/51299). **The weights are not changed.** Transformers maps the original weight names at load time. The speech decoder (`tts.*`) isn't loaded by the native model. **It can be merged now:** the remote code keeps loading as before (`trust_remote_code=True`, `auto_map` unchanged), and Transformers versions that include the model load it natively. The native chat template is in `chat_template.json`, which only the processor reads, not in `chat_template.jinja`: the remote tokenizer would pick up a `.jinja` file too, and vLLM's MiniCPM-O, which ends up with the tokenizer's template because the remote processor has none, would then fail on image and audi…3af0101
-
Release `get_audio_placeholder` interface in processing (#24)
Verified signature- release (7616f5094f7995e8f126d75e97493ef7ff2fc767) Co-authored-by: Zhihui He <HwwwH@users.noreply.huggingface.co>ac4f235
-
update
0893f10
-
init
c248f01