mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2470] Setup fails GGUF shard validation for Qwen3.8-Flash-Next UD-Q5_K_XL #1010
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#1010
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?
Originally created by @popken-it on GitHub (Oct 14, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2470
First issue report ever. Working solution provided with chatgpt below.
I am not technical (ordinairy user), so follow questions will be very hard for me to answer.
Setup fails GGUF shard validation for Qwen3.8-Flash-Next UD-Q5_K_XL
Summary
During setup of Qwen3.8-Flash-Next (Unsloth) UD-Q5_K_XL, the first GGUF shard is rejected as being 6 bytes too short, even though the downloaded file matches the size and SHA-256 hash declared in
setup.py.This appears to be related to the GGUF validation logic in
check_shards()insetup.py.Environment
Steps to reproduce
./setup.sh.Expected behavior
Setup should validate the downloaded GGUF shards and continue if their contents and integrity are valid.
Actual behavior
The original setup reports:
The relevant entry in
UNSLOTH_BIG_SHARDSinsetup.pydeclares the following expected size and SHA-256:The downloaded file has exactly the declared size and hash:
Downloading the file again from the Hugging Face repository produced the same size and hash.
Technical observations
Using
GGUFFilefromtools/gguf_reader.py, I inspected the first shard and obtained:The current
check_shards()implementation calculates the minimum required file size using:When the parsed shard contains no tensors, the
default=0means the calculated minimum size is simplyg.data_start. In this case, that aligned offset is 6 bytes beyond the end of the file.The size and hash declared in
setup.pyagree with the downloaded file, but the structural validation rejects it before setup can finish.Additional test
After modifying the validation locally to skip the tensor-size check when
g.tensorsis empty, setup proceeded to SHA-256 verification of the model shards:Note: At the time of writing, the full SHA-256 verification and subsequent model loading have not yet been confirmed to complete successfully.
Questions
check_shards()handle an empty tensor list differently, rather than treating the aligned data offset as the minimum file size?A robust fix should preserve validation of genuine truncated shards while correctly handling valid GGUF files that contain no tensor payload.
Thank you!
@qiuzan2001 commented on GitHub (Oct 15, 2026):
Same failure as #2346 (
UD-Q5_K_XL-00001-of-00006.gguf is short: 10,946,618 of 10,946,624 bytes). Reproduced on Linux with main296b59d2: a GGUF with no tensors whose size is below its aligned data start makessetup.check_shards()stop with "is short". Two open PRs fix it: #2491 (check_shardsandwhole_shard) and #2505 (check_shards, with a test).@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.