MiaAI-Lab / DeepSeek-v4.1-Flash-1017-2x-DGX-Sparks
git clone https://github.com/MiaAI-Lab/DeepSeek-v4.1-Flash-1017-2x-DGX-Sparks.git
DeepSeek-V4.1-Flash-1017 EXL3 on 2x DGX Sparks with TensorFold
—
stars, 24h
+170
stars, 7 days · #326
+170
stars, 30 days · #1,470
170
★ total · +170% this week
25
forks · 13 open issues
Star history starts 2026-10-20; the chart appears after the second daily snapshot.
LanguageShell
LicenseApache-2.0
Created2026-10-18 (2d ago)
Last pushtoday
Watchers2
OwnerUser
Links
- GitHub: github.com/MiaAI-Lab/DeepSeek-v4.1-Flash-1017-2x-DGX-Sparks
- Homepage: https://mia-ai.net
- Releases · Issues · Hacker News mentions
README excerpt
DeepSeek-V4.1-Flash-1017 EXL3 on 2x DGX Sparks with TensorFold by Mia's AI Lab Serve **DeepSeek-V4.1-Flash-1017** from two NVIDIA DGX Sparks (GB10, 128 GB each, linked by their ConnectX-7 ports) through an OpenAI-compatible API, with the full **1,048,576-token window**, **image input**, tool calling, thinking on or off, and **DSpark** speculative decoding from the checkpoint's own draft blocks, using TensorFold's native Zig engine and the 2.9 bit EXL3 quantization `Mia-AiLab/DeepSeek-V4.1-Flash-1017-EXL3-EAQ-v1-2.9-bpw` (196 GiB; experimental: its model card has no perplexity or KL measurement against the unquantized model). - Checkpoint: `Mia-AiLab/DeepSeek-V4.1-Flash-1017-EXL3-EAQ-v1-2.9-bpw` (39 shards, routed experts at 3 bits a weight, 2 bits in layers 18-22, attention at 5, shared experts at 4-5, head at 6, DSpark blocks at 4; the vision tower and the DSpark blocks are in it; the revision is pinned in `scripts/config.sh`), plus Engram's two tables, unquantized, from `deepseek-ai/DeepSeek-V4.1-Flash-1017` @ `1bae0e10` (shards 47 and 48, ~203 GB; the quantization leaves them out) - API model id: `DeepSeek-V4.1-Flash-1017`, port 8888 - Engine: TensorFold native (Zig 0.17.0), BertholomusAI's `dsv41` family at TP=2, one rank on each Spark - One command on the first Spark: `./start.sh` sets up both Sparks and starts both ranks; `./stop.sh` stops them - Optional `ABLIT=1`: keeps Mia EAQ 2.9 bpw and applies the matching Keys overlay by drowzeys. Requires your Hugging Face token and access to that gated repository; see Abliterated mode. ## Status What is checked, and how: - `DRY_RUN=1 ./start.sh` prints the link it found (on a pair of Sparks) and both ranks' docker commands; `./stop.sh` and `scripts/*.sh` pass `bash -n`. - The kit's RoPE tables, made from this checkpoint's `config.json`, match the kit's recorded sha256 (4 of 4), and the token map made from its `tokenizer.json` is byte for byte the one the kit's Engram fixtures were recorded with. `scripts/prepare.sh` checks both on every run. The checkpoint holds all 43 `gate.bias_vl` tensors (F32) the image routing bias is made from. - `zig/Dockerfile` builds (`tensorfold-dsv41:exl3-tp2-136c93b359b4`, 24.9 GB, about 6 minutes of Zig compiling on a Spark): `tensorfold-native 1.0.2`, `tf-dsv41-lanes`, `tf-dsv41-rank-cache` and the three inputs' scripts are in it. - `tf-dsv41-rank-cache` plans the TP=2 split: run on a copy of the real headers (tensor bytes left out) of an earlier 43-shard 2.9 bpw EXL3 checkpoint with the same tensor widths, it gives each rank 143,770 entries and 98.9 GiB, the ~98 GiB a Spark the weights need. (Not re-run on the 39-shard checkpoint.) Served and measured on one pair of Sparks (the head also runs a desktop and ~18 small containers; the worker is otherwise idle). Two sets of numbers, from two tools: **sparkDash** (real prose and code prompts, as sparkDash reported them, with the server at `CONTEXT=524288`, up to 4 streams, drafts on): | Decode, tok/s | 1 str