# DeepSeek-V4.1-Flash-1017 on 4× DGX Spark with SGLang

Status: production. Measured: 2026-10-18. Web page: https://aidenle.com/recipes/deepseek-v4-1-flash-1017-sglang-4x-dgx-spark/
Image: `aidendle94/sparkrun-sglang-dsv41-gb10:production-1.7.1`

DeepSeek-V4.1-Flash-1017 is a weight update, so the SGLang recipe serves it unchanged. This page shows how to swap the weights on a running fleet with a short downtime window. Decode speed stays the same.

**Time:** About 45 min to download the 510 GB checkpoint, then about 20 min of downtime for the switch

**Result:** The same 4-node SGLang fleet on DeepSeek's 2026-10-17 update: 66.3 tok/s against 65.9 tok/s on a 10-turn coding conversation

## What you need

- A running fleet from the DeepSeek-V4.1-Flash SGLang recipe on this site (image aidendle94/sparkrun-sglang-dsv41-gb10:production-1.7.1)
- The deepseek-ai/DeepSeek-V4.1-Flash-1017 weights (510 GB) and the disk space for them
- About 50 GB of local NVMe space on each node for the new Engram row copies
- huggingface_hub with hf_xet (some shards are too large for the plain HTTP download)

## Overview

This page shows how to swap a running fleet from DeepSeek-V4.1-Flash to DeepSeek-V4.1-Flash-1017. The fleet is the one from the [SGLang recipe](https://aidenle.com/recipes/deepseek-v4-1-flash-sglang-4x-dgx-spark.md) on this site: four DGX Spark GB10 nodes. Only the weights change, so the same image and settings serve the new model at the same speed.

DeepSeek calls V4.1-Flash-1017 a minor update. Its configuration and its 96,085 tensors are the same, but every shard of weights changed.

| Benchmark (from DeepSeek's model card) | V4.1-Flash | V4.1-Flash-1017 |
|---|---|---|
| HLE, no tools | 36.8 | **42.6** |
| Terminal-Bench 4.0 (Claude Code harness) | 31.2 | **42.3** |
| DeepSWE v1.1 | 74.2 | **77.0** |

DeepSeek's numbers, not measured here.

## Build

### Swap the weights on the running fleet

1. **Download the 510 GB checkpoint under a memory limit.** For example: `systemd-run --user -p MemoryMax=4G -p MemorySwapMax=0 hf download deepseek-ai/DeepSeek-V4.1-Flash-1017 --revision <rev>`. Fetch the largest shards with xet set to one worker and no chunk cache (`--max-workers 1`, `HF_XET_CHUNK_CACHE_SIZE_BYTES=0`).
2. **Check every large file** against the sha256 that the Hugging Face Hub lists, reading with direct I/O (`dd iflag=direct`).
3. **Copy the new revision into the existing repo directory** that the other nodes mount over NFS. Stage it beside that directory and move it in when complete. Limit the memory of the receiving rsync too (`--rsync-path='systemd-run --user --scope -q -p MemoryMax=2G rsync'`).
4. **Rebuild the Engram row copies** with `tools/engram_local.py`. Use the row ranges from each copy's `engram-local.json`: a copy built with other ranges fails at boot.
5. **Change two lines of the fleet's settings file**, as the block below shows. In the launcher's `--dry-run` output, only the snapshot path and the Engram mount should differ.
6. **Switch in one downtime window.** Disarm the watchdog, stop the fleet, edit the file, then run `launch/relaunch.sh`. Expect about 17.5 minutes of downtime.

fleet.env · the only change:

```bash
-SNAP=snapshots/<V4.1-Flash revision>
+SNAP=snapshots/<V4.1-Flash-1017 revision>
-ENGRAM_LOCAL_DIR=dsv41-engram-local
+ENGRAM_LOCAL_DIR=dsv41-engram-local-1017
```

## Performance

### The same fleet before and after the switch

| Same fleet, image production-1.7.1 | V4.1-Flash | V4.1-Flash-1017 |
|---|---|---|
| Decode speed, 10-turn coding conversation on ~62K tokens of code | 65.9 tok/s | **66.3 tok/s** |
| KV pool (memory for what the model has read), at memory fraction 0.80 | 5,163,008–6,042,368 tokens on recent boots | 6,198,016 tokens |
| Same greedy chats alone and four at once | OK | OK, 0 of 8 broken |
| Image input | OK | OK |
| Tool call with reasoning on | OK | OK |

Measured on the same fleet before and after the switch.

Measured: 2026-10-18

The setup of the DeepSeek-V4.1-Flash SGLang recipe, with the new model snapshot.

| Measurement | Value | Note |
|---|---|---|
| Coding conversation | 66.3 tok/s | 10 turns over about 62K tokens of source code |
| KV pool | 6.20M tokens | Sized automatically |
| Boot to healthy | 575 s | From launch until the server answers a test chat |
| Checks | pass | Batched requests, images and a tool round trip |

## Notes

#### Notes

- **On production-1.7.1, send the reasoning effort as an integer from 1 to 100, not as a name.**
- **The test fleet no longer serves this model.** Since 2026-11-12 it runs [Inkling-2-Small](https://aidenle.com/recipes/inkling-2-small-sglang-4x-dgx-spark.md).
- **To go back, keep the old revision on disk.** Restore the old `SNAP` value and rebuild the Engram copies.
