mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4911] [CLOSED] [Engine] dsv41: pack the Lucebox DSpark drafter (deepseek41-dflash-draft) #5248
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#5248
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/4911
Author: @dingyiyuan
Created: 11/1/2026
Status: ❌ Closed
Base:
main← Head:pr-lucebox-drafter📝 Commits (1)
eef1436tools/dsv41: pack the Lucebox DSpark drafter (deepseek41-dflash-draft)📊 Changes
1 file changed (+35 additions, -4 deletions)
View changed files
📝
tools/dsv41/pack_gguf.py(+35 -4)📄 Description
Problem and result
pack_gguf.py --dspark-ggufrefuses Lucebox's DeepSeek-V4.1-Flash-DSpark GGUF, which is a valid DSpark drafter. Five differences from the unslothdflashset each stop the pack, and a sixth one only shows up after the pack loads:dflashdeepseek41-dflash-draftdflashdeepseek41-dflash-draft(rejected)dflash.block_size, …<arch>.dflash.block_size, …dflash.block_count<arch>.block_countfc.weight,enc.output_norm.weight,conf_proj.weight,markov_w1/w2.weightdflash.fc.weight,dflash.hidden_norm.weight,dflash.dspark.confidence.weight,dflash.dspark.markov.w1/w2--dspark-noise-token<arch>.dflash.mask_token_idmarkov_head.embeddtypeBefore:
SystemExit: ... not a DSpark (dflash) GGUF, and after working around that, the engine rejected the pack withmtp.2.markov_head: not the BF16 embed and F16 / BF16 head expected.After: the pack builds and the engine loads it (
DSpark drafter from ...: 3 blocks,dspark_block_size 5, 1242 mtp tensors) and drafts.Related discussion
none
Approach
<arch>.dflash.<k>, falling back to<arch>.<k>;block_countfrom<arch>.block_count<arch>.dflash.mask_token_idwhen--dspark-noise-tokenis not passeddflash.*head names onto the checkpoint'smtp.N.*names (fc→main_proj,hidden_norm→main_norm,markov.w1/w2→markov_head.embed/head,confidence.weight→confidence_head.proj);dflash.dspark.confidence.biashas no engine-side counterpart and is skipped by namemarkov_head.embedfrom F16 to BF16 into a<drafter>.mkembed_bf16.binside file at pack time and point the tensor at it: F16 and BF16 are the same width, so this is a value-preserving conversion, not a re-quantisationNothing changes for the
dflashpath: every new key is tried first and the old spelling is the fallback.Validation
Passed:
Revision: the same change carried on a local branch of
b70-sycl-dsv41-perf(this PR's commit is the change re-applied tomain; the two differ only in that base).Environment: Ubuntu, Intel Arc Pro B70 32 GB, oneAPI/SYCL engine built JIT with
SYCL_PROGRAM_COMPILE_OPTIONS=-O3; base model DeepSeek-V4.1-Flash IQ2_XXS (40 layers, 15360 routed experts), drafter LuceboxQ2K-Q4K(4.92 GB).Observed: the packer printed
DSpark drafter from DeepSeek-V4.1-Flash-DSpark-draft-Q2K-Q4K.gguf: 3 blocks; the pack's--pack-inforeportsdspark_block_size 5,markov_rank 256,noise 128799,n_routed_experts 128, 1242 mtp tensors; the engine loads it and runs with--dspark on: acceptance 100% (315/315), 5.84 tokens a round, draft ~7 ms/round.Failed:
none observed
Not run:
main; the base commit differs from the branch the pack was built on, and building it again needs the 164 GB base model and about half an hour of packing.dflash(unsloth) path after the change. It keeps its original key spellings and takes the same code path as before, but I did not re-pack an unsloth drafter to confirm the fallback.Limits
DSpark GGUF tensors the pack does not map), which is the intended behaviour.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.