Model hosting and compute

basetenlabs/

deepseek-ultrafast

Rust inference engine for DeepSeek-V4.1-Flash on Nvidia B200, B300 and GB300 GPUs. Up to 2,060 tokens/s decode, 1M context, KV cache sharing across servers.

What’s new here

This engine is built around a single model, DeepSeek-V4.1-Flash, and a narrow set of GPUs (sm_100a and sm_103a). Each decode step drafts a block of tokens and verifies it. Between servers, a conversation’s KV cache is pulled host memory to host memory over RDMA, so a follow-up turn that lands on a different server does not recompute the prompt.

What it does

It is an inference engine plus an OpenAI-compatible server, written in Rust. It supports 1M context length. The README reports these decode numbers on a Tetris-in-HTML prompt:

  • 4 x GB300 (TP4): 1,740 tokens/s decode, 3.30 ms step time.
  • 8 x B300 (TP8): 2,060 tokens/s decode, 2.71 ms step time.
  • Acceptance length of 5.6 tokens per step.

It also reports a 1,000,000-token prefill in 13.2 s on 4 x GB300 or 11.7 s on 8 x B300.

For multi-server setups, each server keeps recent KV caches in host memory. Redis records which server owns each conversation’s cache. The README says this removes the need for prefix-aware routing and allows better load balancing. It includes an example Kubernetes deployment at deploy/kubernetes.yaml.

Who it’s for

Teams with GB300, B300 or B200 GPUs who want to serve DeepSeek-V4.1-Flash themselves at high single-request speed. It is also worth reading if you serve multi-turn conversations across several replicas and want to see how KV cache transfer removes the need for prefix-aware routing. The README lists only those GPUs as supported.

Try it

You need 4 GB300, 4 or 8 B300, or 4 or 8 B200 GPUs, the CUDA 13 toolkit, the DeepSeek-V4.1-Flash weights in models/, and a Redis instance. There is no prebuilt release, so you build from source.

sudo apt-get install -y build-essential pkg-config cmake clang libclang-dev \
    libibverbs-dev librdmacm-dev libopencv-dev redis-server curl ca-certificates
curl -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none && . "$HOME/.cargo/env"
 
rustup toolchain install
DSUF_SM=sm_103a cargo build --release -p deepseek-ultrafast-engine --bin run -p deepseek-ultrafast-server --bin serve
 
redis-server --bind 127.0.0.1 --save '' --appendonly no --daemonize yes
 
DSUF_REDIS_URL=redis://127.0.0.1:6379 target/release/serve --ckpt models --gpus 0,1,2,3 --port 8000

The server is ready when curl localhost:8000/readyz returns 200, about 20 seconds after start. On an 8-GPU B300 machine, pass all eight GPUs with --gpus 0,1,2,3,4,5,6,7. Then point an OpenAI-compatible client at it:

DEEPSEEK_BASE_URL=http://localhost:8000 DEEPSEEK_API_KEY=none \
    npx @deepseek-ai/dsh headless "summarize this repo"

How mature is it

New and moving. The repo was created on 2026-10-27 and last pushed on 2026-11-30. It has 505 stars, 42 forks, 2 contributors, 7 commits in the last 90 days, 1 open issue and no releases. GitHub lists the license as “Other” and the README does not name one, so check before depending on it. The decode numbers come from one prompt (Tetris in HTML), and the README says more performance work and open source releases are coming.