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
Fix an issue in TTS generate to avoid gap between training and inference
Browse files- modeling_minicpmo.py +1 -1
modeling_minicpmo.py
CHANGED
|
@@ -2986,7 +2986,7 @@ class ConditionalChatTTS(PreTrainedModel):
|
|
| 2986 |
inputs_embeds = torch.stack(code_emb, 3).sum(3)
|
| 2987 |
|
| 2988 |
position_ids = torch.tensor(
|
| 2989 |
-
[past_key_values[0][0].shape[2]
|
| 2990 |
).unsqueeze(0)
|
| 2991 |
|
| 2992 |
cache_position = position_ids.clone()
|
|
|
|
| 2986 |
inputs_embeds = torch.stack(code_emb, 3).sum(3)
|
| 2987 |
|
| 2988 |
position_ids = torch.tensor(
|
| 2989 |
+
[past_key_values[0][0].shape[2]], dtype=torch.long, device=self.device
|
| 2990 |
).unsqueeze(0)
|
| 2991 |
|
| 2992 |
cache_position = position_ids.clone()
|