Repository navigation
deepseek_v41: Pack.open reads a shard's header length with core's headerSize - #1903
Merged
Merged
Conversation
ashhart
force-pushed
the
dsv41-pack-headersize
branch
from
November 2, 2026 10:32
e940035 to
6498096
Compare
Owner
|
Thank you @jschmied. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes. |
Owner
|
Thanks @jschmied! This is in TensorFold 1.2.2, out now: https://github.com/ashhart/TensorFold/releases/tag/v1.2.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #1872, the second
headerSizemove. DeepSeek v4.1'sPack.openreads a shard's header length with core'ssafetensors.headerSize, not with its own 1 GiB cap.headerSizefirst: core's 100 MB limit and the file length, before any allocation.deepseek_v41/pack.zig): "a shard's header length is read as core reads it: past the file, past 100 MB or the u64 maximum is refused". It runs one valid shard, which still opens with its tensor's 12 bytes, and four bad lengths: one byte past the file, 100 MB + 1 (in a sparse file long enough to hold it), 2^64 − 1 and 2^64 − 8.Checks (GB10, on main
58375fe00): lean 0 new,zig build testand the CI set pass,git diff --checkclean.