A 3-bit TrellisMX build of deepseek-ai/DeepSeek-V4.1-Flash-1017
(revision 1bae0e1088993b9b82de08f59de5be5a34e42170), laid out for three 96 GB RTX PRO 6000 Blackwell cards at
tensor parallel 3, with the two Engram tables kept in their original FP8 form (about 189 GiB) in host RAM.
The encode and every measurement on this card ran on an 8x NVIDIA B200 node generously donated by Lambda (@LambdaAPI). Thank you, Lambda.
Built with the SM120 vLLM image by Local Inference Lab and Luke Alonso, the b12x kernels by Luke Alonso with
Martin Vit and other contributors, and Local Inference Lab's CSF scale format; TrellisMX was inspired by QTIP and
EXL3, and its FP8 trellis decode by Luke Alonso's KQuant/QSRT. Full credits: Credits and CREDITS.md.
Released under the MIT License, the same license as the base model (LICENSE).
Status: research build. The weights and the reference-path measurements below are complete. The serving image
verdictai/deepseek-v41-flash-trellismx:k3-fp8-tp3-20261019 runs this checkpoint at tensor parallel 3 on three RTX PRO
6000 Blackwell 96 GB cards with DSpark speculative decoding and full CUDA graphs. It shares its runtime with the K2
image, which was booted and benchmarked on SM120 hardware on 2026-10-19 after fixes to the startup path and to the
expert kernel's token routing. This image carries the same fixes and has passed its CPU checks, but this checkpoint has
not yet been booted at tensor parallel 3, so treat the first run as a test. The tag was rebuilt with these fixes on
2026-10-19: if you pulled it earlier that day, pull it again. serving/ holds its docker-compose.yml, serve.sh and
SERVING.md.
You need three RTX PRO 6000 Blackwell 96 GB cards (SM120) with PCIe peer-to-peer between them, about 190 GiB of free host RAM for the FP8 Engram tables, an NVIDIA driver with CUDA 13.4 support, the NVIDIA Container Toolkit, docker compose v2 and about 430 GB of disk.
docker pull verdictai/deepseek-v41-flash-trellismx:k3-fp8-tp3-20261019
hf download brandonmusic/DeepSeek-V4.1-Flash-1017-TrellisMX-K3 --local-dir /models/DeepSeek-V4.1-Flash-1017-TrellisMX-K3
cd /models/DeepSeek-V4.1-Flash-1017-TrellisMX-K3/serving
export CHECKPOINT_ROOT=/models/DeepSeek-V4.1-Flash-1017-TrellisMX-K3
bash serve.sh
serve.sh reads the checkpoint's manifest, picks tensor parallel 3 and GPUs 0,1,2 (DS41_GPUS changes them), checks
the free host RAM and starts the container. The API is OpenAI-compatible on port 8010, model name
deepseek-v41-flash-trellismx-k3:
curl -s http://127.0.0.1:8010/v1/chat/completions -H 'Content-Type: application/json' \
-d '{"model":"deepseek-v41-flash-trellismx-k3","messages":[{"role":"user","content":"Hello"}],"max_tokens":256}'
serving/SERVING.md has every setting and its default.
| Component | Stored as |
|---|---|
| Routed experts (40 layers x 384, 543.6B weights) | 3-bit TrellisMX (K3), decoded to E4M3 operands, E4M3 activations (W3A8); UE8M0 scales per 32 inputs stored CSF-compressed (lossless); pre-sliced for tensor parallel 3. 206.5 GB, about 3.04 bits per weight |
| Engram tables (layers 1 and 14, 768,022,850 rows x 256) | as released: FP8 (E4M3) rows with an E8M0 scale per 32, byte-identical to the base checkpoint; about 189 GiB, held in host RAM |
| Everything else (attention, shared experts, router, norms, embeddings, lm_head, the three DSpark/MTP layers) | as released, byte-identical to the base checkpoint |
KL(official checkpoint || this build) in nats, over the full vocabulary (129,280 ids), in FP64, at every next-token row
(row r predicts token r+1). Teacher: the official checkpoint run in DeepSeek's reference implementation, FP32 logits,
published in brandonmusic/DeepSeek-V4.1-Flash-1017-Teacher-Logits (revision 68379d81), folders cuts-2048/ and windows-8192/.
Intervals are window-block bootstrap (BCa 95%) and Wilson for top-1.
Headline, 2,048-token sequences: the 128 evaluation windows of 8,192 tokens cut into 512 sequences of 2,048 tokens, each run as a fresh sequence from position 0 (2,047 rows each, 1,048,064 rows):
| Path | Mean KLD [BCa 95%] | Median | p90 | p99 | p99.9 | Top-1 [Wilson 95%] |
|---|---|---|---|---|---|---|
| Serving formats: experts on E4M3 operands with E4M3 activations, the official Engram tables | 0.0664 [0.0607, 0.0732] | 0.0061 | 0.1065 | 1.14 | 4.23 | 91.74% [91.68, 91.79] |
| Weights only: the same weights, activations unquantized | 0.0645 [0.0589, 0.0712] | 0.0060 | 0.1038 | 1.11 | 4.11 | 91.92% [91.87, 91.97] |
Against the K2 build on the same 512 sequences (serving formats 0.1439 [0.1346, 0.1545], top-1 86.82%), this build lowers the mean KLD 2.2 times. Its Engram tables are the official FP8 ones, so its whole difference from the official model comes from the 3-bit experts.
Full 8,192-token windows (8,191 rows each, 1,048,448 rows):
| Path | Mean KLD [BCa 95%] | Median | p90 | p99 | p99.9 | Top-1 [Wilson 95%] |
|---|---|---|---|---|---|---|
| Serving formats | 0.1300 [0.1005, 0.1675] | 0.0038 | 0.1786 | 2.67 | 7.87 | 91.03% [90.97, 91.08] |
| Weights only | 0.1256 [0.0969, 0.1622] | 0.0036 | 0.1703 | 2.61 | 7.56 | 91.22% [91.17, 91.28] |
By domain (serving formats, 2,048-token sequences): agentic 0.189 [0.166, 0.213], SWE agent 0.084 [0.070, 0.112], math 0.034 [0.030, 0.040], science 0.044 [0.038, 0.051], competitive programming 0.045 [0.036, 0.063], instruction following and chat 0.034 [0.032, 0.036], multilingual 0.037 [0.034, 0.041], long-context transduction 0.011 [0.009, 0.014], safety 0.054 [0.049, 0.062], web text 0.067 [0.062, 0.074], legal 0.057 [0.050, 0.065]. As with the K2 build, KLD rises at 8,192 tokens: the median falls (0.0038 against 0.0061) but the tail grows (p99 2.67 against 1.14).
Checks: the teacher scored against itself is exactly 0 on every window; the reference model's canary window, run at the start and end of every session, is bit-identical; on every window the teacher's top-1 agrees with the realized token inside the [0.20, 0.995] band; the GPU scoring kernel matches a CPU FP64 reference to within 2e-12 on sampled rows of every window. The evaluation windows share at most 5% of their content 13-grams with the data the build was calibrated on, and every accepted conversation shared at most 2% with it.
How it was measured: the base model's layers run in DeepSeek's reference implementation, layer by layer on 4x NVIDIA
B200 at model parallel 4, one window per forward, with this checkpoint's experts and Engram rows reproduced bit for bit in
that path (the Engram rows are gathered on the CPU, as the serving path does from host RAM). The native SM120 kernel path
has not been measured. Every figure with its interval: evaluation/report.json; per-sequence and per-window statistics:
evaluation/summary-B1.json and summary-B2.json; per-token records: evaluation/records/; window sources and
token-id SHA-256: evaluation/eval-windows.json.
model-000NN-of-00048.safetensors + model.safetensors.index.json: every tensor that is not a routed expert of
layers 0-39, including the two FP8 Engram tables, byte-identical to the base release.trellismx/tp3/layer-LLL-rank-R.safetensors: the 3-bit routed experts of layer LLL for tensor-parallel rank R (each
rank holds all 384 experts' 768-wide third of the intermediate dimension), their CSF-compressed UE8M0 scales and the
per-layer vectors the runtime applies with the experts.trellismx/manifest.json: the format description and the SHA-256 and size of every expert file.config.json (the base config with quantization_config set for this format), tokenizer and encoding/ files from
the base release, LICENSE, SHA256SUMS (every file).evaluation/: report.json (every figure above with its interval), summary-B1.json and summary-B2.json (per
sequence and per window), records/B1 and records/B2 (per-token records) and eval-windows.json (every window's
sources, token-id SHA-256 and overlap screen). B1 = serving formats, B2 = weights only.serving/: docker-compose.yml, serve.sh and SERVING.md for the serving image.The FP32 teacher logits used for the KLD figures are in the dataset
brandonmusic/DeepSeek-V4.1-Flash-1017-Teacher-Logits (revision 68379d81): folder cuts-2048/ for the 2,048-token
sequences and windows-8192/ for the 8,192-token windows, with every window's sources and token-id SHA-256.
deepseek-ai/DeepSeek-V4.1-Flash-1017), MIT License (LICENSE).ghcr.io/local-inference-lab/vllm, https://github.com/local-inference-lab), a
fork of vLLM (Apache-2.0, vLLM contributors), and the open-source projects that image bundles, each under its own
license: FlashInfer, LMCache, InstantTensor, xgrammar and fastokens.evaluation/eval-windows.json.Have the files? Submit a torrent.
Submit a torrentHave the complete files and permission to share them? Replace the example folder path. The script checks the files, makes a torrent and submits its magnet and checksums. Keep your torrent client seeding. Get your community key from your settings, and read the script before running it.
curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo brandonmusic/DeepSeek-V4.1-Flash-1017-TrellisMX-K3 ./model-folderdeepseek-ai/DeepSeek-V4.1-Flash-1017