How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("image-text-to-text", model="rp-yu/Qwen2-VL-2b-VPT-Seg-Alignment")
messages = [
    {
        "role": "user",
        "content": [
            {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
            {"type": "text", "text": "What animal is on the candy?"}
        ]
    },
]
pipe(text=messages)
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoModelForSeq2SeqLM
model = AutoModelForSeq2SeqLM.from_pretrained("rp-yu/Qwen2-VL-2b-VPT-Seg-Alignment", device_map="auto")
Quick Links

Introducing Visual Perception Token into Multimodal Large Language Model

This repository contains models based on the paper Introducing Visual Perception Token into Multimodal Large Language Model. These models utilize Visual Perception Tokens to enhance the visual perception capabilities of multimodal large language models (MLLMs).

Code: https://github.com/yu-rp/VisualPerceptionToken

Downloads last month
9
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for rp-yu/Qwen2-VL-2b-VPT-Seg-Alignment

Base model

Qwen/Qwen2-VL-2B
Finetuned
(381)
this model

Dataset used to train rp-yu/Qwen2-VL-2b-VPT-Seg-Alignment

Collection including rp-yu/Qwen2-VL-2b-VPT-Seg-Alignment

Paper for rp-yu/Qwen2-VL-2b-VPT-Seg-Alignment