Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qwen/Qwen2-VL-7B-Instruct #135

Open
kowshik24 opened this issue Nov 26, 2024 · 0 comments
Open

Qwen/Qwen2-VL-7B-Instruct #135

kowshik24 opened this issue Nov 26, 2024 · 0 comments

Comments

@kowshik24
Copy link

kowshik24 commented Nov 26, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant