mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2491] [CLOSED] fix(setup): don't require tensor-data alignment for GGUF shards without … #4074
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#4074
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/2491
Author: @OriginalMadman
Created: 10/14/2026
Status: ❌ Closed
Base:
main← Head:main📝 Commits (1)
86bf0aafix(setup): don't require tensor-data alignment for GGUF shards with no tensors📊 Changes
1 file changed (+6867 additions, -6859 deletions)
View changed files
📝
setup.py(+6867 -6859)📄 Description
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.
check_shards()andwhole_shard()calculated the minimum GGUF shard size asdata_start + max(tensor end offsets). For a shard containing no tensors, this incorrectly 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 as six bytes short:The downloaded file matched the size and SHA-256 declared in
setup.py.Title
Issue: Resolves #2470 and #2346
Summary
What changed
Extra Notes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.