Instructions to use OpenGVLab/InternVL-14B-224px with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OpenGVLab/InternVL-14B-224px with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-feature-extraction", model="OpenGVLab/InternVL-14B-224px", trust_remote_code=True)# Load model directly from transformers import AutoProcessor, AutoModel processor = AutoProcessor.from_pretrained("OpenGVLab/InternVL-14B-224px", trust_remote_code=True) model = AutoModel.from_pretrained("OpenGVLab/InternVL-14B-224px", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -38,7 +38,8 @@ See this [document](https://github.com/OpenGVLab/InternVL/tree/main/clip_benchma
|
|
| 38 |
|
| 39 |
## Quick Start
|
| 40 |
|
| 41 |
-
|
|
|
|
| 42 |
|
| 43 |
```python
|
| 44 |
import torch
|
|
|
|
| 38 |
|
| 39 |
## Quick Start
|
| 40 |
|
| 41 |
+
> \[!Warning\]
|
| 42 |
+
> 🚨 Note: the prefix `'summarize:'` and `tokenizer.pad_token_id = 0` are necessary. Their absence will lead to abnormal results.
|
| 43 |
|
| 44 |
```python
|
| 45 |
import torch
|