Instructions to use openbmb/MiniCPM-V with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use openbmb/MiniCPM-V with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("visual-question-answering", model="openbmb/MiniCPM-V", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("openbmb/MiniCPM-V", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +1 -1
config.json
CHANGED
|
@@ -19,7 +19,7 @@
|
|
| 19 |
"image_size": 448,
|
| 20 |
"initializer_range": 0.1,
|
| 21 |
"intermediate_size": 5760,
|
| 22 |
-
"max_position_embeddings":
|
| 23 |
"model_type": "minicpmv",
|
| 24 |
"num_attention_heads": 36,
|
| 25 |
"num_hidden_layers": 40,
|
|
|
|
| 19 |
"image_size": 448,
|
| 20 |
"initializer_range": 0.1,
|
| 21 |
"intermediate_size": 5760,
|
| 22 |
+
"max_position_embeddings": 4096,
|
| 23 |
"model_type": "minicpmv",
|
| 24 |
"num_attention_heads": 36,
|
| 25 |
"num_hidden_layers": 40,
|