Skip to content

vllm.tokenizers.deepseek_v41

Functions:

_add_updated_tool_schemas(conversation, tools)

Like deepseek-recipe, follow each user turn whose tool results reference tools with a system turn listing those tools' schemas, in reference order.

get_deepseek_v41_tokenizer(tokenizer)

Wrap an HF tokenizer with the V4.1 prompt encoder.