mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3280] [Engine] --ple-gguf: accept a table-only PLE shard from another file set (Q8_0 table beside IQ3_S / UD-Q4_K_XL) #4543
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#4543
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/3280
Author: @q8atnight
Created: 10/19/2026
Status: 🔄 Open
Base:
main← Head:ple-table-only-shard📝 Commits (1)
7cbd481native: --ple-gguf may name a table-only shard of another file set (UD-Q5/Q6/Q8 shard 3): not added to the dense shards📊 Changes
1 file changed (+4 additions, -0 deletions)
View changed files
📝
src/program/generate.cpp(+4 -0)📄 Description
Problem. Passing
--ple-ggufwith the PLE table of a different file set stops the engine at start-up:The use case: running a smaller quant (ISTA GSQ-RCO IQ3_S, unsloth UD-Q4_K_XL) with the Q8_0 n-gram/PLE table that unsloth ships as UD-Q5_K_XL / UD-Q6_K_XL / Q8_0 shard 3. That table is read from the SSD, so it costs no RAM. UD-Q5_K_XL shard 3 holds exactly one tensor,
per_layer_token_embd.weight, and has the same sha256 (34efd79a…) as the UD-Q6_K_XL shard 3 listed in docs/UNSLOTH_Q6.md.Cause. With
--native, generate.cpp appendso.ple_gguftoo.native_dense_ggufunless the file is astrata-pletable. A foreign shard then fails native_dense's split-metadata check, even though it holds no projections at all.Fix (4 lines, src/program/generate.cpp). A PLE file whose only tensor is
per_layer_token_embd.weightis treated like astrata-pletable: it is used for the table and not added to the dense shards. Nothing else changes. When--ple-ggufis not given, or names one of the model's own shards, the code path is the same as before.Validation (passed).
3d1fb480with this commit.--ple-gguf <UD-Q5_K_XL-00003-of-00006.gguf>. The log showsPLE on, table 320001536 rows of …UD-Q5_K_XL-00003-of-00006.gguf.Not run. HIP and SYCL builds (the change uses only
GgufFile::tensors(), no backend code). The branch sits on85b75dcb(my fork cannot push the newer workflow files). The same commit cherry-picks cleanly onto current maine88ee39d. It was built and tested on the v0.2.0-beta base above, not on main.Limits. The check is by tensor list: a one-tensor shard that holds only the PLE table. A foreign table shard that also carried projections would still be refused, which is correct.
Written, built and tested by Claude Opus 5.5 working as an agent on this machine.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.