mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3875] [Engine] --ple-gguf: accept a GGUF shard holding only the PLE table, as a strata-ple file #4812
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#4812
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/3875
Author: @baptisterajaut
Created: 10/23/2026
Status: 🔄 Open
Base:
main← Head:fix/ple-gguf-table-only📝 Commits (1)
544cbb5fix: a --ple-gguf shard holding only the PLE table is not added to the native dense shards📊 Changes
1 file changed (+4 additions, -1 deletions)
View changed files
📝
src/program/generate.cpp(+4 -1)📄 Description
Problem and result
--ple-ggufpointing at a GGUF shard that holds onlyper_layer_token_embd.weight, taken from another release of the same model, stops the engine at start. Here: Orca'sQwen3.8-Flash-Next-Uncensored-IQ4_XSas--native, and shard 3 of 5 ofQwen3.8-Flash-Next-heretic-2-IQ4_XS, whose only tensor is the PLE table in Q8_0 instead of Orca's IQ4_NL. On main the--ple-gguffile joins the native dense shards and fails their split check:native dense projections: native dense: additional shard must match the architecture-validated first shard's split metadata. With this change the engine starts and reads the table from that file (PLE on, table 320001536 rows of .../Qwen3.8-Flash-Next-heretic-2-IQ4_XS-00003-of-00005.gguf).Related discussion
none
Approach
A
--ple-gguffile whose only tensor isper_layer_token_embd.weightis treated like astrata-plefile (tools/ple_fp8_pack.py): it is not appended to the native dense shards, since it carries no projection and the table has its own reader. The split check on the dense shards is unchanged. A setup that starts today loads the same dense weights: the default--ple-gguf(shard 2 of the ISTA files) is one of the--nativeshards and is already in the list, and a file holding only the table adds no dense tensor either way. In this case the two tables are the same table at two precisions: on 3,000 random rows, cosine 0.997 on average and 0.996 at worst between Orca's IQ4_NL copy and heretic-2's Q8_0 one (0.001 for mismatched rows).Validation
Passed:
cmake --build build --target strataat7ddc17a3(main) and at this branch.strata --servewith Orca IQ4_XS as--nativeand heretic-2's shard 3 as--ple-gguf: at7ddc17a3the start fails with the split metadata error above; at this branch it starts in 115 s and logs the PLE table from that file./v1/chat/completionson this branch: coherent answers, 55.4 and 56.7 tok/s.Failed: none observed
Not run: the test suite; HIP, SYCL and Metal builds; a start on the ISTA files (not on this machine), unchanged by reading the code since their PLE shard is one of the
--nativeshards.Limits
Nothing checks that the table belongs to the same base model: a table from another model with the same row count loads without complaint, as a
strata-plefile already does.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.