[PR #277] [CLOSED] iq_pack: keep experts.bin only when its blobs match the GGUF #2543

Closed
opened 2026-11-04 02:01:10 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • 8f13d4b iq_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-bin kept an existing experts.bin whenever its size matched the layout. A different
checkpoint 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 geometry
into 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.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/277 **Author:** [@sergqwer](https://github.com/sergqwer) **Created:** 9/30/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `pr/iq-pack-reuse-check` --- ### 📝 Commits (1) - [`8f13d4b`](https://github.com/Niko1221/Strata/commit/8f13d4b85156c94712df199c9ab8752dcdb8318c) iq_pack: keep experts.bin only when its blobs match the GGUF ### 📊 Changes **2 files changed** (+58 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `tools/iq_pack.py` (+20 -6) 📝 `tools/test_iq_pack.py` (+38 -0) </details> ### 📄 Description ## Summary `tools/iq_pack.py --experts-bin` kept an existing `experts.bin` whenever its size matched the layout. A different checkpoint 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 geometry into one folder. It fails on main and passes here; the other 8 tests pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01VZy1yKaDDiA8a7svdwaHio --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 02:01:10 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2543
No description provided.