apetersson commited on
Commit
a40bb77
·
verified ·
1 Parent(s): 78623a7

Add files using upload-large-folder tool

Browse files
.gitattributes CHANGED
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ DeepSeek-V4-Flash-0731-DS4-Quality128-DSpark-support.gguf filter=lfs diff=lfs merge=lfs -text
37
+ DeepSeek-V4-Flash-0731-DS4-Quality128.gguf filter=lfs diff=lfs merge=lfs -text
BUILD_MANIFEST.json ADDED
@@ -0,0 +1,1052 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema": "deepseek-model-tools.build128.v1",
3
+ "artifact": "ds4-quality128-original",
4
+ "output": "DeepSeek-V4-Flash-0731-DS4-Quality128",
5
+ "engine": "ds4",
6
+ "dspark": true,
7
+ "created_at": "2026-08-01T16:00:13.755362+00:00",
8
+ "source": {
9
+ "path": "/Volumes/Samsung_4TB/models/DeepSeek-V4-Flash-0731",
10
+ "only_weight_source": true,
11
+ "source_kind": "original-huggingface-checkpoint",
12
+ "config_sha256": "6c8f3d2d3b48707541b88f32f22ef3f0f8a6b57d8523281e2b8d3cdb0ae9a023",
13
+ "index_sha256": "98efab455cf08dfbbbaaba6f570e1bf10bf927d2b4c3c453a59c2f6f0e3be92b",
14
+ "upstream_model": "deepseek-ai/DeepSeek-V4-Flash-0731",
15
+ "upstream_revision": "9e165c30e2704aec5d9d593cce3eebd58bbef1cb",
16
+ "identity_cache": "/Volumes/Samsung_4TB/models/DeepSeek-V4-Flash-0731/.cache/huggingface/download",
17
+ "weight_shards": [
18
+ {
19
+ "filename": "model-00001-of-00048.safetensors",
20
+ "sha256": "f3668ba4cccf1ca6a7eb84e888fb92c1cdc7204d472ba9db771e6fd3abf6b874",
21
+ "upload_mode": "lfs",
22
+ "bytes": 1059061856
23
+ },
24
+ {
25
+ "filename": "model-00002-of-00048.safetensors",
26
+ "sha256": "77b26c939a0e25b3113c8d6bb04e1901a748bd4a7d2589e3bfdaabdf1e9bba14",
27
+ "upload_mode": "lfs",
28
+ "bytes": 3566321192
29
+ },
30
+ {
31
+ "filename": "model-00003-of-00048.safetensors",
32
+ "sha256": "412abf4c906faadc221ef0cb50f90fe20bde8454a08ad4dc2364b6b79e7fda5c",
33
+ "upload_mode": "lfs",
34
+ "bytes": 3566321192
35
+ },
36
+ {
37
+ "filename": "model-00004-of-00048.safetensors",
38
+ "sha256": "9610f56bc587fb0ff9a8b68a60299482ee8c433fe5b5587e4257aca98add4a2e",
39
+ "upload_mode": "lfs",
40
+ "bytes": 3596229272
41
+ },
42
+ {
43
+ "filename": "model-00005-of-00048.safetensors",
44
+ "sha256": "f87a5ac7b8becc31f9c3169afd3a6f33fb82b4af9e21022e3755a10bc28f0180",
45
+ "upload_mode": "lfs",
46
+ "bytes": 3568768976
47
+ },
48
+ {
49
+ "filename": "model-00006-of-00048.safetensors",
50
+ "sha256": "4a4f3764e3fc772b9fba67f0a44ef68e18f178b6f00faa80b75db549e51894cd",
51
+ "upload_mode": "lfs",
52
+ "bytes": 3590024776
53
+ },
54
+ {
55
+ "filename": "model-00007-of-00048.safetensors",
56
+ "sha256": "df81bb80e27a689e01fa579eebd6499f86e0b6105f7fea18961aa5eebbbee9bc",
57
+ "upload_mode": "lfs",
58
+ "bytes": 3568768976
59
+ },
60
+ {
61
+ "filename": "model-00008-of-00048.safetensors",
62
+ "sha256": "224968d2b27f8669365ec08657a768dfec40da0585f85f302a31495931f6a526",
63
+ "upload_mode": "lfs",
64
+ "bytes": 3590024776
65
+ },
66
+ {
67
+ "filename": "model-00009-of-00048.safetensors",
68
+ "sha256": "04d69ef1071fff8721c62968c200a5583122b59b015e9ef9b2978bfed271b2b7",
69
+ "upload_mode": "lfs",
70
+ "bytes": 3568768976
71
+ },
72
+ {
73
+ "filename": "model-00010-of-00048.safetensors",
74
+ "sha256": "627145f4ebeb1cc3f5bdd03416b8cb7370b3c96974853cbeb8e5516ad5713e49",
75
+ "upload_mode": "lfs",
76
+ "bytes": 3590024776
77
+ },
78
+ {
79
+ "filename": "model-00011-of-00048.safetensors",
80
+ "sha256": "e4b8e601dcbebe902e0102e7b098b670a121cb8b9564dd719fc41d782c8416e0",
81
+ "upload_mode": "lfs",
82
+ "bytes": 3568768976
83
+ },
84
+ {
85
+ "filename": "model-00012-of-00048.safetensors",
86
+ "sha256": "64ed4e5f6126ba029c462c9d5fca0fc907c5f855b4ba01194d79560f6db16e42",
87
+ "upload_mode": "lfs",
88
+ "bytes": 3590026352
89
+ },
90
+ {
91
+ "filename": "model-00013-of-00048.safetensors",
92
+ "sha256": "8dfe199d07c07ddd141c2c0136a2237f1161250a1a03ebe8deaabac93440da1d",
93
+ "upload_mode": "lfs",
94
+ "bytes": 3568770544
95
+ },
96
+ {
97
+ "filename": "model-00014-of-00048.safetensors",
98
+ "sha256": "45db2f540f825f92453c50335e49aede58cca56bc578d1787c12a0fbca6593e5",
99
+ "upload_mode": "lfs",
100
+ "bytes": 3590026352
101
+ },
102
+ {
103
+ "filename": "model-00015-of-00048.safetensors",
104
+ "sha256": "5810381a0f05b7381c002d299ed6ac19e42eba8070dd17e2703546944d84f292",
105
+ "upload_mode": "lfs",
106
+ "bytes": 3568770544
107
+ },
108
+ {
109
+ "filename": "model-00016-of-00048.safetensors",
110
+ "sha256": "e0530b7024771b0ce2df9b40bcc2232578f3300178487ec216863b0b2835617b",
111
+ "upload_mode": "lfs",
112
+ "bytes": 3590026352
113
+ },
114
+ {
115
+ "filename": "model-00017-of-00048.safetensors",
116
+ "sha256": "ed11130247118b185ade893c0109bad896dd394cb1e066ce4fce044176261d94",
117
+ "upload_mode": "lfs",
118
+ "bytes": 3568770544
119
+ },
120
+ {
121
+ "filename": "model-00018-of-00048.safetensors",
122
+ "sha256": "e393fea96da2a3414ef089354fc32e1c8891954de40958c84d2c2ecf80365b25",
123
+ "upload_mode": "lfs",
124
+ "bytes": 3590026352
125
+ },
126
+ {
127
+ "filename": "model-00019-of-00048.safetensors",
128
+ "sha256": "a74ca4d3e8e82ce20c458bb8b1900110b753793ad4c58d08f38995f719c616f7",
129
+ "upload_mode": "lfs",
130
+ "bytes": 3568770544
131
+ },
132
+ {
133
+ "filename": "model-00020-of-00048.safetensors",
134
+ "sha256": "9f556769926e60309e8defe45ab59fc8b26ae460d30c190cd746a3d78c11e2c2",
135
+ "upload_mode": "lfs",
136
+ "bytes": 3590026352
137
+ },
138
+ {
139
+ "filename": "model-00021-of-00048.safetensors",
140
+ "sha256": "1671cce7f90d781f796b5ca6bf32dd1aeb740abcb2735e41ffd28f62485ce005",
141
+ "upload_mode": "lfs",
142
+ "bytes": 3568770544
143
+ },
144
+ {
145
+ "filename": "model-00022-of-00048.safetensors",
146
+ "sha256": "decd67a4bd97a75fa36861d2ad3067afeefa6a04a20da997fe6c19f171e70132",
147
+ "upload_mode": "lfs",
148
+ "bytes": 3590026352
149
+ },
150
+ {
151
+ "filename": "model-00023-of-00048.safetensors",
152
+ "sha256": "c61a3e179cdbee19bfb8cbc4e111928ce2f1e1f0f4729d7c0cd5634354a4689d",
153
+ "upload_mode": "lfs",
154
+ "bytes": 3568770544
155
+ },
156
+ {
157
+ "filename": "model-00024-of-00048.safetensors",
158
+ "sha256": "fc27aeb4233534f6f7781dcfe57127a3908ae10fc025c5d86dc0682057f8b2fe",
159
+ "upload_mode": "lfs",
160
+ "bytes": 3590026352
161
+ },
162
+ {
163
+ "filename": "model-00025-of-00048.safetensors",
164
+ "sha256": "a66b6b8d5821b68f5b511e4f91e12025cd07d0fa6d0b71e722d825a2d6d878ca",
165
+ "upload_mode": "lfs",
166
+ "bytes": 3568770544
167
+ },
168
+ {
169
+ "filename": "model-00026-of-00048.safetensors",
170
+ "sha256": "657b89314fbaf6eee4acce24b3baf7e5fd2c5986a96ad85b08d90539cde869fe",
171
+ "upload_mode": "lfs",
172
+ "bytes": 3590026352
173
+ },
174
+ {
175
+ "filename": "model-00027-of-00048.safetensors",
176
+ "sha256": "fb01f21a0da0446b0bdf25a127ab19a6b06006acd8735f06a9ebfe34423fd7f5",
177
+ "upload_mode": "lfs",
178
+ "bytes": 3568770544
179
+ },
180
+ {
181
+ "filename": "model-00028-of-00048.safetensors",
182
+ "sha256": "b2fd5cbbb639f16e673bc484e5cca16b52a58bf2ab4bd62592e0c5408712ad7c",
183
+ "upload_mode": "lfs",
184
+ "bytes": 3590026352
185
+ },
186
+ {
187
+ "filename": "model-00029-of-00048.safetensors",
188
+ "sha256": "9ec2fdf900275daeac0980490c5c731cc7868b151ce1de5698f48418de4fa5f0",
189
+ "upload_mode": "lfs",
190
+ "bytes": 3568770544
191
+ },
192
+ {
193
+ "filename": "model-00030-of-00048.safetensors",
194
+ "sha256": "9ed3c317bf967d32133ad3a068ee4c56aae9784bc8b7da694482437f37dc1782",
195
+ "upload_mode": "lfs",
196
+ "bytes": 3590026352
197
+ },
198
+ {
199
+ "filename": "model-00031-of-00048.safetensors",
200
+ "sha256": "d5078c3fca3e6370043606ead7856e0b8fe67a9aab52c415769f29934c4d7f5d",
201
+ "upload_mode": "lfs",
202
+ "bytes": 3568770544
203
+ },
204
+ {
205
+ "filename": "model-00032-of-00048.safetensors",
206
+ "sha256": "163653848f002718d3deaa6ce48885483fc1f2e12e50e44a47477c73ccd91393",
207
+ "upload_mode": "lfs",
208
+ "bytes": 3590026352
209
+ },
210
+ {
211
+ "filename": "model-00033-of-00048.safetensors",
212
+ "sha256": "f2cffd43f2a5f491f4691f8694e6bc08239158e143ae7063dc04f0eb0259214a",
213
+ "upload_mode": "lfs",
214
+ "bytes": 3568770544
215
+ },
216
+ {
217
+ "filename": "model-00034-of-00048.safetensors",
218
+ "sha256": "0f94945121474cfdb6a9ab175914d3811ffbf08e6cc54082e14e473c755d18d8",
219
+ "upload_mode": "lfs",
220
+ "bytes": 3590026352
221
+ },
222
+ {
223
+ "filename": "model-00035-of-00048.safetensors",
224
+ "sha256": "9cb6a316989f7c7385e3ec2bd42ffe766ee126c70ef3466742849982ee1b0f0f",
225
+ "upload_mode": "lfs",
226
+ "bytes": 3568770544
227
+ },
228
+ {
229
+ "filename": "model-00036-of-00048.safetensors",
230
+ "sha256": "7e6761421fe944c2143eb897b983085891b421c148c6c17fb5cd8eaa9bdaa497",
231
+ "upload_mode": "lfs",
232
+ "bytes": 3590026352
233
+ },
234
+ {
235
+ "filename": "model-00037-of-00048.safetensors",
236
+ "sha256": "a59d662f1143596d56c452a1230b717ce43edf678207398c573a2503b0f72c91",
237
+ "upload_mode": "lfs",
238
+ "bytes": 3568770544
239
+ },
240
+ {
241
+ "filename": "model-00038-of-00048.safetensors",
242
+ "sha256": "137fa617a74ba8e73fd76bb1010c7a85d791aaa150006cb66faa04a83e9e730f",
243
+ "upload_mode": "lfs",
244
+ "bytes": 3590026352
245
+ },
246
+ {
247
+ "filename": "model-00039-of-00048.safetensors",
248
+ "sha256": "a29af1aa519d7ce726235ea2c2b38146d756290cda7a82d90c4d4438155b53e4",
249
+ "upload_mode": "lfs",
250
+ "bytes": 3568770544
251
+ },
252
+ {
253
+ "filename": "model-00040-of-00048.safetensors",
254
+ "sha256": "8bc93d8a7d1987dc86b14e22b1d8f42ec31da92c56edd9f312daf43f33a6a206",
255
+ "upload_mode": "lfs",
256
+ "bytes": 3590026352
257
+ },
258
+ {
259
+ "filename": "model-00041-of-00048.safetensors",
260
+ "sha256": "fd312e7fdd6cb5796df356a7f0314f124851dc149991e9fb02c5bed45cc4ba05",
261
+ "upload_mode": "lfs",
262
+ "bytes": 3568770544
263
+ },
264
+ {
265
+ "filename": "model-00042-of-00048.safetensors",
266
+ "sha256": "4d19bf368083c9a183cb0849f316ec17b62f859ca824c0586e779657efb6e6a6",
267
+ "upload_mode": "lfs",
268
+ "bytes": 3590026352
269
+ },
270
+ {
271
+ "filename": "model-00043-of-00048.safetensors",
272
+ "sha256": "b7103842ceb70848f9804f55c193d6a57f43174a587cba42b61b5c1bc4e1303d",
273
+ "upload_mode": "lfs",
274
+ "bytes": 3568770544
275
+ },
276
+ {
277
+ "filename": "model-00044-of-00048.safetensors",
278
+ "sha256": "422d3889fa20c238b7f97464c14df0bcf3328f189c294f41a3a334421dc560c7",
279
+ "upload_mode": "lfs",
280
+ "bytes": 3590026352
281
+ },
282
+ {
283
+ "filename": "model-00045-of-00048.safetensors",
284
+ "sha256": "a5be6aed7b84fc87ec42b5d24ba0b0d67f253a3906fcd99c13f4f7be5958fc00",
285
+ "upload_mode": "lfs",
286
+ "bytes": 1059332516
287
+ },
288
+ {
289
+ "filename": "model-00046-of-00048.safetensors",
290
+ "sha256": "5db924ca907e0d93acd975bd5079c3662717f9ac709f23d079bd8f816d29d9dd",
291
+ "upload_mode": "lfs",
292
+ "bytes": 3610455184
293
+ },
294
+ {
295
+ "filename": "model-00047-of-00048.safetensors",
296
+ "sha256": "62816173f9f6e136b20b48e3b6f16613ac9ea02b5603f636928b253244a548bd",
297
+ "upload_mode": "lfs",
298
+ "bytes": 3560111960
299
+ },
300
+ {
301
+ "filename": "model-00048-of-00048.safetensors",
302
+ "sha256": "cc43742bd24ae6bcdea343a91442f6f66aed2cfebcc6b235470204851ce2f8a9",
303
+ "upload_mode": "lfs",
304
+ "bytes": 3692775244
305
+ }
306
+ ],
307
+ "weight_shard_bytes": 166886535336,
308
+ "weight_shard_hashes_verified": true,
309
+ "weight_shard_hashes_verified_at": "2026-08-01T14:21:34.126450+00:00",
310
+ "post_hash_stat_snapshot": {
311
+ "model-00001-of-00048.safetensors": {
312
+ "bytes": 1059061856,
313
+ "mtime_ns": 1785503207610000000,
314
+ "ctime_ns": 1785503207610000000,
315
+ "device": 16777242,
316
+ "inode": 1227200
317
+ },
318
+ "model-00002-of-00048.safetensors": {
319
+ "bytes": 3566321192,
320
+ "mtime_ns": 1785503526950000000,
321
+ "ctime_ns": 1785503526950000000,
322
+ "device": 16777242,
323
+ "inode": 1220339
324
+ },
325
+ "model-00003-of-00048.safetensors": {
326
+ "bytes": 3566321192,
327
+ "mtime_ns": 1785503449850000000,
328
+ "ctime_ns": 1785503449850000000,
329
+ "device": 16777242,
330
+ "inode": 1220314
331
+ },
332
+ "model-00004-of-00048.safetensors": {
333
+ "bytes": 3596229272,
334
+ "mtime_ns": 1785503514180000000,
335
+ "ctime_ns": 1785503514180000000,
336
+ "device": 16777242,
337
+ "inode": 1220289
338
+ },
339
+ "model-00005-of-00048.safetensors": {
340
+ "bytes": 3568768976,
341
+ "mtime_ns": 1785503576410000000,
342
+ "ctime_ns": 1785503576410000000,
343
+ "device": 16777242,
344
+ "inode": 1220288
345
+ },
346
+ "model-00006-of-00048.safetensors": {
347
+ "bytes": 3590024776,
348
+ "mtime_ns": 1785503626970000000,
349
+ "ctime_ns": 1785503626970000000,
350
+ "device": 16777242,
351
+ "inode": 1220364
352
+ },
353
+ "model-00007-of-00048.safetensors": {
354
+ "bytes": 3568768976,
355
+ "mtime_ns": 1785503569660000000,
356
+ "ctime_ns": 1785503569660000000,
357
+ "device": 16777242,
358
+ "inode": 1220287
359
+ },
360
+ "model-00008-of-00048.safetensors": {
361
+ "bytes": 3590024776,
362
+ "mtime_ns": 1785503573510000000,
363
+ "ctime_ns": 1785503573510000000,
364
+ "device": 16777242,
365
+ "inode": 1220286
366
+ },
367
+ "model-00009-of-00048.safetensors": {
368
+ "bytes": 3568768976,
369
+ "mtime_ns": 1785503819100000000,
370
+ "ctime_ns": 1785503819100000000,
371
+ "device": 16777242,
372
+ "inode": 1257677
373
+ },
374
+ "model-00010-of-00048.safetensors": {
375
+ "bytes": 3590024776,
376
+ "mtime_ns": 1785503875280000000,
377
+ "ctime_ns": 1785503875280000000,
378
+ "device": 16777242,
379
+ "inode": 1412950
380
+ },
381
+ "model-00011-of-00048.safetensors": {
382
+ "bytes": 3568768976,
383
+ "mtime_ns": 1785503964350000000,
384
+ "ctime_ns": 1785503964350000000,
385
+ "device": 16777242,
386
+ "inode": 1439498
387
+ },
388
+ "model-00012-of-00048.safetensors": {
389
+ "bytes": 3590026352,
390
+ "mtime_ns": 1785503994640000000,
391
+ "ctime_ns": 1785503994640000000,
392
+ "device": 16777242,
393
+ "inode": 1479217
394
+ },
395
+ "model-00013-of-00048.safetensors": {
396
+ "bytes": 3568770544,
397
+ "mtime_ns": 1785504255840000000,
398
+ "ctime_ns": 1785504255840000000,
399
+ "device": 16777242,
400
+ "inode": 2913063
401
+ },
402
+ "model-00014-of-00048.safetensors": {
403
+ "bytes": 3590026352,
404
+ "mtime_ns": 1785504220800000000,
405
+ "ctime_ns": 1785504220800000000,
406
+ "device": 16777242,
407
+ "inode": 2943079
408
+ },
409
+ "model-00015-of-00048.safetensors": {
410
+ "bytes": 3568770544,
411
+ "mtime_ns": 1785504267840000000,
412
+ "ctime_ns": 1785504267840000000,
413
+ "device": 16777242,
414
+ "inode": 2943120
415
+ },
416
+ "model-00016-of-00048.safetensors": {
417
+ "bytes": 3590026352,
418
+ "mtime_ns": 1785504275460000000,
419
+ "ctime_ns": 1785504275460000000,
420
+ "device": 16777242,
421
+ "inode": 3008574
422
+ },
423
+ "model-00017-of-00048.safetensors": {
424
+ "bytes": 3568770544,
425
+ "mtime_ns": 1785504389580000000,
426
+ "ctime_ns": 1785504389580000000,
427
+ "device": 16777242,
428
+ "inode": 3111729
429
+ },
430
+ "model-00018-of-00048.safetensors": {
431
+ "bytes": 3590026352,
432
+ "mtime_ns": 1785504430230000000,
433
+ "ctime_ns": 1785504430230000000,
434
+ "device": 16777242,
435
+ "inode": 3142001
436
+ },
437
+ "model-00019-of-00048.safetensors": {
438
+ "bytes": 3568770544,
439
+ "mtime_ns": 1785504408150000000,
440
+ "ctime_ns": 1785504408150000000,
441
+ "device": 16777242,
442
+ "inode": 3175731
443
+ },
444
+ "model-00020-of-00048.safetensors": {
445
+ "bytes": 3590026352,
446
+ "mtime_ns": 1785504589260000000,
447
+ "ctime_ns": 1785504589260000000,
448
+ "device": 16777242,
449
+ "inode": 3179314
450
+ },
451
+ "model-00021-of-00048.safetensors": {
452
+ "bytes": 3568770544,
453
+ "mtime_ns": 1785504739580000000,
454
+ "ctime_ns": 1785504739580000000,
455
+ "device": 16777242,
456
+ "inode": 3250866
457
+ },
458
+ "model-00022-of-00048.safetensors": {
459
+ "bytes": 3590026352,
460
+ "mtime_ns": 1785504807160000000,
461
+ "ctime_ns": 1785504807160000000,
462
+ "device": 16777242,
463
+ "inode": 3273972
464
+ },
465
+ "model-00023-of-00048.safetensors": {
466
+ "bytes": 3568770544,
467
+ "mtime_ns": 1785504764960000000,
468
+ "ctime_ns": 1785504764960000000,
469
+ "device": 16777242,
470
+ "inode": 3280897
471
+ },
472
+ "model-00024-of-00048.safetensors": {
473
+ "bytes": 3590026352,
474
+ "mtime_ns": 1785504875800000000,
475
+ "ctime_ns": 1785504875800000000,
476
+ "device": 16777242,
477
+ "inode": 3280896
478
+ },
479
+ "model-00025-of-00048.safetensors": {
480
+ "bytes": 3568770544,
481
+ "mtime_ns": 1785505025920000000,
482
+ "ctime_ns": 1785505025920000000,
483
+ "device": 16777242,
484
+ "inode": 3413097
485
+ },
486
+ "model-00026-of-00048.safetensors": {
487
+ "bytes": 3590026352,
488
+ "mtime_ns": 1785505045180000000,
489
+ "ctime_ns": 1785505045180000000,
490
+ "device": 16777242,
491
+ "inode": 3413096
492
+ },
493
+ "model-00027-of-00048.safetensors": {
494
+ "bytes": 3568770544,
495
+ "mtime_ns": 1785505045830000000,
496
+ "ctime_ns": 1785505045830000000,
497
+ "device": 16777242,
498
+ "inode": 3476335
499
+ },
500
+ "model-00028-of-00048.safetensors": {
501
+ "bytes": 3590026352,
502
+ "mtime_ns": 1785505098680000000,
503
+ "ctime_ns": 1785505098680000000,
504
+ "device": 16777242,
505
+ "inode": 3862697
506
+ },
507
+ "model-00029-of-00048.safetensors": {
508
+ "bytes": 3568770544,
509
+ "mtime_ns": 1785505337860000000,
510
+ "ctime_ns": 1785505337860000000,
511
+ "device": 16777242,
512
+ "inode": 3962848
513
+ },
514
+ "model-00030-of-00048.safetensors": {
515
+ "bytes": 3590026352,
516
+ "mtime_ns": 1785505329360000000,
517
+ "ctime_ns": 1785505329360000000,
518
+ "device": 16777242,
519
+ "inode": 3969579
520
+ },
521
+ "model-00031-of-00048.safetensors": {
522
+ "bytes": 3568770544,
523
+ "mtime_ns": 1785505278610000000,
524
+ "ctime_ns": 1785505278610000000,
525
+ "device": 16777242,
526
+ "inode": 6552978
527
+ },
528
+ "model-00032-of-00048.safetensors": {
529
+ "bytes": 3590026352,
530
+ "mtime_ns": 1785505422450000000,
531
+ "ctime_ns": 1785505422450000000,
532
+ "device": 16777242,
533
+ "inode": 6577364
534
+ },
535
+ "model-00033-of-00048.safetensors": {
536
+ "bytes": 3568770544,
537
+ "mtime_ns": 1785505518610000000,
538
+ "ctime_ns": 1785505518610000000,
539
+ "device": 16777242,
540
+ "inode": 9337694
541
+ },
542
+ "model-00034-of-00048.safetensors": {
543
+ "bytes": 3590026352,
544
+ "mtime_ns": 1785505646240000000,
545
+ "ctime_ns": 1785505646240000000,
546
+ "device": 16777242,
547
+ "inode": 9337693
548
+ },
549
+ "model-00035-of-00048.safetensors": {
550
+ "bytes": 3568770544,
551
+ "mtime_ns": 1785505632340000000,
552
+ "ctime_ns": 1785505632340000000,
553
+ "device": 16777242,
554
+ "inode": 9341904
555
+ },
556
+ "model-00036-of-00048.safetensors": {
557
+ "bytes": 3590026352,
558
+ "mtime_ns": 1785505677330000000,
559
+ "ctime_ns": 1785505677330000000,
560
+ "device": 16777242,
561
+ "inode": 9347816
562
+ },
563
+ "model-00037-of-00048.safetensors": {
564
+ "bytes": 3568770544,
565
+ "mtime_ns": 1785505900360000000,
566
+ "ctime_ns": 1785505900360000000,
567
+ "device": 16777242,
568
+ "inode": 9384464
569
+ },
570
+ "model-00038-of-00048.safetensors": {
571
+ "bytes": 3590026352,
572
+ "mtime_ns": 1785505965980000000,
573
+ "ctime_ns": 1785505965980000000,
574
+ "device": 16777242,
575
+ "inode": 9391578
576
+ },
577
+ "model-00039-of-00048.safetensors": {
578
+ "bytes": 3568770544,
579
+ "mtime_ns": 1785505970320000000,
580
+ "ctime_ns": 1785505970320000000,
581
+ "device": 16777242,
582
+ "inode": 9398495
583
+ },
584
+ "model-00040-of-00048.safetensors": {
585
+ "bytes": 3590026352,
586
+ "mtime_ns": 1785505978650000000,
587
+ "ctime_ns": 1785505978650000000,
588
+ "device": 16777242,
589
+ "inode": 9411167
590
+ },
591
+ "model-00041-of-00048.safetensors": {
592
+ "bytes": 3568770544,
593
+ "mtime_ns": 1785505946150000000,
594
+ "ctime_ns": 1785505946150000000,
595
+ "device": 16777242,
596
+ "inode": 10377561
597
+ },
598
+ "model-00042-of-00048.safetensors": {
599
+ "bytes": 3590026352,
600
+ "mtime_ns": 1785506161290000000,
601
+ "ctime_ns": 1785506161290000000,
602
+ "device": 16777242,
603
+ "inode": 10394652
604
+ },
605
+ "model-00043-of-00048.safetensors": {
606
+ "bytes": 3568770544,
607
+ "mtime_ns": 1785506159880000000,
608
+ "ctime_ns": 1785506159880000000,
609
+ "device": 16777242,
610
+ "inode": 10401334
611
+ },
612
+ "model-00044-of-00048.safetensors": {
613
+ "bytes": 3590026352,
614
+ "mtime_ns": 1785506177170000000,
615
+ "ctime_ns": 1785506177170000000,
616
+ "device": 16777242,
617
+ "inode": 10405174
618
+ },
619
+ "model-00045-of-00048.safetensors": {
620
+ "bytes": 1059332516,
621
+ "mtime_ns": 1785506038960000000,
622
+ "ctime_ns": 1785506038960000000,
623
+ "device": 16777242,
624
+ "inode": 10451859
625
+ },
626
+ "model-00046-of-00048.safetensors": {
627
+ "bytes": 3610455184,
628
+ "mtime_ns": 1785506331530000000,
629
+ "ctime_ns": 1785506331530000000,
630
+ "device": 16777242,
631
+ "inode": 10459297
632
+ },
633
+ "model-00047-of-00048.safetensors": {
634
+ "bytes": 3560111960,
635
+ "mtime_ns": 1785506331790000000,
636
+ "ctime_ns": 1785506331790000000,
637
+ "device": 16777242,
638
+ "inode": 10459296
639
+ },
640
+ "model-00048-of-00048.safetensors": {
641
+ "bytes": 3692775244,
642
+ "mtime_ns": 1785506331020000000,
643
+ "ctime_ns": 1785506331020000000,
644
+ "device": 16777242,
645
+ "inode": 10464304
646
+ }
647
+ }
648
+ },
649
+ "profile": {
650
+ "path": "/Users/andreas/code/deepseek-model-tools/configs/dsv4-ds4-quality128-original.json",
651
+ "sha256": "bc7f6470a0cb6208addf2ac52806d976108517119b411023da3fd91b492b218c",
652
+ "content": {
653
+ "name": "dsv4-ds4-quality128-original",
654
+ "engine": "ds4",
655
+ "description": "Quality-first 128 GB DS4 profile for the official original DeepSeek V4 Flash 0731 checkpoint, preserving exact native MXFP4 routed experts on ten sensitivity-selected layers, with IQ2_XXS/Q2_K elsewhere and native-MXFP4 DSpark down projections.",
656
+ "source": "/Volumes/Samsung_4TB/models/DeepSeek-V4-Flash-0731",
657
+ "source_identity": {
658
+ "repo_id": "deepseek-ai/DeepSeek-V4-Flash-0731",
659
+ "revision": "9e165c30e2704aec5d9d593cce3eebd58bbef1cb",
660
+ "identity_cache": ".cache/huggingface/download"
661
+ },
662
+ "output": "DeepSeek-V4-Flash-0731-DS4-Quality128",
663
+ "ds4_revision": "d516d4eeb82c454aeb2831af1b1961801d6b571b",
664
+ "toolchain": {
665
+ "root": "/Users/andreas/code/3rd-party-repos/ds4-apetersson",
666
+ "upstream_base_revision": "4893e0c40fba03dbc85555faeb035799aa04e0b6",
667
+ "quantizer_sha256": "f0a381f4ada808ea2afa740d964354fa327fc1235ba7cebf50874eb89fb97ac5",
668
+ "runtime_sha256": "5382bee60cb1c2d1e3274511c56099f88279684fbf152fa409d551711dbb9543"
669
+ },
670
+ "main": {
671
+ "experts": "iq2_xxs",
672
+ "routed_w2": "q2_k",
673
+ "attention_proj": "q8_0",
674
+ "shared": "q8_0",
675
+ "preserve_indexer_f16": true,
676
+ "tensor_types": [
677
+ "output.weight=q8_0"
678
+ ],
679
+ "native_mxfp4_layers": [
680
+ 10,
681
+ 14,
682
+ 30,
683
+ 34,
684
+ 37,
685
+ 38,
686
+ 39,
687
+ 40,
688
+ 41,
689
+ 42
690
+ ],
691
+ "native_mxfp4_layer_selection": "Antirez 37-42 seed plus cross-recipe sensitivity controls 10,14,30,34; source packed I8 codes and F8_E8M0 scales are preserved exactly.",
692
+ "estimated_bytes": 102826238912
693
+ },
694
+ "dspark": {
695
+ "experts": "iq2_xxs",
696
+ "routed_w2": "mxfp4",
697
+ "block_size": 5,
698
+ "target_layers": [
699
+ 40,
700
+ 41,
701
+ 42
702
+ ],
703
+ "markov_rank": 256,
704
+ "noise_token_id": 128799,
705
+ "calibration": "target-layer proxy aliases"
706
+ },
707
+ "verification": {
708
+ "require_imatrix_strict": true,
709
+ "require_native_byte_compare": true,
710
+ "main": {
711
+ "bytes": 102826238912,
712
+ "tensors": 1328,
713
+ "tensor_types": {
714
+ "i32": 3,
715
+ "iq2_xxs": 66,
716
+ "q2_k": 33,
717
+ "mxfp4": 30,
718
+ "f16": 359,
719
+ "f32": 492,
720
+ "q8_0": 345
721
+ }
722
+ },
723
+ "dspark": {
724
+ "bytes": 7297737120,
725
+ "tensors": 81,
726
+ "tensor_types": {
727
+ "f32": 34,
728
+ "f16": 7,
729
+ "q8_0": 31,
730
+ "iq2_xxs": 6,
731
+ "mxfp4": 3
732
+ }
733
+ }
734
+ },
735
+ "calibration": {
736
+ "repo_id": "ox-ox/DeepSeek-V4-Flash-0731-GGUF",
737
+ "revision": "6d58a3a36030c3ccb969bb5759fc6ae08cd299f8",
738
+ "filename": "imatrix/DeepSeek-V4-Flash-0731-chat-v2-routed-moe-ds4-1p5m.dat",
739
+ "bytes": 450892654,
740
+ "sha256": "6fce7674df701de544e5d3351aab04e67602eddeafeb48cf70e77ebe47239eb4",
741
+ "coverage_policy": "exact 129 routed names and vector dimensions; strict mode checks only imatrix-consuming output types"
742
+ },
743
+ "template": {
744
+ "role": "metadata-tokenizer-tensor-order-only",
745
+ "repo_id": "antirez/deepseek-v4-gguf",
746
+ "revision": "1cd7b564460821938add0475a60b942c409295e0",
747
+ "filename": "DeepSeek-V4-Flash-IQ2XXS-w2Q2K-AProjQ8-SExpQ8-OutQ8-chat-v2-imatrix-0731.gguf",
748
+ "remote_bytes": 86720111488,
749
+ "lfs_sha256": "ca22ae2f838e14077c22bc1c1417b71b45b5e5a3687bd96c2ac6e17fdb6261c0",
750
+ "xet_hash": "7da16e1025c1b856490c29c341f4e467d15cb195389c70383dade5e6108799ac",
751
+ "header_sha256": "f0e1d5e8f3b008402aa6eb32cada3873dd926c8bf5e7d00d7788eec65f09dd6d"
752
+ },
753
+ "recipe_control": {
754
+ "repo_id": "antirez/deepseek-v4-gguf",
755
+ "revision": "1cd7b564460821938add0475a60b942c409295e0",
756
+ "dspark_filename": "DeepSeek-V4-Flash-DSpark-support.gguf",
757
+ "weights_used": false
758
+ }
759
+ }
760
+ },
761
+ "calibration": {
762
+ "repo_id": "ox-ox/DeepSeek-V4-Flash-0731-GGUF",
763
+ "filename": "imatrix/DeepSeek-V4-Flash-0731-chat-v2-routed-moe-ds4-1p5m.dat",
764
+ "revision": "6d58a3a36030c3ccb969bb5759fc6ae08cd299f8",
765
+ "bytes": 450892654,
766
+ "sha256": "6fce7674df701de544e5d3351aab04e67602eddeafeb48cf70e77ebe47239eb4",
767
+ "coverage_validation": {
768
+ "entries": 129,
769
+ "scope": "all routed gate/up/down tensors",
770
+ "policy": "exact-name-and-vector-length",
771
+ "global_ds4_imatrix_strict": true
772
+ }
773
+ },
774
+ "template": {
775
+ "repo_id": "antirez/deepseek-v4-gguf",
776
+ "filename": "DeepSeek-V4-Flash-IQ2XXS-w2Q2K-AProjQ8-SExpQ8-OutQ8-chat-v2-imatrix-0731.gguf",
777
+ "revision": "1cd7b564460821938add0475a60b942c409295e0",
778
+ "role": "metadata-tokenizer-tensor-order-and-shapes-only",
779
+ "weights_used": false,
780
+ "remote_bytes": 86720111488,
781
+ "lfs_sha256": "ca22ae2f838e14077c22bc1c1417b71b45b5e5a3687bd96c2ac6e17fdb6261c0",
782
+ "xet_hash": "7da16e1025c1b856490c29c341f4e467d15cb195389c70383dade5e6108799ac",
783
+ "downloaded_header_bytes": 67108864,
784
+ "header_sha256": "f0e1d5e8f3b008402aa6eb32cada3873dd926c8bf5e7d00d7788eec65f09dd6d",
785
+ "resolved": {
786
+ "repo_id": "antirez/deepseek-v4-gguf",
787
+ "filename": "DeepSeek-V4-Flash-IQ2XXS-w2Q2K-AProjQ8-SExpQ8-OutQ8-chat-v2-imatrix-0731.gguf",
788
+ "role": "metadata-tokenizer-tensor-order-and-shapes-only",
789
+ "weights_used": false,
790
+ "remote_bytes": 86720111488,
791
+ "lfs_sha256": "ca22ae2f838e14077c22bc1c1417b71b45b5e5a3687bd96c2ac6e17fdb6261c0",
792
+ "xet_hash": "7da16e1025c1b856490c29c341f4e467d15cb195389c70383dade5e6108799ac",
793
+ "resolved_etag": "7da16e1025c1b856490c29c341f4e467d15cb195389c70383dade5e6108799ac",
794
+ "range": "bytes=0-67108863",
795
+ "header_bytes": 67108864,
796
+ "header_sha256": "f0e1d5e8f3b008402aa6eb32cada3873dd926c8bf5e7d00d7788eec65f09dd6d"
797
+ }
798
+ },
799
+ "dspark_calibration_alias": {
800
+ "schema": "deepseek-model-tools.dspark-imatrix-alias.v1",
801
+ "function": "extend_dspark_legacy_imatrix",
802
+ "source": {
803
+ "repo_id": "ox-ox/DeepSeek-V4-Flash-0731-GGUF",
804
+ "revision": "6d58a3a36030c3ccb969bb5759fc6ae08cd299f8",
805
+ "filename": "imatrix/DeepSeek-V4-Flash-0731-chat-v2-routed-moe-ds4-1p5m.dat",
806
+ "bytes": 450892654,
807
+ "sha256": "6fce7674df701de544e5d3351aab04e67602eddeafeb48cf70e77ebe47239eb4"
808
+ },
809
+ "output_sha256": "689b446ed2e2657ebcb69a6516781ee0444e07641aeb6125233fb4e6fe7cbce3",
810
+ "mapping": [
811
+ {
812
+ "stage": 0,
813
+ "target_layer": 40,
814
+ "alias": "mtp.0.ffn_gate_exps.weight",
815
+ "source": "blk.40.ffn_gate_exps.weight"
816
+ },
817
+ {
818
+ "stage": 0,
819
+ "target_layer": 40,
820
+ "alias": "mtp.0.ffn_up_exps.weight",
821
+ "source": "blk.40.ffn_up_exps.weight"
822
+ },
823
+ {
824
+ "stage": 0,
825
+ "target_layer": 40,
826
+ "alias": "mtp.0.ffn_down_exps.weight",
827
+ "source": "blk.40.ffn_down_exps.weight"
828
+ },
829
+ {
830
+ "stage": 1,
831
+ "target_layer": 41,
832
+ "alias": "mtp.1.ffn_gate_exps.weight",
833
+ "source": "blk.41.ffn_gate_exps.weight"
834
+ },
835
+ {
836
+ "stage": 1,
837
+ "target_layer": 41,
838
+ "alias": "mtp.1.ffn_up_exps.weight",
839
+ "source": "blk.41.ffn_up_exps.weight"
840
+ },
841
+ {
842
+ "stage": 1,
843
+ "target_layer": 41,
844
+ "alias": "mtp.1.ffn_down_exps.weight",
845
+ "source": "blk.41.ffn_down_exps.weight"
846
+ },
847
+ {
848
+ "stage": 2,
849
+ "target_layer": 42,
850
+ "alias": "mtp.2.ffn_gate_exps.weight",
851
+ "source": "blk.42.ffn_gate_exps.weight"
852
+ },
853
+ {
854
+ "stage": 2,
855
+ "target_layer": 42,
856
+ "alias": "mtp.2.ffn_up_exps.weight",
857
+ "source": "blk.42.ffn_up_exps.weight"
858
+ },
859
+ {
860
+ "stage": 2,
861
+ "target_layer": 42,
862
+ "alias": "mtp.2.ffn_down_exps.weight",
863
+ "source": "blk.42.ffn_down_exps.weight"
864
+ }
865
+ ],
866
+ "tool": {
867
+ "repository_revision": "e24746463a0a3e79036dd9c0472deac6ce704f08",
868
+ "importer_sha256": "b39987ce5ce35564bb4053ec11265c0ff41be233595ae17a6e039318a52dd4da"
869
+ },
870
+ "coverage_validation": {
871
+ "entries": 138,
872
+ "trunk_entries": 129,
873
+ "dspark_entries": 9,
874
+ "coverage": "exact-name-and-vector-length"
875
+ }
876
+ },
877
+ "tools": {
878
+ "ds4_revision": "d516d4eeb82c454aeb2831af1b1961801d6b571b",
879
+ "ds4_root": "/Users/andreas/code/3rd-party-repos/ds4-apetersson",
880
+ "ds4_quantizer_sha256": "f0a381f4ada808ea2afa740d964354fa327fc1235ba7cebf50874eb89fb97ac5",
881
+ "ds4_runtime_sha256": "5382bee60cb1c2d1e3274511c56099f88279684fbf152fa409d551711dbb9543",
882
+ "omlx_revision": "76352ed2363e42b2146243463875756e683a640d",
883
+ "deepseek_model_tools_revision": "e24746463a0a3e79036dd9c0472deac6ce704f08",
884
+ "deepseek_model_tools_worktree": {
885
+ "dirty": true,
886
+ "status_sha256": "92f5beb73ac6d01920de0cbfb8cd5cd4d019c05296a8bb3a183902b6eb83f1dc",
887
+ "tracked_patch_sha256": "64dfc4b91c70163b4848cb404cc85dd539967d22d789a3aa04567503895a6312"
888
+ },
889
+ "build_driver_sha256": "cb1569b909de010b4aaa2a1b1b7ed8e277bcdf41e32585f1651005b41e81567f"
890
+ },
891
+ "commands": [
892
+ [
893
+ "/Users/andreas/code/3rd-party-repos/ds4-apetersson/gguf-tools/deepseek4-quantize",
894
+ "--hf",
895
+ "/Volumes/Samsung_4TB/models/DeepSeek-V4-Flash-0731",
896
+ "--template",
897
+ "/Users/andreas/Library/Caches/deepseek-model-tools/build128/inputs/antirez/ca22ae2f838e14077c22bc1c1417b71b45b5e5a3687bd96c2ac6e17fdb6261c0.header-only.sparse.gguf",
898
+ "--experts",
899
+ "iq2_xxs",
900
+ "--routed-w2",
901
+ "q2_k",
902
+ "--attention-proj",
903
+ "q8_0",
904
+ "--shared",
905
+ "q8_0",
906
+ "--threads",
907
+ "8",
908
+ "--imatrix",
909
+ "/Users/andreas/Library/Caches/deepseek-model-tools/build128/inputs/ox-ox/DeepSeek-V4-Flash-0731-chat-v2-routed-moe-ds4-1p5m.dat",
910
+ "--tensor-type",
911
+ "output.weight=q8_0",
912
+ "--tensor-type",
913
+ "blk.2.indexer.attn_q_b.weight=f16",
914
+ "--tensor-type",
915
+ "blk.4.indexer.attn_q_b.weight=f16",
916
+ "--tensor-type",
917
+ "blk.6.indexer.attn_q_b.weight=f16",
918
+ "--tensor-type",
919
+ "blk.8.indexer.attn_q_b.weight=f16",
920
+ "--tensor-type",
921
+ "blk.10.indexer.attn_q_b.weight=f16",
922
+ "--tensor-type",
923
+ "blk.12.indexer.attn_q_b.weight=f16",
924
+ "--tensor-type",
925
+ "blk.14.indexer.attn_q_b.weight=f16",
926
+ "--tensor-type",
927
+ "blk.16.indexer.attn_q_b.weight=f16",
928
+ "--tensor-type",
929
+ "blk.18.indexer.attn_q_b.weight=f16",
930
+ "--tensor-type",
931
+ "blk.20.indexer.attn_q_b.weight=f16",
932
+ "--tensor-type",
933
+ "blk.22.indexer.attn_q_b.weight=f16",
934
+ "--tensor-type",
935
+ "blk.24.indexer.attn_q_b.weight=f16",
936
+ "--tensor-type",
937
+ "blk.26.indexer.attn_q_b.weight=f16",
938
+ "--tensor-type",
939
+ "blk.28.indexer.attn_q_b.weight=f16",
940
+ "--tensor-type",
941
+ "blk.30.indexer.attn_q_b.weight=f16",
942
+ "--tensor-type",
943
+ "blk.32.indexer.attn_q_b.weight=f16",
944
+ "--tensor-type",
945
+ "blk.34.indexer.attn_q_b.weight=f16",
946
+ "--tensor-type",
947
+ "blk.36.indexer.attn_q_b.weight=f16",
948
+ "--tensor-type",
949
+ "blk.38.indexer.attn_q_b.weight=f16",
950
+ "--tensor-type",
951
+ "blk.40.indexer.attn_q_b.weight=f16",
952
+ "--tensor-type",
953
+ "blk.42.indexer.attn_q_b.weight=f16",
954
+ "--tensor-type",
955
+ "blk.10.ffn_gate_exps.weight=mxfp4",
956
+ "--tensor-type",
957
+ "blk.10.ffn_up_exps.weight=mxfp4",
958
+ "--tensor-type",
959
+ "blk.10.ffn_down_exps.weight=mxfp4",
960
+ "--tensor-type",
961
+ "blk.14.ffn_gate_exps.weight=mxfp4",
962
+ "--tensor-type",
963
+ "blk.14.ffn_up_exps.weight=mxfp4",
964
+ "--tensor-type",
965
+ "blk.14.ffn_down_exps.weight=mxfp4",
966
+ "--tensor-type",
967
+ "blk.30.ffn_gate_exps.weight=mxfp4",
968
+ "--tensor-type",
969
+ "blk.30.ffn_up_exps.weight=mxfp4",
970
+ "--tensor-type",
971
+ "blk.30.ffn_down_exps.weight=mxfp4",
972
+ "--tensor-type",
973
+ "blk.34.ffn_gate_exps.weight=mxfp4",
974
+ "--tensor-type",
975
+ "blk.34.ffn_up_exps.weight=mxfp4",
976
+ "--tensor-type",
977
+ "blk.34.ffn_down_exps.weight=mxfp4",
978
+ "--tensor-type",
979
+ "blk.37.ffn_gate_exps.weight=mxfp4",
980
+ "--tensor-type",
981
+ "blk.37.ffn_up_exps.weight=mxfp4",
982
+ "--tensor-type",
983
+ "blk.37.ffn_down_exps.weight=mxfp4",
984
+ "--tensor-type",
985
+ "blk.38.ffn_gate_exps.weight=mxfp4",
986
+ "--tensor-type",
987
+ "blk.38.ffn_up_exps.weight=mxfp4",
988
+ "--tensor-type",
989
+ "blk.38.ffn_down_exps.weight=mxfp4",
990
+ "--tensor-type",
991
+ "blk.39.ffn_gate_exps.weight=mxfp4",
992
+ "--tensor-type",
993
+ "blk.39.ffn_up_exps.weight=mxfp4",
994
+ "--tensor-type",
995
+ "blk.39.ffn_down_exps.weight=mxfp4",
996
+ "--tensor-type",
997
+ "blk.40.ffn_gate_exps.weight=mxfp4",
998
+ "--tensor-type",
999
+ "blk.40.ffn_up_exps.weight=mxfp4",
1000
+ "--tensor-type",
1001
+ "blk.40.ffn_down_exps.weight=mxfp4",
1002
+ "--tensor-type",
1003
+ "blk.41.ffn_gate_exps.weight=mxfp4",
1004
+ "--tensor-type",
1005
+ "blk.41.ffn_up_exps.weight=mxfp4",
1006
+ "--tensor-type",
1007
+ "blk.41.ffn_down_exps.weight=mxfp4",
1008
+ "--tensor-type",
1009
+ "blk.42.ffn_gate_exps.weight=mxfp4",
1010
+ "--tensor-type",
1011
+ "blk.42.ffn_up_exps.weight=mxfp4",
1012
+ "--tensor-type",
1013
+ "blk.42.ffn_down_exps.weight=mxfp4",
1014
+ "--imatrix-strict",
1015
+ "--out",
1016
+ "/Users/andreas/Library/Caches/deepseek-model-tools/build128/.DeepSeek-V4-Flash-0731-DS4-Quality128.building-20260801-161944-54912/DeepSeek-V4-Flash-0731-DS4-Quality128.gguf"
1017
+ ],
1018
+ [
1019
+ "/Users/andreas/code/3rd-party-repos/ds4-apetersson/gguf-tools/deepseek4-quantize",
1020
+ "--hf",
1021
+ "/Volumes/Samsung_4TB/models/DeepSeek-V4-Flash-0731",
1022
+ "--template",
1023
+ "/Users/andreas/Library/Caches/deepseek-model-tools/build128/inputs/antirez/ca22ae2f838e14077c22bc1c1417b71b45b5e5a3687bd96c2ac6e17fdb6261c0.header-only.sparse.gguf",
1024
+ "--dspark-support",
1025
+ "--experts",
1026
+ "iq2_xxs",
1027
+ "--routed-w2",
1028
+ "mxfp4",
1029
+ "--attention-proj",
1030
+ "q8_0",
1031
+ "--shared",
1032
+ "q8_0",
1033
+ "--dspark-block-size",
1034
+ "5",
1035
+ "--dspark-markov-rank",
1036
+ "256",
1037
+ "--dspark-noise-token-id",
1038
+ "128799",
1039
+ "--dspark-target-layers",
1040
+ "40,41,42",
1041
+ "--threads",
1042
+ "8",
1043
+ "--imatrix",
1044
+ "/Users/andreas/Library/Caches/deepseek-model-tools/build128/inputs/ox-ox/DeepSeek-V4-Flash-0731-dspark-alias.dat",
1045
+ "--out",
1046
+ "/Users/andreas/Library/Caches/deepseek-model-tools/build128/.DeepSeek-V4-Flash-0731-DS4-Quality128.building-20260801-161944-54912/DeepSeek-V4-Flash-0731-DS4-Quality128-DSpark-support.gguf",
1047
+ "--imatrix-strict"
1048
+ ]
1049
+ ],
1050
+ "appledouble_excluded": true,
1051
+ "installation": "internal-stage -> hash-copy to hidden same-volume incoming -> verify -> atomic directory exposure via renameatx_np(RENAME_EXCL); when that kernel no-replace primitive is unsupported (notably exFAT), use a cooperative exclusive sibling lock + destination lstat + same-parent renameat fallback that preserves atomic visibility and refuses every destination observed before rename"
1052
+ }
DeepSeek-V4-Flash-0731-DS4-Quality128-DSpark-support.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:393b807aa0a409f1c006f0e700bbb91a80d3de28daa56c222edf944250075c66
3
+ size 7297737120
DeepSeek-V4-Flash-0731-DS4-Quality128.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:efcbf786154c2aec61511785d04a4c8d98ee42500b60ff8a810717fc0a69d1d3
3
+ size 102826238912
PROVENANCE.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Provenance
2
+
3
+ This artifact was regenerated from the local official original FP8 checkpoint only.
4
+ No tensors were copied from any public GGUF or another quantized model.
5
+
6
+ - Weight source: `/Volumes/Samsung_4TB/models/DeepSeek-V4-Flash-0731`
7
+ - Official source: `deepseek-ai/DeepSeek-V4-Flash-0731`
8
+ - Official revision: `9e165c30e2704aec5d9d593cce3eebd58bbef1cb`
9
+ - Full source-shard hashes verified: `true`
10
+ - Profile: `/Users/andreas/code/deepseek-model-tools/configs/dsv4-ds4-quality128-original.json`
11
+ - Calibration: `ox-ox/DeepSeek-V4-Flash-0731-GGUF/imatrix/DeepSeek-V4-Flash-0731-chat-v2-routed-moe-ds4-1p5m.dat` (`6fce7674df701de544e5d3351aab04e67602eddeafeb48cf70e77ebe47239eb4`)
12
+ - DSpark calibration proxy: `689b446ed2e2657ebcb69a6516781ee0444e07641aeb6125233fb4e6fe7cbce3` (stages 0/1/2 from target layers 40/41/42)
13
+ - DS4 template, metadata only: `antirez/deepseek-v4-gguf/DeepSeek-V4-Flash-IQ2XXS-w2Q2K-AProjQ8-SExpQ8-OutQ8-chat-v2-imatrix-0731.gguf`
14
+ - Antirez full-object LFS SHA-256: `ca22ae2f838e14077c22bc1c1417b71b45b5e5a3687bd96c2ac6e17fdb6261c0`
15
+ - Antirez Xet object: `7da16e1025c1b856490c29c341f4e467d15cb195389c70383dade5e6108799ac`
16
+ - Antirez 64 MiB header SHA-256: `f0e1d5e8f3b008402aa6eb32cada3873dd926c8bf5e7d00d7788eec65f09dd6d`
17
+ - Engine: `ds4`
18
+ - DSpark: `true`
19
+ - Profile description: Quality-first 128 GB DS4 profile for the official original DeepSeek V4 Flash 0731 checkpoint, preserving exact native MXFP4 routed experts on ten sensitivity-selected layers, with IQ2_XXS/Q2_K elsewhere and native-MXFP4 DSpark down projections.
README.md ADDED
@@ -0,0 +1,379 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ library_name: gguf
4
+ pipeline_tag: text-generation
5
+ base_model: deepseek-ai/DeepSeek-V4-Flash-0731
6
+ base_model_relation: quantized
7
+ quantized_by: apetersson
8
+ tags:
9
+ - gguf
10
+ - quantized
11
+ - deepseek
12
+ - deepseek-v4
13
+ - deepseek-v4-flash
14
+ - moe
15
+ - mixture-of-experts
16
+ - mxfp4
17
+ - iq2_xxs
18
+ - q2_k
19
+ - ds4
20
+ - dspark
21
+ - apple-silicon
22
+ - metal
23
+ ---
24
+
25
+ # DeepSeek V4 Flash 0731 — DS4 Quality128
26
+
27
+ > **Clean official weights, exact MXFP4 experts, maximum resident quality.**
28
+
29
+ > **Required DS4 branch:** this model is not compatible with an older or stock
30
+ > DS4 build. Its native MXFP4 tensors require the official
31
+ > [`antirez/ds4` `ds4f-mxfp4` branch](https://github.com/antirez/ds4/tree/ds4f-mxfp4).
32
+ > That branch runs both the target model and the supplied DSpark support model.
33
+
34
+ > **Validation status:** conversion and CPU structural validation are complete.
35
+ > Metal generation, DSpark acceptance, throughput, peak-memory and actual
36
+ > one-million-token-context tests for this exact artifact are still pending.
37
+
38
+ This is a quality-first DS4 package of the official
39
+ [`deepseek-ai/DeepSeek-V4-Flash-0731`](https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash-0731)
40
+ checkpoint. It is designed to keep the target model—and optionally its real
41
+ three-stage DSpark speculative drafter—resident on a 128 GB Apple Silicon host.
42
+
43
+ This model was quantized directly from the original official checkpoint. No
44
+ behavioral weight edit was applied before quantization. All model weights were
45
+ regenerated from the official local FP8 checkpoint; no tensor values were
46
+ copied from another GGUF or quantized model.
47
+
48
+ ## Artifacts
49
+
50
+ | File | Purpose | Bytes | GiB | SHA-256 |
51
+ | --- | --- | ---: | ---: | --- |
52
+ | `DeepSeek-V4-Flash-0731-DS4-Quality128.gguf` | Authoritative 43-layer target model | `102,826,238,912` | `95.7644` | `efcbf786154c2aec61511785d04a4c8d98ee42500b60ff8a810717fc0a69d1d3` |
53
+ | `DeepSeek-V4-Flash-0731-DS4-Quality128-DSpark-support.gguf` | Three-stage speculative drafter; not standalone | `7,297,737,120` | `6.7965` | `393b807aa0a409f1c006f0e700bbb91a80d3de28daa56c222edf944250075c66` |
54
+ | **Combined GGUFs** | — | **`110,123,976,032`** | **`102.5609`** | — |
55
+
56
+ `BUILD_MANIFEST.json`, `PROVENANCE.md` and `SHA256SUMS` provide the full
57
+ machine-readable build record and integrity inventory.
58
+
59
+ ## Quantization profile
60
+
61
+ ### Main target model
62
+
63
+ | Tensor class | Quantization/storage | Rationale |
64
+ | --- | --- | --- |
65
+ | 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. |
66
+ | Routed gate/up on the other 33 MoE layers | `IQ2_XXS`, importance-matrix calibrated | Applies the most aggressive compression to the largest tensor bank. |
67
+ | 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. |
68
+ | Attention projections | `Q8_0` | Protects a dense path used for every token. |
69
+ | Shared experts | `Q8_0` | Protects the expert path active for every token. |
70
+ | Vocabulary/output head | `Q8_0` | Protects final-logit fidelity. |
71
+ | Indexer `attn_q_b` tensors on layers 2, 4, …, 42 | forced `F16` | Preserves a small, sensitive compressed-attention component. |
72
+ | 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. |
73
+
74
+ Observed main-GGUF inventory from strict DS4 inspection:
75
+
76
+ | GGUF type | Tensors |
77
+ | --- | ---: |
78
+ | `F32` | 492 |
79
+ | `F16` | 359 |
80
+ | `I32` | 3 |
81
+ | `Q8_0` | 345 |
82
+ | `IQ2_XXS` | 66 |
83
+ | `Q2_K` | 33 |
84
+ | `MXFP4` | 30 |
85
+ | **Total** | **1,328** |
86
+
87
+ The target GGUF is version 3, describes approximately 284.33 billion logical
88
+ parameters and retains the checkpoint's declared 1,048,576-token training
89
+ context. That declaration is not evidence that a one-million-token inference
90
+ run fits or remains robust on a particular machine.
91
+
92
+ ### DSpark support model
93
+
94
+ This is the actual 0731 three-stage DSpark module (`mtp.0`–`mtp.2`), not the
95
+ legacy single-stage MTP attachment. The target model remains authoritative and
96
+ verifies speculative proposals.
97
+
98
+ | Parameter | Value |
99
+ | --- | --- |
100
+ | Stages | 3 |
101
+ | Proposal block size | 5 |
102
+ | Target layers | 40, 41, 42 |
103
+ | Markov rank | 256 |
104
+ | Noise token ID | 128799 |
105
+ | Routed gate/up | `IQ2_XXS` (6 tensors) |
106
+ | Routed down | exact native `MXFP4` (3 tensors) |
107
+ | Dense projections | `Q8_0` (31 tensors) |
108
+ | Control/auxiliary tensors | 7 `F16` + 34 `F32` tensors |
109
+ | Total | 81 tensors |
110
+
111
+ The support GGUF describes approximately 19.85 billion logical parameters and
112
+ must be loaded alongside its matching target GGUF.
113
+
114
+ ## Importance calibration
115
+
116
+ The routed-expert calibration source is the 0731-native matrix from
117
+ [`ox-ox/DeepSeek-V4-Flash-0731-GGUF`](https://huggingface.co/ox-ox/DeepSeek-V4-Flash-0731-GGUF):
118
+
119
+ - Repository revision: `6d58a3a36030c3ccb969bb5759fc6ae08cd299f8`
120
+ - File: `imatrix/DeepSeek-V4-Flash-0731-chat-v2-routed-moe-ds4-1p5m.dat`
121
+ - Size: `450,892,654` bytes
122
+ - SHA-256: `6fce7674df701de544e5d3351aab04e67602eddeafeb48cf70e77ebe47239eb4`
123
+ - Coverage: exactly 129 routed target tensors (43 layers × gate/up/down), with exact name and vector-dimension validation
124
+
125
+ The build ran strict imatrix validation. Preserved native MXFP4 tensors do not
126
+ consume imatrix data because they are copied from the official FP8 checkpoint's
127
+ packed source representation rather than requantized.
128
+
129
+ The published matrix has no native DSpark entries. The support-model importer
130
+ therefore made deterministic target-layer proxy aliases:
131
+
132
+ - `mtp.0` ← target layer 40
133
+ - `mtp.1` ← target layer 41
134
+ - `mtp.2` ← target layer 42
135
+
136
+ The extended matrix contains 138 entries and has SHA-256
137
+ `689b446ed2e2657ebcb69a6516781ee0444e07641aeb6125233fb4e6fe7cbce3`.
138
+ This is an explicitly recorded proxy, not a fresh activation capture from the
139
+ DSpark drafter.
140
+
141
+ ## Weight provenance and metadata template
142
+
143
+ The sole source of weight values was the local copy of
144
+ `deepseek-ai/DeepSeek-V4-Flash-0731` at official revision
145
+ `9e165c30e2704aec5d9d593cce3eebd58bbef1cb`. All 48 FP8 weight shards—
146
+ `166,886,535,336` bytes in total—were fully SHA-256 verified and guarded
147
+ against mutation throughout conversion.
148
+
149
+ The exact-0731 GGUF from
150
+ [`antirez/deepseek-v4-gguf`](https://huggingface.co/antirez/deepseek-v4-gguf)
151
+ was used only as a bounded metadata, tokenizer, tensor-order and shape template:
152
+
153
+ - Repository revision: `1cd7b564460821938add0475a60b942c409295e0`
154
+ - Template LFS SHA-256: `ca22ae2f838e14077c22bc1c1417b71b45b5e5a3687bd96c2ac6e17fdb6261c0`
155
+ - Template Xet object: `7da16e1025c1b856490c29c341f4e467d15cb195389c70383dade5e6108799ac`
156
+ - Verified 64 MiB header SHA-256: `f0e1d5e8f3b008402aa6eb32cada3873dd926c8bf5e7d00d7788eec65f09dd6d`
157
+ - Template weight values used: **no**
158
+
159
+ ## Runtime requirement
160
+
161
+ The required upstream runtime line is the official
162
+ [`antirez/ds4` `ds4f-mxfp4` branch](https://github.com/antirez/ds4/tree/ds4f-mxfp4),
163
+ not Antirez's default branch and not an older DS4 release. This is required
164
+ because the main GGUF contains 30 native MXFP4 routed-expert tensors. A runtime
165
+ without that branch's MXFP4 loader and Metal kernels is not compatible, even if
166
+ it can parse the GGUF header.
167
+
168
+ The upstream branch revision used as the base for this build was
169
+ `4893e0c40fba03dbc85555faeb035799aa04e0b6`. The required runtime checkout is:
170
+
171
+ ```bash
172
+ git clone --branch ds4f-mxfp4 https://github.com/antirez/ds4.git
173
+ cd ds4
174
+ make
175
+ ```
176
+
177
+ Build note: the [`d516d4e` quantizer PR](https://github.com/apetersson/ds4-omlx/tree/d516d4eeb82c454aeb2831af1b1961801d6b571b),
178
+ tracked as [`antirez/ds4#642`](https://github.com/antirez/ds4/issues/642),
179
+ was needed to create the preserved-MXFP4 DSpark GGUF. Users do **not** need that
180
+ PR to run either supplied file.
181
+
182
+ Do not substitute `antirez/ds4` `main`, an older DS4 binary or a generic GGUF
183
+ runtime. Container parsing alone does not demonstrate correct native MXFP4 or
184
+ mixed DSpark execution.
185
+
186
+ ## Running with DS4
187
+
188
+ Target-only Metal inference:
189
+
190
+ ```bash
191
+ ./ds4 --metal \
192
+ -m DeepSeek-V4-Flash-0731-DS4-Quality128.gguf
193
+ ```
194
+
195
+ Greedy DSpark inference:
196
+
197
+ ```bash
198
+ ./ds4 --metal \
199
+ -m DeepSeek-V4-Flash-0731-DS4-Quality128.gguf \
200
+ --mtp DeepSeek-V4-Flash-0731-DS4-Quality128-DSpark-support.gguf \
201
+ --dspark --temp 0
202
+ ```
203
+
204
+ DSpark is opt-in, accelerates generation rather than prefill, and can be neutral
205
+ or slower when proposal acceptance is low. Sampled decoding does not use DSpark
206
+ proposals in the pinned runtime.
207
+
208
+ Structural inspection:
209
+
210
+ ```bash
211
+ ./ds4 --cpu --inspect \
212
+ -m DeepSeek-V4-Flash-0731-DS4-Quality128.gguf \
213
+ --mtp DeepSeek-V4-Flash-0731-DS4-Quality128-DSpark-support.gguf \
214
+ --dspark-strict
215
+ ```
216
+
217
+ ## Memory planning on a 128 GB Mac
218
+
219
+ The target machine has 128 GiB (`137,438,953,472` bytes) of unified physical
220
+ memory, but the more relevant ceiling for a large Metal allocation is its
221
+ approximately `121.60 GiB` `recommendedMaxWorkingSetSize`. The remaining
222
+ roughly `6.40 GiB` is not extra model capacity; macOS, applications, drivers and
223
+ untracked transient allocations still need memory. A configuration at or below
224
+ 128 GiB can therefore be unsafe when it is above—or too close to—the Metal
225
+ working-set recommendation.
226
+
227
+ ### Fixed weight cost
228
+
229
+ | Loaded weights | GiB | Share of 128 GiB | Share of 121.60 GiB Metal recommendation |
230
+ | --- | ---: | ---: | ---: |
231
+ | Target model only | `95.7644` | `74.8%` | `78.8%` |
232
+ | Target + DSpark support | `102.5609` | `80.1%` | `84.3%` |
233
+
234
+ These are GGUF payload sizes, before KV cache, indexed-attention scratch,
235
+ prefill workspace, verifier state and other runtime allocations. DS4's planner
236
+ uses an approximately `97.63 GiB` resident span for the main model after its
237
+ mapping/alignment accounting, rather than treating the main file size as the
238
+ entire live allocation.
239
+
240
+ ### Context-length scaling at prefill chunk 1,024
241
+
242
+ `--ctx` is the total prompt-plus-completion capacity. `--prefill-chunk` is the
243
+ maximum prompt microbatch DS4 processes at once; it is the relevant “batch
244
+ size” for this single-session memory calculation. A larger chunk can improve
245
+ prefill throughput, but indexed-attention scratch grows with both context length
246
+ and chunk size.
247
+
248
+ The following are conservative planning estimates. “Margin” is remaining space
249
+ under the `121.60 GiB` Metal recommendation, not free system RAM.
250
+
251
+ | Context | DSpark off: total | Off: margin | DSpark on: total | On: margin |
252
+ | ---: | ---: | ---: | ---: | ---: |
253
+ | 4,096 | `97.77 GiB` | `23.83 GiB` | `104.57 GiB` | `17.03 GiB` |
254
+ | 32,768 | `98.05 GiB` | `23.55 GiB` | `104.85 GiB` | `16.75 GiB` |
255
+ | 131,072 | `98.99 GiB` | `22.61 GiB` | `105.79 GiB` | `15.81 GiB` |
256
+ | 262,144 | `100.24 GiB` | `21.36 GiB` | `107.04 GiB` | `14.56 GiB` |
257
+ | 524,288 | `102.75 GiB` | `18.85 GiB` | `109.55 GiB` | `12.05 GiB` |
258
+ | 1,048,576 | `107.77 GiB` | `13.83 GiB` | `114.56 GiB` | `7.04 GiB` |
259
+
260
+ At ordinary 4K–128K contexts, the model weights dominate and chunk 1,024 leaves
261
+ substantial planned margin. At 512K and especially 1M, the compressed KV and
262
+ context-by-chunk attention workspace become material. DSpark adds approximately
263
+ `6.80 GiB` at every context length because its support model remains resident
264
+ during prefill even though speculative decoding only accelerates generation.
265
+
266
+ ### Prefill batch-size effect at one-million-token context
267
+
268
+ This table holds `--ctx 1048576` constant and varies `--prefill-chunk`. Totals
269
+ are the conservative envelope of DS4's resident-span/context estimator and the
270
+ completed release planning model. Percentages use all 128 GiB of physical RAM;
271
+ the Metal margin remains the safer operational measure.
272
+
273
+ | Prefill chunk | DSpark off total | Off: 128 GiB used | Off: Metal margin | DSpark on total | On: 128 GiB used | On: Metal margin |
274
+ | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
275
+ | 256 | `106.20 GiB` | `83.0%` | `15.40 GiB` | `113.00 GiB` | `88.3%` | `8.60 GiB` |
276
+ | 512 | `106.72 GiB` | `83.4%` | `14.88 GiB` | `113.52 GiB` | `88.7%` | `8.08 GiB` |
277
+ | 1,024 | `107.77 GiB` | `84.2%` | `13.83 GiB` | `114.56 GiB` | `89.5%` | `7.04 GiB` |
278
+ | 2,048 | `110.30 GiB` | `86.2%` | `11.30 GiB` | `117.09 GiB` | `91.5%` | `4.51 GiB` |
279
+ | 4,096 | `116.44 GiB` | `91.0%` | `5.16 GiB` | `123.24 GiB` | `96.3%` | **`−1.64 GiB`** |
280
+
281
+ The 4,096/DSpark combination exceeds Metal's recommendation despite fitting
282
+ numerically inside 128 GiB and should not be treated as resident-safe. The
283
+ 2,048/DSpark combination is also tight: its `4.51 GiB` planned Metal margin can
284
+ be consumed by omitted driver and verifier peaks. Chunk 1,024 is the sensible
285
+ first DSpark experiment at 1M; target-only chunk 2,048 is the more conservative
286
+ maximum-quality starting point. Chunks 256–512 provide more margin at the cost
287
+ of more prefill iterations and likely lower prompt-processing throughput.
288
+
289
+ Target-only 1M starting point:
290
+
291
+ ```bash
292
+ ./ds4 --metal \
293
+ -m DeepSeek-V4-Flash-0731-DS4-Quality128.gguf \
294
+ --ctx 1048576 --prefill-chunk 2048
295
+ ```
296
+
297
+ DSpark 1M starting point, only after unloading other large applications and
298
+ measuring the target-only peak:
299
+
300
+ ```bash
301
+ ./ds4 --metal \
302
+ -m DeepSeek-V4-Flash-0731-DS4-Quality128.gguf \
303
+ --ctx 1048576 --prefill-chunk 1024 \
304
+ --mtp DeepSeek-V4-Flash-0731-DS4-Quality128-DSpark-support.gguf \
305
+ --dspark --temp 0
306
+ ```
307
+
308
+ ### Multiple sessions and server batching
309
+
310
+ The tables describe one resident session. They do not mean that `N` concurrent
311
+ requests cost exactly `N` times the displayed total: weights and some graph
312
+ workspace are shared, while each resident session needs its own KV/context
313
+ buffers and live request state. DS4 reports the aggregate minimum context-buffer
314
+ request at server startup. For multi-user serving, start with one session,
315
+ measure the process and system peak, then raise concurrency one session at a
316
+ time; do not infer a safe concurrency count from the GGUF sizes alone.
317
+
318
+ All figures above are planning estimates, not measurements of this exact
319
+ artifact. Metal load, peak-memory capture and an actual 1,048,576-token run
320
+ remain required. Keep several GiB of additional operational margin, watch
321
+ memory pressure rather than only Activity Monitor's process RSS, and expect
322
+ other active models or large applications to invalidate the table.
323
+
324
+ ## Reproducibility
325
+
326
+ - Build tooling revision: `e24746463a0a3e79036dd9c0472deac6ce704f08`
327
+ - Build driver SHA-256: `cb1569b909de010b4aaa2a1b1b7ed8e277bcdf41e32585f1651005b41e81567f`
328
+ - Build-time DS4/quantizer revision: `d516d4eeb82c454aeb2831af1b1961801d6b571b`
329
+ - oMLX revision: `76352ed2363e42b2146243463875756e683a640d`
330
+ - Profile SHA-256: `bc7f6470a0cb6208addf2ac52806d976108517119b411023da3fd91b492b218c`
331
+ - Build run ID: `20260801-161944-54912`
332
+
333
+ The tooling worktree was intentionally dirty and is cryptographically described
334
+ in `BUILD_MANIFEST.json`, alongside the complete profile, source-shard hashes,
335
+ calibration/template identities and exact converter commands.
336
+
337
+ ## Validation status
338
+
339
+ Completed on 2026-08-01:
340
+
341
+ - focused build-driver and finalization test suites: 40/40 passed;
342
+ - every one of the 48 official source weight shards fully SHA-256 verified;
343
+ - strict routed-imatrix name and vector-dimension coverage passed;
344
+ - main GGUF: exact size, 1,328 tensors, exact name set and exact type histogram;
345
+ - DSpark GGUF: exact size, 81 tensors, three stages and target layers 40/41/42;
346
+ - strict DSpark binding: 81 tensors, 0 missing, 0 invalid and 0 metadata errors;
347
+ - `ds4 --cpu --inspect --dspark-strict` passed;
348
+ - byte-for-byte regeneration passed for all 30 main and all three DSpark native
349
+ MXFP4 tensors; and
350
+ - the original build payloads passed their recorded SHA-256 checks before
351
+ atomic publication; this README was added afterward and independently added
352
+ to `SHA256SUMS`.
353
+
354
+ Still required before making runtime, quality or performance claims:
355
+
356
+ - successful Metal load and deterministic generation with DSpark disabled;
357
+ - successful Metal generation with DSpark enabled and lossless target agreement;
358
+ - proposal acceptance rate and accepted tokens per target step;
359
+ - prompt-processing and generation tokens/second;
360
+ - measured peak unified memory and practical context limits on the target host;
361
+ - an actual 1,048,576-token context run; and
362
+ - capability/perplexity comparisons against the official FP8 source.
363
+
364
+ ## Limitations and responsible use
365
+
366
+ Ultra-low-bit expert quantization can reduce reasoning, factuality, style
367
+ fidelity and long-context robustness even when dense paths and selected experts
368
+ are protected. Native MXFP4 Metal kernels and the mixed DSpark path are newer
369
+ than DS4's mature Q4_K path. This package does not guarantee correctness,
370
+ neutrality, safety, regulatory compliance or a particular response style.
371
+ Evaluate it for the intended workload and apply appropriate access controls.
372
+
373
+ ## License and attribution
374
+
375
+ The upstream repository and weights are MIT licensed. This quantized derivative
376
+ retains that license. Credit DeepSeek-AI for the original model, ox-ox for the
377
+ 0731 routed-expert importance matrix, antirez for DS4 and the exact-0731
378
+ metadata recipe, and apetersson for the DS4 fork, conversion profile and release
379
+ tooling.
SHA256SUMS ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ 06c21a905c65f01394583d46e1f120fffabdae7dbaae610903e1ffb441ac720d BUILD_MANIFEST.json
2
+ 393b807aa0a409f1c006f0e700bbb91a80d3de28daa56c222edf944250075c66 DeepSeek-V4-Flash-0731-DS4-Quality128-DSpark-support.gguf
3
+ efcbf786154c2aec61511785d04a4c8d98ee42500b60ff8a810717fc0a69d1d3 DeepSeek-V4-Flash-0731-DS4-Quality128.gguf
4
+ 05546a9a7511cae87b0eb34191654bba23c6746e134c3b0c6e7d61a03909f1e0 PROVENANCE.md
5
+ 93b97d6c9bea07f26936b74ba5c0f09ef4d4938789c259844f201410cbf3038e README.md