Skip to content

Refactor/vllm parser detection actor#112

Merged
alez007 merged 2 commits into
mainfrom
refactor/vllm-parser-detection-actor
Jul 5, 2026
Merged

Refactor/vllm parser detection actor#112
alez007 merged 2 commits into
mainfrom
refactor/vllm-parser-detection-actor

Conversation

@alez007

@alez007 alez007 commented Jul 5, 2026

Copy link
Copy Markdown
Owner

No description provided.

alez007 added 2 commits July 5, 2026 10:41
… actor

Now that llama_server does its own parsing internally and llama_cpp/transformers
are gone, tool/reasoning parser-name detection is vLLM-only and no longer
belongs in loader-agnostic preflight. Moves detection into a new
modelship/infer/vllm/parsing/ package consumed directly by init_serving_chat,
sourcing the chat template from the loaded engine's own tokenizer instead of a
driver-side disk read. Also drops the reasoning-suppression probe entirely:
vLLM's per-request is_reasoning_end already handles the suppression boundary
correctly, so the deploy-time downgrade was redundant and, in one direction,
less correct.
…er module

Completes the parser-detection migration: drops driver-side
resolve_all_tool_parsers/resolve_all_reasoning_parsers and their PrivateAttr
handoff, and repoints init_serving_chat at the new
modelship.infer.vllm.parsing.detect resolvers sourced from the engine's own
tokenizer.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the chat-template parser-name detection for the vLLM loader by moving the resolution logic from the driver-side pre-flight check to run directly inside the vLLM actor. This simplifies the configuration models and ensures that the native vLLM parsers are resolved dynamically during initialization. A critical issue was identified in modelship/infer/vllm/vllm_infer.py where self.engine.get_tokenizer() is called synchronously, but it is an asynchronous method and must be awaited to avoid an AttributeError.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread modelship/infer/vllm/vllm_infer.py
@alez007 alez007 merged commit e32a36f into main Jul 5, 2026
4 checks passed
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