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
|
@@ -43,6 +43,8 @@ See this [document](https://github.com/OpenGVLab/InternVL/tree/main/clip_benchma
|
|
| 43 |
|
| 44 |
## Model Usage
|
| 45 |
|
|
|
|
|
|
|
| 46 |
```python
|
| 47 |
import torch
|
| 48 |
from PIL import Image
|
|
|
|
| 43 |
|
| 44 |
## Model Usage
|
| 45 |
|
| 46 |
+
**Note: the prefix `'summarize:'` and `tokenizer.pad_token_id = 0` are necessary. Their absence will lead to abnormal results.**
|
| 47 |
+
|
| 48 |
```python
|
| 49 |
import torch
|
| 50 |
from PIL import Image
|