Skip to content

fix(client): update vLLM 0.26 token-serving import - #115

Merged
hallerite merged 1 commit into
mainfrom
fix/vllm-0.26-token-serving-import
Jul 30, 2026
Merged

hallerite merged 1 commit into
mainfrom
fix/vllm-0.26-token-serving-import

Conversation

@S1ro1

@S1ro1 S1ro1 commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

vLLM 0.26 moved the token-in/token-out serialization helpers from the serve.disagg package to scale_out.token_in_token_out. Update the lazy multimodal encoder import and its documentation so Qwen-VL feature serialization continues to work with the new release.

Validation:

  • uvx --from ruff==0.15.12 ruff format --isolated --check .
  • uvx --from ruff==0.15.12 ruff check --isolated renderers/client.py

Note

Low Risk
Import-path and comment-only compatibility fix for vLLM 0.26; multimodal encoding logic is unchanged.

Overview
Aligns Qwen-VL multimodal feature encoding with vLLM 0.26, which moved encode_mm_kwargs_item from vllm.entrypoints.serve.disagg.mm_serde to vllm.entrypoints.scale_out.token_in_token_out.mm_serde. The lazy import in _build_qwen_vl_features and the engine-pluggability note in _build_mm_features are updated accordingly.

Docs and comments no longer pin the client to “vLLM 0.20”; they describe the path generically as vLLM’s /inference/v1/generate integration.

A few MalformedGenerateResponseError and OverlongPromptError messages are tightened to single-line f-strings with no behavior change.

Reviewed by Cursor Bugbot for commit b37d40e. Bugbot is set up for automated code reviews on this repo. Configure here.

Note

Fix vLLM token-serving import path for encode_mm_kwargs_item in _build_qwen_vl_features

Updates the import path for encode_mm_kwargs_item in client.py from vllm.entrypoints.serve.disagg.mm_serde to vllm.entrypoints.scale_out.token_in_token_out.mm_serde to match the module layout in vLLM 0.26. Also removes a version-specific reference in the module docstring and consolidates error message f-strings.

Macroscope summarized b37d40e.

@S1ro1
S1ro1 force-pushed the fix/vllm-0.26-token-serving-import branch from 2477ad1 to cc61c2e Compare July 30, 2026 19:40
@S1ro1
S1ro1 force-pushed the fix/vllm-0.26-token-serving-import branch from cc61c2e to b6521ff Compare July 30, 2026 19:43
@S1ro1
S1ro1 force-pushed the fix/vllm-0.26-token-serving-import branch from b6521ff to b37d40e Compare July 30, 2026 19:44
@hallerite
hallerite marked this pull request as ready for review July 30, 2026 19:44
@macroscopeapp

macroscopeapp Bot commented Jul 30, 2026

Copy link
Copy Markdown

Approvability

Verdict: Approved b37d40e

Mechanical dependency update to fix vLLM 0.26 import path compatibility. Changes are limited to updating an import path, removing version-specific comments, and consolidating multi-line strings. No logic or behavioral changes.

You can customize Macroscope's approvability policy. Learn more.

@hallerite
hallerite merged commit d470786 into main Jul 30, 2026
11 checks passed
@hallerite
hallerite deleted the fix/vllm-0.26-token-serving-import branch July 30, 2026 19:48
eligotts added a commit that referenced this pull request Aug 4, 2026
One conflict, in client.py: main's #115 vLLM import fix lands inside the
processed-tensor encoder this branch deletes by design. Kept the raw-ref
_build_vllm_mm_features; main's fix applies to code that no longer
exists here (same resolution as the offload branch).

Co-Authored-By: Claude Fable 5 <[email protected]>
joanvelja added a commit to joanvelja/renderers that referenced this pull request Aug 10, 2026
Unites all three renderer lineages ahead of the prime-rl 0.8.0 sync:
  - 4354613  our pin (Gemma 4 incl. 12B, PrimeIntellect-ai#115 vLLM token-serving import fix)
  - 2a7e77e   upstream/main (Laguna M.1 renderer)
  - af3d508    fork main (kv session liveness fields, #11)

All 10 conflicted files resolved to the upstream-sync side. af3d508's own
commit touches only renderers/client.py and tests/test_client.py, both of
which auto-merged cleanly; every conflict came from 9de2e8d, an independent
upstream sync on fork main that is strictly behind this lineage (thinking
retention PrimeIntellect-ai#88 is common ancestry — present in all three refs — while
overlap_is_content, the Laguna M.1 renderer and the qwen3/qwen35 empty-think
token-stability fix exist only here).
joanvelja added a commit to joanvelja/renderers that referenced this pull request Nov 3, 2026
…sampled stream, not a template bug

Gemma 4's template renders a tool-calling turn's content after its calls
and responses because that is the order the model was trained on
(tool_calls -> tool_responses -> content, per Google in vLLM #42776,
which was closed unmerged); HF discussion PrimeIntellect-ai#115 is open and calls no
placement a bug. The renderer keeps prose before the calls because RL
needs re-render and bridge byte-identical to the sampled stream, which
has the prose there. The parity exclusion's comment and the template pin's
docstring now say so; the pin notices a template change instead of
asking to drop the deviation when one lands.
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.

2 participants