Instructions to use shadowlilac/visor with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use shadowlilac/visor with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "image-to-text" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("image-to-text", model="shadowlilac/visor")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("shadowlilac/visor") model = AutoModelForMultimodalLM.from_pretrained("shadowlilac/visor", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
bf0a6a0
1
Parent(s): 89ea3cd
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,4 +1,7 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
| 2 |
license: other
|
| 3 |
license_name: shadowlilac-extension-bsd-3
|
| 4 |
license_link: LICENSE
|
|
|
|
| 1 |
---
|
| 2 |
+
pipeline_tag: image-to-text
|
| 3 |
+
tags:
|
| 4 |
+
- image-captioning
|
| 5 |
license: other
|
| 6 |
license_name: shadowlilac-extension-bsd-3
|
| 7 |
license_link: LICENSE
|