Skip to content

Resolve no images crash for qwen3_vl and qwen3_vl_moe generate call#1013

Open
urimem wants to merge 1 commit intoBlaizzy:mainfrom
urimem:fix-crash-with-no-images
Open

Resolve no images crash for qwen3_vl and qwen3_vl_moe generate call#1013
urimem wants to merge 1 commit intoBlaizzy:mainfrom
urimem:fix-crash-with-no-images

Conversation

@urimem
Copy link
Copy Markdown

@urimem urimem commented Apr 11, 2026

The code blindly slices visual_pos_masks during chunked prefill without checking if it's None.
The image parameter in the generate call is optional and with no images, visual_pos_masks is never set, but chunked prefill still passes n_to_process as a kwarg.

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

Successfully merging this pull request may close these issues.

1 participant