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:
# 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 files- modeling_minicpmo.py +1 -1
modeling_minicpmo.py
CHANGED
|
@@ -1092,7 +1092,7 @@ class MiniCPMO(MiniCPMOPreTrainedModel):
|
|
| 1092 |
else:
|
| 1093 |
logger.error("Invalid content type:", c)
|
| 1094 |
|
| 1095 |
-
cur_contents = "".join(cur_msgs) if omni_input else "\n".join(
|
| 1096 |
if not self.is_first and self.new_user_msg and msg["role"] == "user": # new user add im_start
|
| 1097 |
if self.llm_generated:
|
| 1098 |
if self.llm_generate_completed:
|
|
|
|
| 1092 |
else:
|
| 1093 |
logger.error("Invalid content type:", c)
|
| 1094 |
|
| 1095 |
+
cur_contents = "".join(cur_msgs) if omni_input else "\n".join(cur_msgs)
|
| 1096 |
if not self.is_first and self.new_user_msg and msg["role"] == "user": # new user add im_start
|
| 1097 |
if self.llm_generated:
|
| 1098 |
if self.llm_generate_completed:
|