DeepSeek also open-sources deepseek-recipe, replicating official API token encoding logic

deepseek_ai · x · 2026-10-20

Alongside DeepInfer, DeepSeek open-sourced deepseek-recipe (MIT), its production token encoding/decoding component aligned with the official DeepSeek API's processing logic, bringing identical API behavior to community deployments.

It is a collection of Rust libraries with Python bindings that normalizes API requests into a Conversation format, renders prompts, encodes them to token IDs with an attached tokenizer, and converts model output back into responses. The repo has 690 stars and includes Rust/Python implementations plus an encoding-decoding demo.

Original post →

More from Infra

Infra channel →