mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2632] [CLOSED] fix(setup) v2: don't require tensor-data alignment for GGUF shards without #4180
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#4180
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/2632
Author: @OriginalMadman
Created: 10/15/2026
Status: ❌ Closed
Base:
main← Head:main📝 Commits (3)
86bf0aafix(setup): don't require tensor-data alignment for GGUF shards with no tensorse70f91fRevert "fix(setup): don't require tensor-data alignment for GGUF shards with no tensors"c25bd41fix(setup): don't require tensor-data alignment for GGUF shards with no tensors📊 Changes
1 file changed (+7 additions, -0 deletions)
View changed files
📝
setup.py(+7 -0)📄 Description
check_shards()andwhole_shard()calculated the minimum GGUF shard size asdata_start + max(tensor end offsets). For a shard containing no tensors, thisincorrectly required the file to extend through the aligned tensor-data start,
even though no tensor payload exists.
This caused valid metadata-only GGUF shards to be rejected as truncated. For
example,
Qwen3.8-Flash-Next-UD-Q5_K_XL-00001-of-00006.ggufwas reported assix bytes short:
The downloaded file matched the size and SHA-256 declared in
setup.py.Change
Skip the tensor-payload extent check when a successfully parsed GGUF shard has
no tensors. GGUF parsing, the existing checks for tensor-bearing shards, and
the separate pinned size/SHA-256 verification remain unchanged.
Issue: Resolves https://github.com/Niko1221/Strata/issues/2470 and https://github.com/Niko1221/Strata/issues/2346
#2491
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.