Image-to-Text
Transformers
Safetensors
English
qwen2_vl
image-text-to-text
text-generation-inference
Instructions to use Ertugrul/Qwen2-VL-7B-Captioner-Relaxed with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ertugrul/Qwen2-VL-7B-Captioner-Relaxed 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="Ertugrul/Qwen2-VL-7B-Captioner-Relaxed")# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Ertugrul/Qwen2-VL-7B-Captioner-Relaxed") model = AutoModelForMultimodalLM.from_pretrained("Ertugrul/Qwen2-VL-7B-Captioner-Relaxed") - Notebooks
- Google Colab
- Kaggle
File size: 408 Bytes
7ea695e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | {
"<|box_end|>": 151649,
"<|box_start|>": 151648,
"<|endoftext|>": 151643,
"<|im_end|>": 151645,
"<|im_start|>": 151644,
"<|image_pad|>": 151655,
"<|object_ref_end|>": 151647,
"<|object_ref_start|>": 151646,
"<|quad_end|>": 151651,
"<|quad_start|>": 151650,
"<|video_pad|>": 151656,
"<|vision_end|>": 151653,
"<|vision_pad|>": 151654,
"<|vision_start|>": 151652
}
|