feat(multimodal): graph Qwen2.5-VL custom encoder - #11565
Closed
furionw wants to merge 21 commits into
Closed
Conversation
Contributor
This comment has been minimized.
This comment has been minimized.
furionw
force-pushed
the
qiwa/qwen3-vl-custom-encoder
branch
from
July 12, 2026 05:22
eae1fde to
0d8d773
Compare
furionw
force-pushed
the
qiwa/vision-encoder-batcher
branch
from
July 14, 2026 02:39
492569d to
7286f09
Compare
Add a supervised, thread-affine micro-batcher and route AsyncVisionEncoder forwards through it. Preserve preprocess atomicity while making lifecycle, failures, and teardown deterministic. Signed-off-by: Qi Wang <qiwa@nvidia.com>
furionw
force-pushed
the
qiwa/vision-encoder-batcher
branch
from
July 14, 2026 02:46
7286f09 to
54e4cc5
Compare
Signed-off-by: furionw <qiwa@nvidia.com>
Signed-off-by: furionw <qiwa@nvidia.com>
Signed-off-by: furionw <qiwa@nvidia.com>
Signed-off-by: furionw <qiwa@nvidia.com>
furionw
force-pushed
the
qiwa/qwen3-vl-custom-encoder
branch
from
July 14, 2026 04:54
2df6ef4 to
931a1da
Compare
Signed-off-by: furionw <qiwa@nvidia.com>
Signed-off-by: furionw <qiwa@nvidia.com>
Signed-off-by: furionw <qiwa@nvidia.com>
Signed-off-by: furionw <qiwa@nvidia.com>
Use vLLM variable-length FlashAttention for the Qwen2.5-VL custom encoder and launch its decoder in language-model-only mode. Restore the historical Qwen3-VL encoder module so both implementations remain available. Signed-off-by: furionw <qiwa@nvidia.com>
furionw
force-pushed
the
qiwa/qwen3-vl-custom-encoder
branch
from
July 14, 2026 17:51
28907d9 to
78e74f6
Compare
Signed-off-by: furionw <qiwa@nvidia.com>
Signed-off-by: furionw <qiwa@nvidia.com>
furionw
force-pushed
the
qiwa/vision-encoder-batcher
branch
from
July 15, 2026 00:53
54e4cc5 to
0392783
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Based on #11037.\n\n## Why\n\nDynamo’s custom encoder path can batch and cache image embeddings, but Qwen2.5-VL derives rotary and window metadata dynamically while segmented SDPA prevents efficient graph capture. Static grid metadata plus variable-length FlashAttention makes its complete 32-block vision tower capturable while preserving native vision parity. A separate performance experiment pairs the 3B vision tower with Qwen2.5-1.5B by truncating its completed 2048-wide output to 1536; this is untrained and makes no quality or model-parity claim. The Qwen3 encoder remains available for comparison.\n\n## Effect\n\nPerformance-only closed-loop H100 image sweep, 1,000 requests per cell:\n\n| Concurrency | TTFT avg (ms) | E2E avg (ms) | Throughput (req/s) |\n| ---: | ---: | ---: | ---: |\n| 8 | 102.8 | 501.2 | 15.865 |\n| 16 | 549.8 | 897.3 | 17.688 |\n| 32 | 1109.9 | 1519.6 | 20.734 |\n\n## What Change\n\n- Graph Qwen2.5 rotary, window attention, merger, and output reordering across static buckets.\n- Preserve Qwen3, caches, coalescing, pinned transfers, and bounded micro-batching.\n- Add audited H100 QPS and closed-loop concurrency benchmark workflows.\n\n## Test Plan\n\n- 36 focused H100 tests and all targeted pre-commit hooks passed.\n- Graph parity/allocator verification and audited 3,000-request concurrency sweep passed.