mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[GH-ISSUE #500] pack_gguf: a GGUF with no DSpark geometry (ISTA's GSQ-RCO) packs a drafter that never drafts, with no warning #204
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mw00/project-maya#204
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @noonghunna on GitHub (Oct 26, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/500
ISTA's GSQ-RCO GGUF of DeepSeek-V4.1-Flash-1017 (#440; loading added in v1.1.27) carries one DSpark key,
deepseek41.dspark_target_layer_ids= [37, 38, 39], whichNEWER_KEYSmaps todspark.target_layers. The other five aren't there under any spelling.tools/ds4/pack_gguf.pyreads them with a default of 0 (g("dspark.block_size", 0)and so on), so a pack built with--drafterwrites:The engine then loads the drafter, VRAM and experts included, but
draft_block()is 0, so it never drafts. Nothing in the log says so; the only sign is that nodrafts N of M keptlines appear. Re-checked on v1.1.28: same zeros. #453 lists automatic DSpark setup as outside its scope, so this may be known, but the silent part cost us a start.Writing DeepSeek-V4.1-Flash's own values into the pack's
ds4.txtmakes it work: block 5, noise token 128799, markov rank 256, 128 experts, top 3. We took them from unsloth's UD-Q8_K_XL metadata shard; Strata's pack of these files carries the same. With tensor parallel 2 on v1.1.27, code decode went from ~40 to ~51 tok/s, with 84% of drafts kept.Possible fixes, any one is enough:
--drafteris given anddspark_block_sizecomes out 0;drafter_pack.pywrite the geometry into the drafter's.json, which it builds from DeepSeek's checkpoint and so has the config for. The pack would then take it from there, the way it takes the vision tower's geometry fromvision_pack.py's folder.dspark-xs2.jsontoday has onlyfrom,experts,dense,tensors.Repro:
pack_gguf.py --model <dir> --out <pack> --drafter <dspark-xs2.json> --shards <the 4 IQ2_XXS shards> DeepSeek-V4.1-Flash-Engram-IQ4_NL.gguf, thengrep dspark <pack>/ds4.txt.@mw00 commented on GitHub (Oct 27, 2026):
Thank you for the clear report and the values. In v1.1.30
pack_gguf.pyno longer packs such a drafter silently:.json(drafter_pack.pynow records them when DeepSeek'sconfig.jsonis beside the shards). Otherwise it uses DeepSeek-V4.1-Flash's own values (block 5, noise token 128799, Markov rank 256, 128 experts, top 3, targets 37-39) when the trunk and the drafter are that model's. It prints which values it took.--draftershould now draft without editingds4.txt.