mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3955] [CLOSED] [Engine] pack older DeepSeek GGUF metadata with exact source geometry #4849
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#4849
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/3955
Author: @Tsury
Created: 10/24/2026
Status: ❌ Closed
Base:
main← Head:fix/dsv41-legacy-gguf-metadata📝 Commits (1)
ac61f6afix(dsv41): read legacy GGUF metadata and omitted sparse geometry📊 Changes
2 files changed (+77 additions, -1 deletions)
View changed files
📝
tests/terminal/test_pack_gguf_engram.py(+46 -0)📝
tools/dsv41/pack_gguf.py(+31 -1)📄 Description
Older DeepSeek-V4.1 GGUF conversions can have supported tensors but fail during packing. The pinned mrfakename Q2_K uses
engram.key_lengthandengram.pad_id; current packing expectshead_dimandpad_token_id, sowrite_engramraisesTypeError: list indices must be integers or slices, not NoneType. Those files also omit the sparse KV/index source lists and candidate geometry entirely.The packer now accepts those two older Engram names. An explicit
--config-jsonoption fills omitted sparse geometry from the exact source model configuration. It checks existing core/sparse geometry for disagreement instead of replacing it. This does not rewrite GGUF metadata or tensors and does not change engine code or inference defaults.Example:
The pinned source config agrees with the official 1017 config: Engram dimension256/pad2; KV source layers2,8,14,20; candidate layer20/top-k2048/block8. This is the source of the missing values, not a guess based on architecture size.
Validation on Linux/Python3.14, base
7dd5cf18e68c639a8773e096c5c79f971ea2a9f5:python3 tests/terminal/test_pack_gguf_engram.py(5 tests). The new legacy-Engram case first reproduced the TypeError on the base implementation. It now writes the expected DSE1 header and identical bytes to current names. Canonical values retain precedence. The source-config case checks restored geometry and rejects a conflict.--helpexposes the option; syntax checks andgit diff --check.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.