mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2505] [CLOSED] setup: a shard with no tensors is not "short" (UD-Q5_K_XL 00001-of-00006 stopped setup on a correct download) #4081
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#4081
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/2505
Author: @joesinvestments
Created: 10/14/2026
Status: ❌ Closed
Base:
main← Head:setup-tensorless-shard📝 Commits (2)
05b471fsetup: a shard with no tensors is not shorte0bc1d3test_shards: a tensor-less shard ending at its unpadded header passes📊 Changes
2 files changed (+8 additions, -1 deletions)
View changed files
📝
setup.py(+1 -1)📝
tools/test_shards.py(+7 -0)📄 Description
Title
Issue: none open; found while setting up UD-Q5_K_XL on a Mac (
./setup.sh --setup --family unsloth --model UD-Q5_K_XL).Summary
All six UD-Q5_K_XL shards download, then setup stops:
Qwen3.8-Flash-Next-UD-Q5_K_XL-00001-of-00006.gguf is short: 10,946,618 of 10,946,624 bytes (6 missing).The file is right: the Hub lists it at 10,946,618 bytes and its SHA-256 equals the pin (
610922cd...). That shardholds only metadata, and
check_shards()takesg.data_start(the header rounded up to the alignment) as its leastlength, which a tensor-less file never reaches. A shard with no tensors has no tensor data to be short of.
What changed
setup.py,check_shards():if have < need:becomesif have < need and g.tensors:.tools/test_shards.py:test_tensorless_shard_needs_no_alignment_padding(a 24-byte GGUF with no tensors passes).pinned SHA-256 checks still cover the tensor-less shard.
How it was checked
python -m unittest tools.test_shards: the new test fails onmain296b59d2with the "is short" message and passeswith the change; 14 of 14 pass.
tools/test_setup_*.py, all 40, onmainand on this branch: every test ends with the same result on both (run onmacOS, where 15 of them fail on
maintoo for PC-only reasons such as the ROCm wheels).engine serves it (Metal, experts streamed from the SSD).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.