Skip to content

vllm.reasoning.deepseek_r1_reasoning_parser

Classes:

DeepSeekR1ReasoningParser

Bases: BaseThinkingReasoningParser

Reasoning parser for DeepSeek R1 model.

The DeepSeek R1 model uses ... tokens to denote reasoning text. This parser extracts the reasoning content from the model output.

Attributes:

end_token property

The token that ends reasoning content.

start_token property

The token that starts reasoning content.