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
Run this model with HF Jobs
Run openbmb/MiniCPM-o-2_6 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/openbmb/MiniCPM-o-2_6. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/openbmb/MiniCPM-o-2_6 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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
Update modeling_minicpmo.py
Browse files583 unmodified lines584585586587588589583 unmodified linesif self.config.chunk_input:for i in range(bs):audio_embs = torch.cat(audio_embeddings[i], dim=0).to(device=input_embeddings.device, dtype=input_embeddings.dtype)583 unmodified lines584585586587588589590591583 unmodified linesif self.config.chunk_input:for i in range(bs):if not audio_embeddings[i]:continueaudio_embs = torch.cat(audio_embeddings[i], dim=0).to(device=input_embeddings.device, dtype=input_embeddings.dtype)
modeling_minicpmo.py+2