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.
More from Infra
- JetBrains runs 500k context on a 16GB GPU with two-tier Q8 KV cache — yogthos · 2026-12-06
- MiniMax H3 image gen runs locally on RTX 3060 12GB with 8-step turbo — Ok_Roll_8698 · 2026-12-06
- Complex compilers and unreadable instruction streams may signal bad hardware design — mike64_t · 2026-12-06
- China moves to restrict NAND bonding tech exports, threatening Samsung and SK Hynix licenses of YMTC's Xtacking patents — zephyr_z9 · 2026-12-06
- qwengine: C++20/CUDA engine runs Qwen4-35B-A3B NVFP4 on a single RTX 5090 — AIFlow_ML · 2026-12-06
- The 'compute man' parable: an AI founder who bet big on compute prices finds no buyer — toptickcrypto · 2026-12-06