#100100th of 117 in Model serving

deepseek-recipe

Rust and Python library for DeepSeek V4 prompt rendering and API conversion

Releases and problems feed (RSS)

Stars
2.9k
License
MIT
Last commit
Oct 2026
Language
Rust
Stars, last 11 weeks+2,913
7 Sept 2026: 5 stars14 Sept 2026: 331 stars21 Sept 2026: 345 stars28 Sept 2026: 356 stars5 Oct 2026: 374 stars12 Oct 2026: 382 stars19 Oct 2026: 436 stars26 Oct 2026: 2,540 stars2 Nov 2026: 2,734 stars9 Nov 2026: 2,811 stars16 Nov 2026: 2,893 stars23 Nov 2026: 2,918 stars

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
Also in Model serving
RankProjectScore
#98chatrwkvReference inference code and chat demos for RWKV RNN language models Live demo ↗ (opens in a new tab)9.5k starsApache-2.052 out of 100
#99metarankRanking service that reranks search and recommendation results from click signals Live demo ↗ (opens in a new tab)2.5k starsApache-2.052 out of 100
#101laya-coremlCore ML port of Laya for typed multiple-choice decisions on Apple Silicon1.6k starsApache-2.050 out of 100
#102yolo_rosROS 2 node running Ultralytics YOLO ONNX models for detection, pose and segmentation1.2k starsMIT50 out of 100
#103TabbyAPIOpenAI-compatible API server for running ExLlamaV3 models1.5k starsAGPL-3.049 out of 100