vllm.parser.qwen4
¶
Qwen4 parser: the Qwen3 grammar with Qwen4's protocol rules.
- Qwen4's native encoder also disables thinking through
thinking=Falseandreasoning_effort="off", which the Qwen3 parser (keyed onenable_thinking) would miss and then misread the whole answer as reasoning. - Like the checkpoint's
parse_assistant_response_ids, a tool call opens only on the<tool_call>control token, so ordinary text spelling a call (e.g. echoed user content) stays content.