Repository navigation
Conversation
Serialize configs without the empty state-dict cleanup path and replace completed shard files atomically. Keep live config fields authoritative and preserve source-only extensions. Retain the previous shard on write failures.
Extract the existing working fork feature for first maintainer feedback. Preserve carried code and tests; limit validation to lightweight structural checks. See the linked mechanism reference for actual API/call and failure paths.
Extract the existing working fork feature for first maintainer feedback. Preserve carried code and tests; limit validation to lightweight structural checks. See the linked mechanism reference for actual API/call and failure paths.
Extract the existing working fork feature for first maintainer feedback. Preserve carried code and tests; limit validation to lightweight structural checks. See the linked mechanism reference for actual API/call and failure paths.
- inspect_committed_manifests treated a tensor written before its manifest as corruption, so a crash between the two atomic writes blocked reserve_module_request on resume. The manifest is the commit marker; ignore tensor-only entries (prune still reclaims them). - commit now validates the request digest before writing and rejects a reused request with a different tensor set as a collision instead of raising KeyError. - Add regression tests.
Qubitium
reviewed
Nov 9, 2026
Qubitium
left a comment
Collaborator
There was a problem hiding this comment.
Review (layer 13)
Reviewed the incremental layer-13 commit (6761a5d6f, 4 files, +1146). The content-addressed store, manifest binding, and prune path are solid. I pushed a fix commit (066bdef7f).
Fixed
- Interrupted commits blocked resume.
commitpublishes the tensor before the manifest, so a crash between the two leaves a tensor-only entry.inspect_committed_manifeststreated that as"incomplete committed pair", soreserve_module_requestfailed on the next run — beforeprunecould reclaim the orphan. The manifest is the commit marker, so tensor-only entries are now ignored by inspection (prune still removes them). Regression test added. - Request digest validation.
commitandloadnow validaterequest_sha256against the request body before using it as a path, so a malformed request cannot write an unreadable checkpoint. - Tensor-set collision. Reusing a request with a different tensor set now raises
"collision"instead ofKeyError.
Verification
tests/test_exl3_projection_checkpoint.py: 14 passed (11 original + 3 new). ruff check clean.
Notes (not changed)
inspect_committed_manifestsvalidates the manifest and declared tensor identity but deliberately not the request schema;load_committedvalidates tensor content against the manifest. A checkpoint with a self-consistent digest but unexpected request fields would load viaload_committed. Acceptable for a local, opt-in store, but worth documenting.prunereads and hashes every committed payload; fine for a maintenance path, but it is O(checkpoint bytes).
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.
Summary
Expose content-bound projection requests, atomic safetensors publication, validated restore, and readable checkpoint artifacts. Keep checkpoint identity and completion boundaries unchanged.
This is layer 13/36, extracted from an already-used fork for initial maintainer feedback. It depends on #3592. Review only this feature; the cross-fork Files changed view is cumulative because the PR targets upstream
main.Incremental change: 4 files, +1146/−0 lines, including carried tests and the mechanism reference. No merge is automatic. Review value and API shape first; substantial rework can follow that feedback.
Flow and existing-code boundary
flowchart TD S0["build_projection_request"] S1["EXL3ProjectionCheckpointStore"] M1_0["EXL3ProjectionCheckpointStore.__init__"] M1_1["EXL3ProjectionCheckpointStore.committed_tensor_path"] M1_2["EXL3ProjectionCheckpointStore.load_committed"] E["RuntimeError, ValueError"] S1 -. "exposes" .-> M1_0 S1 -. "exposes" .-> M1_1 S1 -. "exposes" .-> M1_2 S1 -->|"raises on rejected input/state"| E style E fill:#fee,stroke:#b22gptqmodel/utils/exl3_projection_checkpoint.py:89:build_projection_requestgptqmodel/utils/exl3_projection_checkpoint.py:179:EXL3ProjectionCheckpointStoreCommitted reference: docs/exl3-projection-checkpoints.md, linked from README. Class entry points/calls and rejected-state paths describe code present in this branch, rather than planned integrations.
Validation
Carried test files:
tests/test_exl3_projection_checkpoint.pyThis packaging pass checked Python parsing, whitespace, dependency order and balanced Mermaid blocks. The author reports successful prior use of these features. Per the requested resource limit and feedback-first scope, existing model quantization, GPU/ROCm tests, heavyweight CPU workloads and full model benchmarks were not rerun; no new performance or model-accuracy claim is made. Tests accompanying earlier stack layers retain their previously reported results.