worker-vllm icon indicating copy to clipboard operation
worker-vllm copied to clipboard

Qwen/Qwen2-VL-7B-Instruct

Open kowshik24 opened this issue 1 year ago • 3 comments

Can I use Qwen/Qwen2-VL-7B-Instruct model with images? Is yes how?

Here is my code:

response = client.chat.completions.create(
    model="Qwen/Qwen2-VL-7B-Instruct",
    messages=[
    {
        "role": "user",
        "content": [
            {
                "type": "image",
                "image": "https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-VL/assets/demo.jpeg",
            },
            {"type": "text", "text": "Describe this image."},
        ],
    }
    ],
    temperature=0,
    max_tokens=100,
    
)
print(response)

NotImplementedError: Unknown part type: image

kowshik24 avatar Nov 26 '24 19:11 kowshik24

Did you find a solution to this?

faleandroid avatar Aug 03 '25 15:08 faleandroid

Hi! @faleandroid. No actually I didn't get into this later on. I will check and let you know

kowshik24 avatar Aug 04 '25 17:08 kowshik24

+1

SuperBruceJia avatar Sep 15 '25 19:09 SuperBruceJia