Find your next open-source project

Search by name, purpose, or keyword, or paste a GitHub URL. Start with / to search agent skills (e.g. /pdf)

tobi/dgx-station-autoresearch

Machine LearningLocal inference

Rust + CUDA LLM inference engine specialized for one NVIDIA DGX Station GB300 machine.

162
18
Rust
1 day old
+60 stars in 19h

What it is

A Rust inference engine with hand-written CUDA kernels for running large MoE language models on a single, fixed NVIDIA DGX Station GB300 (Blackwell Ultra, sm_103a) plus a 16 GiB RTX PRO 2000 display GPU. It targets one checkpoint family, currently deepseek-ai/DeepSeek-V4.1-Flash-1017, and tries to fit a 475 GiB checkpoint across 250 GiB of HBM3e and coherent Grace memory over NVLink-C2C, keeping the full 1,048,576-token context per stream.

The design choices are deliberate: no device selectors, no portability layer, no tuning configs, and no model zoo. Selection and tuning are pushed into provider code. The engine exposes an OpenAI-compatible ds serve HTTP API, a ds CLI (query, chat, serve, exec, pi), and a set of bounded benchmark/verification scripts.

Quick start

Prerequisites are strict and documented: Rust 1.100.0 (pinned), CUDA 13.2 at /usr/local/cuda targeting sm_103a, local model weights, and enough free HBM before loading. See the hardware and prerequisites section.

  1. Download the checkpoint and link it under models/ (run from the repository root):
checkpoint="$(hf download deepseek-ai/DeepSeek-V4.1-Flash-1017 --quiet)"
mkdir -p models
ln -s "$checkpoint" models/deepseek-4.1-flash-1017

If hf is missing, use uvx hf download per the Hugging Face CLI docs.

  1. Build and install the CLI:
just install
  1. Start the server and query it:
./target/release/ds serve --engine gb300     # default port 8002
./target/release/ds query "Explain this project"

For protocol work without loading the full model, ds serve --engine mock --port 8080 runs a mock engine (still needs local tokenizer files), and other terminals can point at it with ds query --url http://127.0.0.1:8080.

Models and serving contract

Model locations are symlinks only under ./models/{name}. There is no --model-dir, no DS_MODEL_DIR, no Hugging Face cache scanning, and no startup download; a missing or broken link fails with the manual download command printed, not executed. Provider commands must run from the repository root. See the models section.

The server provides POST /v1/responses, POST /v1/chat/completions, GET /v1/models, vLLM-compatible GET /metrics, and GET /health. Output length is bounded only by remaining context; an omitted max_output_tokens means the rest of the window, and truncation is reported via incomplete_details.reason.

Constraints

  • Single machine only: the GB300 UUID and ATS modality are enforced in code, and ATS/non-ATS GPUs must never share a CUDA process.
  • The current provider is DeepSeek-V4.1-Flash-1017; the repository name does not mean other providers exist.
  • Full loading needs most of the GB300 HBM (about 249.5 GiB allocated, ~1 GiB headroom), so check live GPU state first; do not stop vllm-current.service on the machine without operator approval.
  • The ds pi bootstrap installer is a small Bash script served by the inference server; it installs Bun 1.4.5 and Pi 1.6.1 into ~/.pi-local, edits shell startup files for PATH, and sends prompts and attached code to that server. The routes add no API authentication, so restrict access to trusted clients and use HTTPS.
  • No license is declared in the repository metadata.

Verification and research workflow

Concurrency protocols (engine, KV pool, expert hot-swap, SSE parsers, HTTP surface, scheduler lanes) are modeled in executable TLA+ and checked with everystate via just verify-specs; live Rust trace-conformance tests run with just test-conform. The specs directory and specs README describe coverage, and the scope note is explicit that TLA+ covers finite-state protocol invariants, not numerical precision or model quality. Benchmark recipes (just bench, just bench-mmlu, just bench-terminal) target a running endpoint and keep each cycle under 300 seconds, writing receipts under results.

HotRepo's take

On the new-project board for 2026-12-02, the repository recorded 102 stars and 11 forks, with all 102 stars gained in a window of roughly 12 hours from 2026-12-01T22:26Z to 2026-12-02T10:18Z. It has no recorded all-language daily rank, so the available data supports only a single early snapshot, not a trend. The project's character is narrow and explicit: readers without this exact GB300 + RTX PRO 2000 machine cannot run the inference path as written, and the README says so up front. The README's performance table (boot time, decode TPS, TTFT, MMLU-Pro) is measured against native vLLM on the same machine; treat those as the author's benchmark results on this hardware, not as portability or general adoption evidence. The formal specs and recorded experiment receipts are the more reusable part for readers studying Blackwell SM103 inference engineering.

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

You might also like

  1. Neroued/ninferNative C++/CUDA inference engine serving selected LLMs on RTX 5090 and DGX Spark hardware.C++3,280
  2. ashhart/TensorFoldServe quantized LLMs natively on Apple Silicon and NVIDIA GPUs with an OpenAI-compatible API and no Python.Zig1,812
  3. NVIDIA/spark-local-inferenceA local inference server that precompiles selected models for NVIDIA SM120/SM121 GPUs and serves them from Rust.Rust691
  4. enwove/flyxSelf-contained C++/CUDA LLM inference engine that serves GGUF models through OpenAI- and Anthropic-compatible APIs on a single NVIDIA GPU.C++104
  5. NVIDIA/flare-local-inferenceA local inference server that squeezes more out of NVIDIA SM120/SM121 workstation GPUs for long agent conversations.Python646