Repository navigation
Conversation
…h, torch_zip, wav) The reader also takes nested state dicts, named by their keys, and its zip container is its own file. Drama 3 reads its codec through core.torch_pth as before.
The retained tests cover the flat readF32 path only. torch_pth_test.zig builds torch.save archives in the test (stored zip members, a protocol-2 pickle written opcode by opcode) and checks: - openNested: tensors named by their keys joined with '/', through state dicts that carry a _metadata BUILD; plain values (ints, strings, floats, lists) and the metadata are not tensors. - readRaw: offset views of one shared storage at fp32 and bf16 widths, and the refusals of a view past its storage, a strided view, a storage member of the wrong size, a missing storage and the wrong dtype. - Flat-mode refusal of a nested root; a name reached twice and a root nested past eight levels are refused. - Damage: a storage byte changed after its CRC, a pickle with a bad CRC, a missing end record, a file too short, no or two data.pkl, a big-endian byteorder, a pickle without STOP, a member whose header lies past the end. Each check fails when its guard is removed from the reader.
…probe (#3468) - Rule.depth keeps the depth it priced until another beats it by depth_margin, like plain_margin, so one noisy round no longer drops a one-stream reply to one draft for the rest of it; a depth that keeps losing still gives way. - A depth probe's rows are kept by a lone window instead of trimmed back to the priced width, so the deeper depth's acceptance and round time are observed and a dropped stream can recover. - Host tests feed the reported 18.1/20.8 ms costs and the probe's rows; three lone-copy pins move by 1-2 drafted rows, their replies unchanged. Fixes #3468
Owner
Author
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.
CI for a landing train: #3719 #4012 stacked on main in that order. Nothing merges from this PR: each PR above lands on its own once this tip is green, and this PR is then closed.