-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
How to resolve the issue where qwen2.5-vl returns a "500 Internal Server Error" when accessed via the OpenAI SDK?
- env:
V1 LLM engine (v0.8.5.dev530+g0a9bbaa10)
ubuntu 22.04
cuda12.6
torch2.7.0
qwen2.5-vl-32b-instruct
- my solution:
pip install qwen-vl-utils
from qwen_vl_utils import process_vision_info
messages = [{"content": [{"type": "image", "image": f"{img_path}", }]}]
image_inputs, _ = process_vision_info(messages)
image_preprocessed = image_inputs[0]
# image_preprocessed to base64str
# via OpenAI SDK
Before submitting a new issue...
- Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working