Instructions to use thwri/CogFlorence-2.2-Large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use thwri/CogFlorence-2.2-Large 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="thwri/CogFlorence-2.2-Large", trust_remote_code=True)# Load model directly from transformers import AutoProcessor, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("thwri/CogFlorence-2.2-Large", trust_remote_code=True) model = AutoModelForImageTextToText.from_pretrained("thwri/CogFlorence-2.2-Large", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle
Update metadata: Add library_name to Transformers (#1)
Browse files- Update metadata: Add library_name to Transformers (58de8d501044ec75aed18d4c4566839bf4900345)
Co-authored-by: Tiezhen WANG <xianbao@users.noreply.huggingface.co>
README.md
CHANGED
|
@@ -9,6 +9,7 @@ tags:
|
|
| 9 |
pipeline_tag: image-to-text
|
| 10 |
language:
|
| 11 |
- en
|
|
|
|
| 12 |
---
|
| 13 |
# microsoft/Florence-2-large tuned on Ejafa/ye-pop captioned with CogVLM2
|
| 14 |
|
|
|
|
| 9 |
pipeline_tag: image-to-text
|
| 10 |
language:
|
| 11 |
- en
|
| 12 |
+
library_name: transformers
|
| 13 |
---
|
| 14 |
# microsoft/Florence-2-large tuned on Ejafa/ye-pop captioned with CogVLM2
|
| 15 |
|