vllm.reasoning.minimax_m3_reasoning_parser
¶
Classes:
-
MiniMaxM3ReasoningParser–Reasoning parser for MiniMax M3 explicit thinking blocks.
MiniMaxM3ReasoningParser
¶
Bases: BaseThinkingReasoningParser
Reasoning parser for MiniMax M3 explicit thinking blocks.
MiniMax M3 emits reasoning as:
<mm:think>reasoning text</mm:think>assistant content
The M3 tokenizer exposes both markers as complete vocabulary entries, but
generated marker text may be tokenized into smaller pieces. The streaming
parser therefore uses text markers for extraction instead of relying on the
single vocabulary IDs. The chat template may also prefill the start marker
when thinking_mode="enabled", so generated text can begin directly
inside a reasoning block without emitting <mm:think> again.