Text Generation
GGUF
quantized
deepseek
deepseek-v4
deepseek-v4-flash
Mixture of Experts
mixture-of-experts
mxfp4
iq2_xxs
q2_k
ds4
dspark
apple-silicon
metal
imatrix
conversational
Instructions to use apetersson/DeepSeek-V4-Flash-0731-DS4-Quality128 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use apetersson/DeepSeek-V4-Flash-0731-DS4-Quality128 with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf apetersson/DeepSeek-V4-Flash-0731-DS4-Quality128 # Run inference directly in the terminal: llama cli -hf apetersson/DeepSeek-V4-Flash-0731-DS4-Quality128
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf apetersson/DeepSeek-V4-Flash-0731-DS4-Quality128 # Run inference directly in the terminal: llama cli -hf apetersson/DeepSeek-V4-Flash-0731-DS4-Quality128
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf apetersson/DeepSeek-V4-Flash-0731-DS4-Quality128 # Run inference directly in the terminal: ./llama-cli -hf apetersson/DeepSeek-V4-Flash-0731-DS4-Quality128
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf apetersson/DeepSeek-V4-Flash-0731-DS4-Quality128 # Run inference directly in the terminal: ./build/bin/llama-cli -hf apetersson/DeepSeek-V4-Flash-0731-DS4-Quality128
Use Docker
docker model run hf.co/apetersson/DeepSeek-V4-Flash-0731-DS4-Quality128
- LM Studio
- Jan
- vLLM
How to use apetersson/DeepSeek-V4-Flash-0731-DS4-Quality128 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "apetersson/DeepSeek-V4-Flash-0731-DS4-Quality128" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "apetersson/DeepSeek-V4-Flash-0731-DS4-Quality128", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/apetersson/DeepSeek-V4-Flash-0731-DS4-Quality128
- Ollama
How to use apetersson/DeepSeek-V4-Flash-0731-DS4-Quality128 with Ollama:
ollama run hf.co/apetersson/DeepSeek-V4-Flash-0731-DS4-Quality128
- Unsloth Studio
How to use apetersson/DeepSeek-V4-Flash-0731-DS4-Quality128 with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for apetersson/DeepSeek-V4-Flash-0731-DS4-Quality128 to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for apetersson/DeepSeek-V4-Flash-0731-DS4-Quality128 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for apetersson/DeepSeek-V4-Flash-0731-DS4-Quality128 to start chatting
- Pi
How to use apetersson/DeepSeek-V4-Flash-0731-DS4-Quality128 with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf apetersson/DeepSeek-V4-Flash-0731-DS4-Quality128
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "apetersson/DeepSeek-V4-Flash-0731-DS4-Quality128" } ] } } }Run Pi
# Start Pi in your project directory: pi
- OpenClaw new
How to use apetersson/DeepSeek-V4-Flash-0731-DS4-Quality128 with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf apetersson/DeepSeek-V4-Flash-0731-DS4-Quality128
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "apetersson/DeepSeek-V4-Flash-0731-DS4-Quality128" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Docker Model Runner
How to use apetersson/DeepSeek-V4-Flash-0731-DS4-Quality128 with Docker Model Runner:
docker model run hf.co/apetersson/DeepSeek-V4-Flash-0731-DS4-Quality128
- Lemonade
How to use apetersson/DeepSeek-V4-Flash-0731-DS4-Quality128 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull apetersson/DeepSeek-V4-Flash-0731-DS4-Quality128
Run and chat with the model
lemonade run user.DeepSeek-V4-Flash-0731-DS4-Quality128-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use apetersson/DeepSeek-V4-Flash-0731-DS4-Quality128 with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf apetersson/DeepSeek-V4-Flash-0731-DS4-Quality128
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default apetersson/DeepSeek-V4-Flash-0731-DS4-Quality128
Run Hermes
hermes
- Atomic Chat
File size: 16,944 Bytes
a40bb77 f07f3e1 a40bb77 f07f3e1 a40bb77 f07f3e1 a40bb77 f07f3e1 a40bb77 f07f3e1 a40bb77 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 | ---
license: mit
library_name: gguf
pipeline_tag: text-generation
base_model: deepseek-ai/DeepSeek-V4-Flash-0731
base_model_relation: quantized
quantized_by: apetersson
tags:
- gguf
- quantized
- deepseek
- deepseek-v4
- deepseek-v4-flash
- moe
- mixture-of-experts
- mxfp4
- iq2_xxs
- q2_k
- ds4
- dspark
- apple-silicon
- metal
---
# DeepSeek V4 Flash 0731 — DS4 Quality128
> **Clean official weights, exact MXFP4 experts, maximum resident quality.**
> **Required DS4 version:** this model is not compatible with an older DS4
> build. Its native MXFP4 tensors require
> [a recent ds4 version from the main branch](https://github.com/antirez/ds4).
> That version runs both the target model and the supplied DSpark support model.
> **Validation status:** conversion and CPU structural validation are complete.
> Metal generation, DSpark acceptance, throughput, peak-memory and actual
> one-million-token-context tests for this exact artifact are still pending.
This is a quality-first DS4 package of the official
[`deepseek-ai/DeepSeek-V4-Flash-0731`](https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash-0731)
checkpoint. It is designed to keep the target model—and optionally its real
three-stage DSpark speculative drafter—resident on a 128 GB Apple Silicon host.
This model was quantized directly from the original official checkpoint. No
behavioral weight edit was applied before quantization. All model weights were
regenerated from the official local FP8 checkpoint; no tensor values were
copied from another GGUF or quantized model.
## Artifacts
| File | Purpose | Bytes | GiB | SHA-256 |
| --- | --- | ---: | ---: | --- |
| `DeepSeek-V4-Flash-0731-DS4-Quality128.gguf` | Authoritative 43-layer target model | `102,826,238,912` | `95.7644` | `efcbf786154c2aec61511785d04a4c8d98ee42500b60ff8a810717fc0a69d1d3` |
| `DeepSeek-V4-Flash-0731-DS4-Quality128-DSpark-support.gguf` | Three-stage speculative drafter; not standalone | `7,297,737,120` | `6.7965` | `393b807aa0a409f1c006f0e700bbb91a80d3de28daa56c222edf944250075c66` |
| **Combined GGUFs** | — | **`110,123,976,032`** | **`102.5609`** | — |
`BUILD_MANIFEST.json`, `PROVENANCE.md` and `SHA256SUMS` provide the full
machine-readable build record and integrity inventory.
## Quantization profile
### Main target model
| Tensor class | Quantization/storage | Rationale |
| --- | --- | --- |
| Routed gate/up/down on layers 10, 14, 30, 34, 37, 38, 39, 40, 41 and 42 | Exact native `MXFP4` | Preserves source packed I8 codes and F8_E8M0 scales byte-for-byte on sensitivity-selected layers. |
| Routed gate/up on the other 33 MoE layers | `IQ2_XXS`, importance-matrix calibrated | Applies the most aggressive compression to the largest tensor bank. |
| Routed down on the other 33 MoE layers | `Q2_K`, importance-matrix calibrated | More conservative two-bit storage on the projection that writes expert output to the residual stream. |
| Attention projections | `Q8_0` | Protects a dense path used for every token. |
| Shared experts | `Q8_0` | Protects the expert path active for every token. |
| Vocabulary/output head | `Q8_0` | Protects final-logit fidelity. |
| Indexer `attn_q_b` tensors on layers 2, 4, …, 42 | forced `F16` | Preserves a small, sensitive compressed-attention component. |
| Remaining control, normalization, routing and auxiliary tensors | template-declared `F16`/`F32`/`I32` | Avoids forcing small or numerically sensitive tensors into the low-bit expert rules. |
Observed main-GGUF inventory from strict DS4 inspection:
| GGUF type | Tensors |
| --- | ---: |
| `F32` | 492 |
| `F16` | 359 |
| `I32` | 3 |
| `Q8_0` | 345 |
| `IQ2_XXS` | 66 |
| `Q2_K` | 33 |
| `MXFP4` | 30 |
| **Total** | **1,328** |
The target GGUF is version 3, describes approximately 284.33 billion logical
parameters and retains the checkpoint's declared 1,048,576-token training
context. That declaration is not evidence that a one-million-token inference
run fits or remains robust on a particular machine.
### DSpark support model
This is the actual 0731 three-stage DSpark module (`mtp.0`–`mtp.2`), not the
legacy single-stage MTP attachment. The target model remains authoritative and
verifies speculative proposals.
| Parameter | Value |
| --- | --- |
| Stages | 3 |
| Proposal block size | 5 |
| Target layers | 40, 41, 42 |
| Markov rank | 256 |
| Noise token ID | 128799 |
| Routed gate/up | `IQ2_XXS` (6 tensors) |
| Routed down | exact native `MXFP4` (3 tensors) |
| Dense projections | `Q8_0` (31 tensors) |
| Control/auxiliary tensors | 7 `F16` + 34 `F32` tensors |
| Total | 81 tensors |
The support GGUF describes approximately 19.85 billion logical parameters and
must be loaded alongside its matching target GGUF.
## Importance calibration
The routed-expert calibration source is the 0731-native matrix from
[`ox-ox/DeepSeek-V4-Flash-0731-GGUF`](https://huggingface.co/ox-ox/DeepSeek-V4-Flash-0731-GGUF):
- Repository revision: `6d58a3a36030c3ccb969bb5759fc6ae08cd299f8`
- File: `imatrix/DeepSeek-V4-Flash-0731-chat-v2-routed-moe-ds4-1p5m.dat`
- Size: `450,892,654` bytes
- SHA-256: `6fce7674df701de544e5d3351aab04e67602eddeafeb48cf70e77ebe47239eb4`
- Coverage: exactly 129 routed target tensors (43 layers × gate/up/down), with exact name and vector-dimension validation
The build ran strict imatrix validation. Preserved native MXFP4 tensors do not
consume imatrix data because they are copied from the official FP8 checkpoint's
packed source representation rather than requantized.
The published matrix has no native DSpark entries. The support-model importer
therefore made deterministic target-layer proxy aliases:
- `mtp.0` ← target layer 40
- `mtp.1` ← target layer 41
- `mtp.2` ← target layer 42
The extended matrix contains 138 entries and has SHA-256
`689b446ed2e2657ebcb69a6516781ee0444e07641aeb6125233fb4e6fe7cbce3`.
This is an explicitly recorded proxy, not a fresh activation capture from the
DSpark drafter.
## Weight provenance and metadata template
The sole source of weight values was the local copy of
`deepseek-ai/DeepSeek-V4-Flash-0731` at official revision
`9e165c30e2704aec5d9d593cce3eebd58bbef1cb`. All 48 FP8 weight shards—
`166,886,535,336` bytes in total—were fully SHA-256 verified and guarded
against mutation throughout conversion.
The exact-0731 GGUF from
[`antirez/deepseek-v4-gguf`](https://huggingface.co/antirez/deepseek-v4-gguf)
was used only as a bounded metadata, tokenizer, tensor-order and shape template:
- Repository revision: `1cd7b564460821938add0475a60b942c409295e0`
- Template LFS SHA-256: `ca22ae2f838e14077c22bc1c1417b71b45b5e5a3687bd96c2ac6e17fdb6261c0`
- Template Xet object: `7da16e1025c1b856490c29c341f4e467d15cb195389c70383dade5e6108799ac`
- Verified 64 MiB header SHA-256: `f0e1d5e8f3b008402aa6eb32cada3873dd926c8bf5e7d00d7788eec65f09dd6d`
- Template weight values used: **no**
## Runtime requirement
Use [a recent ds4 version from the main branch](https://github.com/antirez/ds4).
This is required because the main GGUF contains 30 native MXFP4 routed-expert
tensors. An older runtime without the MXFP4 loader and Metal kernels now in
`main` is not compatible, even if it can parse the GGUF header.
Install or update a `main`-branch checkout:
```bash
git clone https://github.com/antirez/ds4.git
cd ds4
git switch main
git pull --ff-only
make
```
Build note: the [`d516d4e` quantizer PR](https://github.com/apetersson/ds4-omlx/tree/d516d4eeb82c454aeb2831af1b1961801d6b571b),
tracked as [`antirez/ds4#642`](https://github.com/antirez/ds4/issues/642),
was needed to create the preserved-MXFP4 DSpark GGUF. Users do **not** need that
PR to run either supplied file.
Do not substitute `antirez/ds4` `main`, an older DS4 binary or a generic GGUF
runtime. Container parsing alone does not demonstrate correct native MXFP4 or
mixed DSpark execution.
## Running with DS4
Target-only Metal inference:
```bash
./ds4 --metal \
-m DeepSeek-V4-Flash-0731-DS4-Quality128.gguf
```
Greedy DSpark inference:
```bash
./ds4 --metal \
-m DeepSeek-V4-Flash-0731-DS4-Quality128.gguf \
--mtp DeepSeek-V4-Flash-0731-DS4-Quality128-DSpark-support.gguf \
--dspark --temp 0
```
DSpark is opt-in, accelerates generation rather than prefill, and can be neutral
or slower when proposal acceptance is low. Sampled decoding does not use DSpark
proposals in the pinned runtime.
Structural inspection:
```bash
./ds4 --cpu --inspect \
-m DeepSeek-V4-Flash-0731-DS4-Quality128.gguf \
--mtp DeepSeek-V4-Flash-0731-DS4-Quality128-DSpark-support.gguf \
--dspark-strict
```
## Memory planning on a 128 GB Mac
The target machine has 128 GiB (`137,438,953,472` bytes) of unified physical
memory, but the more relevant ceiling for a large Metal allocation is its
approximately `121.60 GiB` `recommendedMaxWorkingSetSize`. The remaining
roughly `6.40 GiB` is not extra model capacity; macOS, applications, drivers and
untracked transient allocations still need memory. A configuration at or below
128 GiB can therefore be unsafe when it is above—or too close to—the Metal
working-set recommendation.
### Fixed weight cost
| Loaded weights | GiB | Share of 128 GiB | Share of 121.60 GiB Metal recommendation |
| --- | ---: | ---: | ---: |
| Target model only | `95.7644` | `74.8%` | `78.8%` |
| Target + DSpark support | `102.5609` | `80.1%` | `84.3%` |
These are GGUF payload sizes, before KV cache, indexed-attention scratch,
prefill workspace, verifier state and other runtime allocations. DS4's planner
uses an approximately `97.63 GiB` resident span for the main model after its
mapping/alignment accounting, rather than treating the main file size as the
entire live allocation.
### Context-length scaling at prefill chunk 1,024
`--ctx` is the total prompt-plus-completion capacity. `--prefill-chunk` is the
maximum prompt microbatch DS4 processes at once; it is the relevant “batch
size” for this single-session memory calculation. A larger chunk can improve
prefill throughput, but indexed-attention scratch grows with both context length
and chunk size.
The following are conservative planning estimates. “Margin” is remaining space
under the `121.60 GiB` Metal recommendation, not free system RAM.
| Context | DSpark off: total | Off: margin | DSpark on: total | On: margin |
| ---: | ---: | ---: | ---: | ---: |
| 4,096 | `97.77 GiB` | `23.83 GiB` | `104.57 GiB` | `17.03 GiB` |
| 32,768 | `98.05 GiB` | `23.55 GiB` | `104.85 GiB` | `16.75 GiB` |
| 131,072 | `98.99 GiB` | `22.61 GiB` | `105.79 GiB` | `15.81 GiB` |
| 262,144 | `100.24 GiB` | `21.36 GiB` | `107.04 GiB` | `14.56 GiB` |
| 524,288 | `102.75 GiB` | `18.85 GiB` | `109.55 GiB` | `12.05 GiB` |
| 1,048,576 | `107.77 GiB` | `13.83 GiB` | `114.56 GiB` | `7.04 GiB` |
At ordinary 4K–128K contexts, the model weights dominate and chunk 1,024 leaves
substantial planned margin. At 512K and especially 1M, the compressed KV and
context-by-chunk attention workspace become material. DSpark adds approximately
`6.80 GiB` at every context length because its support model remains resident
during prefill even though speculative decoding only accelerates generation.
### Prefill batch-size effect at one-million-token context
This table holds `--ctx 1048576` constant and varies `--prefill-chunk`. Totals
are the conservative envelope of DS4's resident-span/context estimator and the
completed release planning model. Percentages use all 128 GiB of physical RAM;
the Metal margin remains the safer operational measure.
| Prefill chunk | DSpark off total | Off: 128 GiB used | Off: Metal margin | DSpark on total | On: 128 GiB used | On: Metal margin |
| ---: | ---: | ---: | ---: | ---: | ---: | ---: |
| 256 | `106.20 GiB` | `83.0%` | `15.40 GiB` | `113.00 GiB` | `88.3%` | `8.60 GiB` |
| 512 | `106.72 GiB` | `83.4%` | `14.88 GiB` | `113.52 GiB` | `88.7%` | `8.08 GiB` |
| 1,024 | `107.77 GiB` | `84.2%` | `13.83 GiB` | `114.56 GiB` | `89.5%` | `7.04 GiB` |
| 2,048 | `110.30 GiB` | `86.2%` | `11.30 GiB` | `117.09 GiB` | `91.5%` | `4.51 GiB` |
| 4,096 | `116.44 GiB` | `91.0%` | `5.16 GiB` | `123.24 GiB` | `96.3%` | **`−1.64 GiB`** |
The 4,096/DSpark combination exceeds Metal's recommendation despite fitting
numerically inside 128 GiB and should not be treated as resident-safe. The
2,048/DSpark combination is also tight: its `4.51 GiB` planned Metal margin can
be consumed by omitted driver and verifier peaks. Chunk 1,024 is the sensible
first DSpark experiment at 1M; target-only chunk 2,048 is the more conservative
maximum-quality starting point. Chunks 256–512 provide more margin at the cost
of more prefill iterations and likely lower prompt-processing throughput.
Target-only 1M starting point:
```bash
./ds4 --metal \
-m DeepSeek-V4-Flash-0731-DS4-Quality128.gguf \
--ctx 1048576 --prefill-chunk 2048
```
DSpark 1M starting point, only after unloading other large applications and
measuring the target-only peak:
```bash
./ds4 --metal \
-m DeepSeek-V4-Flash-0731-DS4-Quality128.gguf \
--ctx 1048576 --prefill-chunk 1024 \
--mtp DeepSeek-V4-Flash-0731-DS4-Quality128-DSpark-support.gguf \
--dspark --temp 0
```
### Multiple sessions and server batching
The tables describe one resident session. They do not mean that `N` concurrent
requests cost exactly `N` times the displayed total: weights and some graph
workspace are shared, while each resident session needs its own KV/context
buffers and live request state. DS4 reports the aggregate minimum context-buffer
request at server startup. For multi-user serving, start with one session,
measure the process and system peak, then raise concurrency one session at a
time; do not infer a safe concurrency count from the GGUF sizes alone.
All figures above are planning estimates, not measurements of this exact
artifact. Metal load, peak-memory capture and an actual 1,048,576-token run
remain required. Keep several GiB of additional operational margin, watch
memory pressure rather than only Activity Monitor's process RSS, and expect
other active models or large applications to invalidate the table.
## Reproducibility
- Build tooling revision: `e24746463a0a3e79036dd9c0472deac6ce704f08`
- Build driver SHA-256: `cb1569b909de010b4aaa2a1b1b7ed8e277bcdf41e32585f1651005b41e81567f`
- Build-time DS4/quantizer revision: `d516d4eeb82c454aeb2831af1b1961801d6b571b`
- oMLX revision: `76352ed2363e42b2146243463875756e683a640d`
- Profile SHA-256: `bc7f6470a0cb6208addf2ac52806d976108517119b411023da3fd91b492b218c`
- Build run ID: `20260801-161944-54912`
The tooling worktree was intentionally dirty and is cryptographically described
in `BUILD_MANIFEST.json`, alongside the complete profile, source-shard hashes,
calibration/template identities and exact converter commands.
## Validation status
Completed on 2026-08-01:
- focused build-driver and finalization test suites: 40/40 passed;
- every one of the 48 official source weight shards fully SHA-256 verified;
- strict routed-imatrix name and vector-dimension coverage passed;
- main GGUF: exact size, 1,328 tensors, exact name set and exact type histogram;
- DSpark GGUF: exact size, 81 tensors, three stages and target layers 40/41/42;
- strict DSpark binding: 81 tensors, 0 missing, 0 invalid and 0 metadata errors;
- `ds4 --cpu --inspect --dspark-strict` passed;
- byte-for-byte regeneration passed for all 30 main and all three DSpark native
MXFP4 tensors; and
- the original build payloads passed their recorded SHA-256 checks before
atomic publication; this README was added afterward and independently added
to `SHA256SUMS`.
Still required before making runtime, quality or performance claims:
- successful Metal load and deterministic generation with DSpark disabled;
- successful Metal generation with DSpark enabled and lossless target agreement;
- proposal acceptance rate and accepted tokens per target step;
- prompt-processing and generation tokens/second;
- measured peak unified memory and practical context limits on the target host;
- an actual 1,048,576-token context run; and
- capability/perplexity comparisons against the official FP8 source.
## Limitations and responsible use
Ultra-low-bit expert quantization can reduce reasoning, factuality, style
fidelity and long-context robustness even when dense paths and selected experts
are protected. Native MXFP4 Metal kernels and the mixed DSpark path are newer
than DS4's mature Q4_K path. This package does not guarantee correctness,
neutrality, safety, regulatory compliance or a particular response style.
Evaluate it for the intended workload and apply appropriate access controls.
## License and attribution
The upstream repository and weights are MIT licensed. This quantized derivative
retains that license. Credit DeepSeek-AI for the original model, ox-ox for the
0731 routed-expert importance matrix, antirez for DS4 and the exact-0731
metadata recipe, and apetersson for the DS4 fork, conversion profile and release
tooling.
|