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
+
---
|
| 2 |
+
pipeline_tag: text-generation
|
| 3 |
+
base_model: deepseek-ai/DeepSeek-V4-Flash-0731
|
| 4 |
+
license: mit
|
| 5 |
+
library_name: freetoken
|
| 6 |
+
tags:
|
| 7 |
+
- deepseek
|
| 8 |
+
- deepseek-v4
|
| 9 |
+
- dsfp4
|
| 10 |
+
- fp4
|
| 11 |
+
- quantized
|
| 12 |
+
- sparklab
|
| 13 |
+
- freetoken
|
| 14 |
+
- ftw
|
| 15 |
+
- dgx-spark
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# DeepSeek V4 Flash 0731 DS-FP4 — SparkLab FTW
|
| 19 |
+
|
| 20 |
+
This is a ready-to-run **SparkLab** checkpoint for
|
| 21 |
+
[`DeepSeek-V4-Flash-0731`](https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash-0731),
|
| 22 |
+
optimized for the **NVIDIA DGX Spark** and its Grace Blackwell GB10 Superchip.
|
| 23 |
+
|
| 24 |
+
**SparkLab** packages tested model recipes, hardware readiness checks, artifact
|
| 25 |
+
preparation, unified-memory planning, NVMe-backed MoE execution, and OpenAI-compatible
|
| 26 |
+
serving for one DGX Spark.
|
| 27 |
+
|
| 28 |
+
> **SparkLab source:** https://github.com/sixteen-miles-labs/freetoken
|
| 29 |
+
|
| 30 |
+
This deployment supports text input and text output. DeepSeek V4's custom message
|
| 31 |
+
encoding and reasoning-effort modes are preserved from the official checkpoint.
|
| 32 |
+
|
| 33 |
+
## What this repository contains
|
| 34 |
+
|
| 35 |
+
This repository does **not** introduce a new model or a new quantization. It repackages
|
| 36 |
+
DeepSeek AI's official
|
| 37 |
+
[`DeepSeek-V4-Flash-0731`](https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash-0731)
|
| 38 |
+
checkpoint into FreeToken Weight (FTW) format:
|
| 39 |
+
|
| 40 |
+
1. **[DeepSeek AI](https://huggingface.co/deepseek-ai)** developed and published the
|
| 41 |
+
original model and its DS-FP4 expert weights.
|
| 42 |
+
2. **[FreeToken](https://github.com/FlashML-org/FreeToken)** provides the native inference
|
| 43 |
+
backend, FTW format, conversion tooling, DS-FP4 kernels, and MoE expert-bank layout.
|
| 44 |
+
3. **SparkLab** provides the DGX Spark product experience: GB10 checks, model recipes,
|
| 45 |
+
capacity planning, artifact lifecycle, deployment policy, and serving workflow.
|
| 46 |
+
4. **[OakMind AI](https://huggingface.co/oakmindai)** performed, validated, documented,
|
| 47 |
+
and published this FTW conversion.
|
| 48 |
+
|
| 49 |
+
The exact source revision is
|
| 50 |
+
`7872f01b1d1fe23eabc4c98b48bffcef5a386062`. Conversion is precision-preserving:
|
| 51 |
+
routed MoE experts remain in DeepSeek's packed E2M1 FP4 representation with one UE8M0
|
| 52 |
+
scale per 32 weights. Other tensors retain their published FP8 or BF16 precision. No
|
| 53 |
+
training or conversion-time requantization was performed.
|
| 54 |
+
|
| 55 |
+
## Why use FTW?
|
| 56 |
+
|
| 57 |
+
FTW performs model-layout work ahead of launch. It stores routed experts in independently
|
| 58 |
+
addressable banks and aligns the remaining tensors for FreeToken's native loader. This
|
| 59 |
+
allows SparkLab to keep active expert rows in unified memory and fetch cache misses from
|
| 60 |
+
local NVMe without materializing the complete checkpoint in application memory.
|
| 61 |
+
|
| 62 |
+
FTW does not alter the model's expected output quality. Fast local NVMe storage is
|
| 63 |
+
required for the disk-backed MoE path.
|
| 64 |
+
|
| 65 |
+
## Run with SparkLab on NVIDIA DGX Spark
|
| 66 |
+
|
| 67 |
+
Install SparkLab, then download this checkpoint to local NVMe:
|
| 68 |
+
|
| 69 |
+
```bash
|
| 70 |
+
git clone https://github.com/sixteen-miles-labs/freetoken.git
|
| 71 |
+
cd freetoken
|
| 72 |
+
./install.sh
|
| 73 |
+
|
| 74 |
+
hf download oakmindai/DeepSeek-V4-Flash-0731-DSFP4-FTW \
|
| 75 |
+
--local-dir ~/models/DeepSeek-V4-Flash-0731-DSFP4-FTW
|
| 76 |
+
```
|
| 77 |
+
|
| 78 |
+
Verify the DGX Spark environment before loading the model:
|
| 79 |
+
|
| 80 |
+
```bash
|
| 81 |
+
sparklab doctor \
|
| 82 |
+
--storage-path ~/models/DeepSeek-V4-Flash-0731-DSFP4-FTW
|
| 83 |
+
```
|
| 84 |
+
|
| 85 |
+
Start SparkLab's OpenAI-compatible API server:
|
| 86 |
+
|
| 87 |
+
```bash
|
| 88 |
+
FREETOKEN_DISK_READ_WORKERS=20 sparklab serve \
|
| 89 |
+
--model ~/models/DeepSeek-V4-Flash-0731-DSFP4-FTW \
|
| 90 |
+
--moe-backend offload \
|
| 91 |
+
--moe-storage disk \
|
| 92 |
+
--moe-host-cache-gb 4 \
|
| 93 |
+
--memory-ratio 0.90 \
|
| 94 |
+
--moe-cache-auto \
|
| 95 |
+
--moe-prefill-sparse-max-tokens 512 \
|
| 96 |
+
--attention-backend dsv4_sparse \
|
| 97 |
+
--cuda-graph-max-bs 0 \
|
| 98 |
+
--cache-type radix \
|
| 99 |
+
--max-running-requests 1 \
|
| 100 |
+
--host 127.0.0.1 \
|
| 101 |
+
--port 8000
|
| 102 |
+
```
|
| 103 |
+
|
| 104 |
+
After the readiness message appears, send a chat-completions request:
|
| 105 |
+
|
| 106 |
+
```bash
|
| 107 |
+
curl http://127.0.0.1:8000/v1/chat/completions \
|
| 108 |
+
-H 'Content-Type: application/json' \
|
| 109 |
+
-d '{
|
| 110 |
+
"model": "DeepSeek-V4-Flash-0731-DSFP4-FTW",
|
| 111 |
+
"messages": [{"role": "user", "content": "Explain unified memory."}],
|
| 112 |
+
"max_tokens": 256,
|
| 113 |
+
"stream": true
|
| 114 |
+
}'
|
| 115 |
+
```
|
| 116 |
+
|
| 117 |
+
## Credits and license
|
| 118 |
+
|
| 119 |
+
- Model architecture, training, and official DS-FP4 checkpoint:
|
| 120 |
+
[deepseek-ai/DeepSeek-V4-Flash-0731](https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash-0731)
|
| 121 |
+
- DGX Spark product, orchestration, model workflow, and deployment guidance:
|
| 122 |
+
**[SparkLab](https://github.com/sixteen-miles-labs/freetoken)**
|
| 123 |
+
- Native inference engine, FTW format, conversion, and kernels:
|
| 124 |
+
**[FreeToken](https://github.com/FlashML-org/FreeToken)**
|
| 125 |
+
- FTW conversion and publishing: [OakMind AI](https://huggingface.co/oakmindai)
|
| 126 |
+
|
| 127 |
+
The upstream model is distributed under the MIT License. This repository preserves the
|
| 128 |
+
supplied `LICENSE` and source provenance. Review the
|
| 129 |
+
[official model card](https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash-0731) for its
|
| 130 |
+
usage guidance, evaluation details, and model-specific instructions.
|
| 131 |
+
|
| 132 |
+
## Citation
|
| 133 |
+
|
| 134 |
+
If you use DeepSeek V4 Flash, cite the official technical report linked from the
|
| 135 |
+
[upstream model card](https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash-0731).
|
| 136 |
+
|
| 137 |
+
If you use SparkLab, cite the software:
|
| 138 |
+
|
| 139 |
+
```bibtex
|
| 140 |
+
@software{sixteenmileslabs2026sparklab,
|
| 141 |
+
title={SparkLab: Frontier Open-Weight Model Inference on NVIDIA DGX Spark},
|
| 142 |
+
author={{Sixteen Miles Labs}},
|
| 143 |
+
year={2026},
|
| 144 |
+
url={https://github.com/sixteen-miles-labs/freetoken},
|
| 145 |
+
license={Apache-2.0}
|
| 146 |
+
}
|
| 147 |
+
```
|
| 148 |
+
|
| 149 |
+
If you use the underlying inference research, cite FreeToken:
|
| 150 |
+
|
| 151 |
+
```bibtex
|
| 152 |
+
@article{yang2026freetoken,
|
| 153 |
+
title={FreeToken: Efficient Edge-Native MoE Serving with Bandwidth-Adaptive Execution},
|
| 154 |
+
author={Yang, Shuo and Fan, Xiaoze and Pan, Melissa and Xi, Haocheng and Wang, Zhe and Sun, Shanlin and Keutzer, Kurt and Han, Song and Zaharia, Matei and Xu, Chenfeng and Stoica, Ion},
|
| 155 |
+
journal={arXiv preprint arXiv:2608.16157},
|
| 156 |
+
year={2026},
|
| 157 |
+
url={https://arxiv.org/abs/2608.16157}
|
| 158 |
+
}
|
| 159 |
+
```
|