[GH-ISSUE #1611] [Bug]: a tensor-less GGUF shard whose aligned data start is past EOF is refused (unsloth UD-Q5_K_XL shard 1) #645

Closed
opened 2026-11-04 01:44:45 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @CYoung83 on GitHub (Oct 8, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1611

What happened

--native .../UD-Q5_K_XL/Qwen3.8-Flash-Next-UD-Q5_K_XL-00001-of-00006.gguf
strata generate: --native ...UD-Q5_K_XL-00001-of-00006.gguf: GGUF: data section starts past EOF

Shard 1 of unsloth/Qwen3.8-Flash-Next-GGUF UD-Q5_K_XL holds metadata only (0 tensors) and is 10,946,618 bytes.
Its 32-byte-aligned data start is 10,946,624, which is 6 bytes past EOF. Shard 1 of UD-Q4_K_XL and of Q8_0 is
10,946,624 bytes, so its data start is exactly EOF, and it loads.

include/strata/artifact/gguf_reader.hpp:458 throws whenever the aligned data start is past EOF, whether or not the
file has tensors. That line is unchanged on main fb58e0d (v0.1.41). llama.cpp's gguf-py at the pinned 3cf0325
reads the file: GGUFReader reports 0 tensors and data_offset 10,946,624.

Workaround: pad a copy of shard 1 with 6 zero bytes (truncate -s 10946624) and symlink shards 2-6 beside it. The
engine then loads and runs the model.

A fix with a test follows in a PR.

Strata version, GPU, OS

0.1.40.3 (source build, -DSTRATA_Q6K_EXPERTS=ON) · RTX 5090 32GB · Ubuntu 26.04, CUDA 13.3

Originally created by @CYoung83 on GitHub (Oct 8, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/1611 ### What happened ``` --native .../UD-Q5_K_XL/Qwen3.8-Flash-Next-UD-Q5_K_XL-00001-of-00006.gguf strata generate: --native ...UD-Q5_K_XL-00001-of-00006.gguf: GGUF: data section starts past EOF ``` Shard 1 of unsloth/Qwen3.8-Flash-Next-GGUF `UD-Q5_K_XL` holds metadata only (0 tensors) and is 10,946,618 bytes. Its 32-byte-aligned data start is 10,946,624, which is 6 bytes past EOF. Shard 1 of `UD-Q4_K_XL` and of `Q8_0` is 10,946,624 bytes, so its data start is exactly EOF, and it loads. `include/strata/artifact/gguf_reader.hpp:458` throws whenever the aligned data start is past EOF, whether or not the file has tensors. That line is unchanged on main `fb58e0d` (v0.1.41). llama.cpp's gguf-py at the pinned `3cf0325` reads the file: `GGUFReader` reports 0 tensors and `data_offset` 10,946,624. Workaround: pad a copy of shard 1 with 6 zero bytes (`truncate -s 10946624`) and symlink shards 2-6 beside it. The engine then loads and runs the model. A fix with a test follows in a PR. ### Strata version, GPU, OS 0.1.40.3 (source build, -DSTRATA_Q6K_EXPERTS=ON) · RTX 5090 32GB · Ubuntu 26.04, CUDA 13.3
Author
Owner

@Niko1221 commented on GitHub (Oct 10, 2026):

Fixed in v0.1.42 through #1612: the metadata-only first shard of UD-Q5_K_XL (6 bytes short of its aligned data start) now opens. The change is in include/strata/artifact/gguf_reader.hpp and only affects a file with zero tensors.

<!-- gh-comment-id:6099633032 --> @Niko1221 commented on GitHub (Oct 10, 2026): Fixed in v0.1.42 through #1612: the metadata-only first shard of UD-Q5_K_XL (6 bytes short of its aligned data start) now opens. The change is in include/strata/artifact/gguf_reader.hpp and only affects a file with zero tensors.
Author
Owner

@Niko1221 commented on GitHub (Oct 13, 2026):

Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.

If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.

<!-- gh-comment-id:6156154077 --> @Niko1221 commented on GitHub (Oct 13, 2026): Thanks for the report. To keep the tracker current we are closing issues older than three days: [0.1.44](https://github.com/Niko1221/Strata/releases/tag/v0.1.44) is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1. If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.
Author
Owner

@marjansplit commented on GitHub (Oct 14, 2026):

Bug still present! v0.1.44.1

[X] Qwen3.8-Flash-Next-UD-Q5_K_XL-00001-of-00006.gguf is short: 10,946,618 of 10,946,624 bytes (6 missing)
delete it and run setup again (or copy the whole file into --gguf-dir)

After: truncate -s 10946624 Qwen3.8-Flash-Next-UD-Q5_K_XL-00001-of-00006.gguf

[X] Qwen3.8-Flash-Next-UD-Q5_K_XL-00001-of-00006.gguf is 10,946,624 bytes, not 10,946,618
delete it and run setup again (the download restarts)

<!-- gh-comment-id:6179487613 --> @marjansplit commented on GitHub (Oct 14, 2026): Bug still present! v0.1.44.1 [X] Qwen3.8-Flash-Next-UD-Q5_K_XL-00001-of-00006.gguf is short: 10,946,618 of 10,946,624 bytes (6 missing) delete it and run setup again (or copy the whole file into --gguf-dir) After: truncate -s 10946624 Qwen3.8-Flash-Next-UD-Q5_K_XL-00001-of-00006.gguf [X] Qwen3.8-Flash-Next-UD-Q5_K_XL-00001-of-00006.gguf is 10,946,624 bytes, not 10,946,618 delete it and run setup again (the download restarts)
Author
Owner

@gruszks commented on GitHub (Oct 15, 2026):

@Niko1221 I have the same problem (engine 0.1.44.1)

=== Step 5: downloading Qwen3.8-Flash-Next (Unsloth) UD-Q5_K_XL ===
  [ok] Qwen3.8-Flash-Next-UD-Q5_K_XL-00001-of-00006.gguf already downloaded
  [ok] Qwen3.8-Flash-Next-UD-Q5_K_XL-00002-of-00006.gguf already downloaded
  [ok] Qwen3.8-Flash-Next-UD-Q5_K_XL-00003-of-00006.gguf already downloaded
  [ok] Qwen3.8-Flash-Next-UD-Q5_K_XL-00004-of-00006.gguf already downloaded
  [ok] Qwen3.8-Flash-Next-UD-Q5_K_XL-00005-of-00006.gguf already downloaded
  [ok] Qwen3.8-Flash-Next-UD-Q5_K_XL-00006-of-00006.gguf already downloaded

  [X]  Qwen3.8-Flash-Next-UD-Q5_K_XL-00001-of-00006.gguf is short: 10,946,618 of 10,946,624 bytes (6 missing)
       delete it and run setup again (or copy the whole file into --gguf-dir)
<!-- gh-comment-id:6200484227 --> @gruszks commented on GitHub (Oct 15, 2026): @Niko1221 I have the same problem (engine 0.1.44.1) ``` === Step 5: downloading Qwen3.8-Flash-Next (Unsloth) UD-Q5_K_XL === [ok] Qwen3.8-Flash-Next-UD-Q5_K_XL-00001-of-00006.gguf already downloaded [ok] Qwen3.8-Flash-Next-UD-Q5_K_XL-00002-of-00006.gguf already downloaded [ok] Qwen3.8-Flash-Next-UD-Q5_K_XL-00003-of-00006.gguf already downloaded [ok] Qwen3.8-Flash-Next-UD-Q5_K_XL-00004-of-00006.gguf already downloaded [ok] Qwen3.8-Flash-Next-UD-Q5_K_XL-00005-of-00006.gguf already downloaded [ok] Qwen3.8-Flash-Next-UD-Q5_K_XL-00006-of-00006.gguf already downloaded [X] Qwen3.8-Flash-Next-UD-Q5_K_XL-00001-of-00006.gguf is short: 10,946,618 of 10,946,624 bytes (6 missing) delete it and run setup again (or copy the whole file into --gguf-dir) ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#645
No description provided.