mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 19:04:50 +07:00
[GH-ISSUE #83] Setup: unsloth's metadata-only first shard is reported "short" (29 bytes of alignment padding missing) #31
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mw00/project-maya#31
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 @speja969 on GitHub (Oct 10, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/83
Version: Project Maya v1.0.30 (
c189f7a), Linux (Debian 13).What happens: with unsloth/GLM-5.3-Flash-GGUF UD-IQ4_XS passed through
--gguf-dir, step 5 stops:The file is complete: 9,429,859 bytes is its size on Hugging Face, and llama.cpp loads the model from it. unsloth's first shard holds only metadata, no tensors.
Why:
incomplete()inmaya.pycomputesneed = g.data_start + max(tensor ends, default=0), andGGUFFile(tools/gguf_reader.py) setsdata_startto the end of the header rounded up togeneral.alignment(32). With no tensors, that asks for 29 bytes of trailing padding that the writer did not add (9,429,859 rounded up is 9,429,888).Workaround: a padded copy of shard 1, with the other shards linked next to it:
After that the setup, the pack, the calibration, the server and
--benchall ran (speed report in a separate issue).A possible fix: treat a file without tensors as whole once its header is there. For example, keep the unaligned end in
GGUFFile._parse(self.header_end = pos, before rounding) and inincomplete():Not tested: whether the engine itself loads the unpadded shard once the check passes. Other unsloth quants whose first shard holds only metadata may hit the same check.
@mw00 commented on GitHub (Oct 10, 2026):
Thank you, the diagnosis was exact. The fix is in #85, as you suggested:
incomplete()now takes a shard without tensors as whole at its header's end;tools/gguf_reader.pykeeps that end.The engine already accepted such a shard: its reader skips the end-of-file check when there are no tensors. So your padded copy won't be needed once #85 is in a release.
@mw00 commented on GitHub (Oct 11, 2026):
Fixed in v1.0.32 (#85): a first shard that holds only metadata (the tokenizer and settings, as unsloth's) is now read as whole, so the setup goes on to the pack. Update with the dashboard's About > Update, or
git pullthen./setup.sh. Please reopen if it still stops for you.