-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
[Bug]: vllm 0.7.3-0.8.0rc3 - QWEN2.5-VL: video_grid_thw[video_index][0], [multiproc_executor.py:375] IndexError: list index out of range
#14986
Labels
bug
Something isn't working
Comments
video_grid_thw[video_index][0], [multiproc_executor.py:375] IndexError: list index out of range
video_grid_thw[video_index][0], [multiproc_executor.py:375] IndexError: list index out of range
Will investigate it tonight. |
thx |
I think the cause is in your script, you are updating your prompt in the loop which will cause incorrect prompt = """
Describe the video
"""
for i in range(2):
messages = [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": [
{"type": "text", "text": prompt},
{
"type": "video",
"video": f"/data/sampled_videos/16935.mp4", # attached
"fps": 1,
"max_pixels": 426 * 240,
}
]
},
]
processor = AutoProcessor.from_pretrained(MODEL_PATH)
prompt = processor.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True,
) You just need to modify it like this to avoid override: question = """
Describe the video
"""
for i in range(2):
messages = [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": [
{"type": "text", "text": question},
{
"type": "video",
"video": f"./16935.mp4",
"fps": 1,
"max_pixels": 426 * 240,
}
]
},
]
processor = AutoProcessor.from_pretrained(MODEL_PATH)
prompt = processor.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True,
) |
Reproduced the problem and same conclusion as @Isotr0py provided above. |
closed by mistake |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Your current environment
The output of `python collect_env.py`
the script does not work with a uv venv
However, I have python 3.10, cuda 12.4, 2xa100 40 gb
🐛 Describe the bug
I have an error that appears whenever I run the inference multiple times. I tried:
Error:
16935.mp4.zip
Before submitting a new issue...
The text was updated successfully, but these errors were encountered: