DeepSeek V4.1 Flash 1017 for Razor
DeepSeek V4.1 Flash 1017 packed to run locally on a single 128 GB Mac with Razor.
[!WARNING] Razor is not open source yet. The runtime that loads these files has not been publicly released. You can download the weights now, but you can't run them until Razor is published.
[!IMPORTANT] These files only run in Razor on Apple Silicon. llama.cpp and other GGUF runtimes can't load them.
Files
DeepSeek-V4.1-Flash-1017-TRL-R2.gguf(349.3 GB): the model. The routed experts are compressed to about 2 bits per weight, with more bits on the experts that matter most for chat and non-English text; everything else keeps the checkpoint's original precision. SHA-256ced50f57dfd543f6272296828145bff15fc20abea01fba1b92b82758543805e6.DeepSeek-V4.1-Flash-1017-DSpark.gguf(8.6 GB): an optional small draft model that speeds up generation through speculative decoding.
The model is larger than 128 GB of RAM. Razor streams the experts it needs from the internal SSD into a memory cache, so a fast internal SSD matters.
Requirements
- Apple Silicon Mac with 128 GB of unified memory. Razor was developed and tested on an M5 Max.
- macOS 15 or later.
- About 360 GB of free disk space for both files.
Run
Download:
hf download flaviodelgrosso/deepseek-v4.1-flash-1017-gguf --local-dir ~/.razor/models
Serve, once Razor is available:
razor serve --model ~/.razor/models/DeepSeek-V4.1-Flash-1017-TRL-R2.gguf \
--speculation opportunistic --dspark ~/.razor/models/DeepSeek-V4.1-Flash-1017-DSpark.gguf
Razor serves OpenAI- and Anthropic-compatible APIs, so coding agents and chat clients can connect to it directly.
Quality
On 48 held-out prompts, this is how often the compressed model picks the same next token as the full-precision model:
| Category | Agreement |
|---|---|
| Coding | 97.8 % |
| Reasoning | 96.0 % |
| Chat | 88.2 % |
| Multilingual | 79.8 % |
Code and reasoning are nearly lossless. Non-English text loses the most.
Speed
Measured on an Apple M5 Max with 128 GB (2,048-token prose prompt, 256 generated tokens, automatic expert cache):
- About 36 tokens/s on ordinary text (27.3–27.5 ms per token) once the expert cache has warmed up; about 34 tokens/s on the first request after loading, while the cache still misses experts.
- 71–79 tokens/s with the DSpark draft model on predictable text. On short, varied prose it gives little or no gain.
Sustained generation runs a few percent slower as the Mac heats up.
License
MIT, as upstream. The model weights are © DeepSeek (license).