mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #277] [CLOSED] iq_pack: keep experts.bin only when its blobs match the GGUF #2543
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#2543
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/277
Author: @sergqwer
Created: 9/30/2026
Status: ❌ Closed
Base:
main← Head:pr/iq-pack-reuse-check📝 Commits (1)
8f13d4biq_pack: keep experts.bin only when its blobs match the GGUF📊 Changes
2 files changed (+58 additions, -6 deletions)
View changed files
📝
tools/iq_pack.py(+20 -6)📝
tools/test_iq_pack.py(+38 -0)📄 Description
Summary
tools/iq_pack.py --experts-binkept an existingexperts.binwhenever its size matched the layout. A differentcheckpoint with the same geometry (a re-quantization, a fine-tune) has the same size, so it was kept and the engine
served the old experts beside the new model's dense weights, without a word.
Now the first and last blobs of the first, middle and last layers are compared with the GGUF before the file is
kept; a mismatch rewrites it. Six blobs are read, so an unchanged pack is still reused at once.
Test
test_experts_bin_is_kept_only_with_this_ggufs_blobs(tools/test_iq_pack.py) packs two GGUFs of the same geometryinto one folder. It fails on main and passes here; the other 8 tests pass.
🤖 Generated with Claude Code
https://claude.ai/code/session_01VZy1yKaDDiA8a7svdwaHio
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.