Instructions to use internlm/internlm-xcomposer2d5-7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use internlm/internlm-xcomposer2d5-7b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("visual-question-answering", model="internlm/internlm-xcomposer2d5-7b", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("internlm/internlm-xcomposer2d5-7b", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update build_mlp.py
Browse files- build_mlp.py +1 -1
build_mlp.py
CHANGED
|
@@ -6,7 +6,7 @@ from transformers import CLIPVisionModel, CLIPImageProcessor, CLIPVisionConfig
|
|
| 6 |
|
| 7 |
|
| 8 |
def build_vision_tower():
|
| 9 |
-
vision_tower = '/
|
| 10 |
return CLIPVisionTower(vision_tower)
|
| 11 |
|
| 12 |
|
|
|
|
| 6 |
|
| 7 |
|
| 8 |
def build_vision_tower():
|
| 9 |
+
vision_tower = 'internlm/internlm-xcomposer2d5-clip'
|
| 10 |
return CLIPVisionTower(vision_tower)
|
| 11 |
|
| 12 |
|