Image-to-Text
Transformers
Safetensors
English
vlm
text-generation
image-captioning
visual-question-answering
Instructions to use unum-cloud/uform-gen with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use unum-cloud/uform-gen 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="unum-cloud/uform-gen")# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("unum-cloud/uform-gen", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +1 -1
config.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
| 18 |
"initializer_range": 0.02,
|
| 19 |
"model_type": "vlm",
|
| 20 |
"text_decoder_name_or_path": "princeton-nlp/Sheared-LLaMA-1.3B",
|
| 21 |
-
"tokenizer_name_or_path": "uform-gen",
|
| 22 |
"torch_dtype": "float32",
|
| 23 |
"transformers_version": "4.36.2",
|
| 24 |
"use_cache": true
|
|
|
|
| 18 |
"initializer_range": 0.02,
|
| 19 |
"model_type": "vlm",
|
| 20 |
"text_decoder_name_or_path": "princeton-nlp/Sheared-LLaMA-1.3B",
|
| 21 |
+
"tokenizer_name_or_path": "unum-cloud/uform-gen",
|
| 22 |
"torch_dtype": "float32",
|
| 23 |
"transformers_version": "4.36.2",
|
| 24 |
"use_cache": true
|