#100100th of 117 in Model serving
deepseek-recipe
Rust and Python library for DeepSeek V4 prompt rendering and API conversion
- Stars
- 2.9k
- License
- MIT
- Last commit
- Oct 2026
- Language
- Rust
5 on 7 Sept 20262,918 on 23 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
Rust crates with Python bindings that convert Messages, Chat Completions and Responses requests into a common Conversation type. They render it into DeepSeek V4 and V4.1 prompts, encode token IDs with an attached tokenizer, and parse model output back into each API format, including streaming. The caller supplies inference, tool execution and HTTP transport.
Who it is for: Engineers wiring a DeepSeek V4 inference backend to multi-format API services
Strengths
- Three API formats handled through one Conversation type
- Parses reasoning content, tool calls, JSON output and stop sequences from model output
- Supports streaming and json_schema or regex structured output constraints
- Available as Rust crates and a pip package, with Axum and FastAPI examples
Weaknesses
- Does not run inference, execute tools or serve HTTP; a backend is required
- Prompt rendering covers only DeepSeek V4 and V4.1
- V4 requests have images replaced with the text [Unsupported Image]
- Default image fetcher connects to any address unless a DestinationFilter is set
What it needs
- no GPU
- Needs OpenCV (image preprocessing), Python 3.10+ (bindings)
- Models: DeepSeek-V4-Pro, DeepSeek-V4.1-Flash
- port 7778
Also in Model serving
See all 117| Rank | Project | Score |
|---|---|---|
| #98 | chatrwkvReference inference code and chat demos for RWKV RNN language models | 52 out of 100 |
| #99 | metarankRanking service that reranks search and recommendation results from click signals | 52 out of 100 |
| #101 | laya-coremlCore ML port of Laya for typed multiple-choice decisions on Apple Silicon | 50 out of 100 |
| #102 | yolo_rosROS 2 node running Ultralytics YOLO ONNX models for detection, pose and segmentation | 50 out of 100 |
| #103 | TabbyAPIOpenAI-compatible API server for running ExLlamaV3 models | 49 out of 100 |