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.
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.
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.
- validate_remote_inputs/output_tensors used set literals for codebook and apply_out_scales membership, so a malformed list value raised TypeError instead of the documented ValueError. Use tuples and build the expected tensor-name set only after the codebook is validated. - Satisfy the ruff import-order gate; add a regression test.
Qubitium
reviewed
Nov 9, 2026
Qubitium
left a comment
Collaborator
There was a problem hiding this comment.
Review (layer 18)
Reviewed the incremental layer-18 commit (891404198, 4 files, +1830). The authenticated envelope, HMAC request/response path, durable slot assignments, bounded pipeline staging, and worker checkpoint resume are sound. I pushed a fix commit (2e6d2e251).
Fixed
- Malformed codebook raised
TypeError.validate_remote_inputsandvalidate_remote_output_tensorsused set literals forcodebook/apply_out_scalesmembership, so a list value raisedTypeErrorinstead of the documentedValueError; the output path also builtexpected_namesbefore validating the codebook. Both now use tuple membership and validate before building the set. Regression test added. - Ruff
I001(import order) in both new files.
Verification
tests/test_exl3_remote.py: 15 passed (14 original + 1 new). ruff check clean.
Notes (not changed)
_ensure_assignment_directorycreates missing directories withoutexist_ok, so two coordinators racing to create the same prefix can raiseFileExistsErrorrather than reusing the directory._persist_assignmenttreats an existing record as an error; recovery relies on_load_assignmentshaving populated the in-memory map first. A record created between client construction and the firstacquire_slotis rejected rather than adopted._read_responsetrustsContent-Lengthwhen present; a chunked response without it is accepted after the size cap.
Qubitium
marked this pull request as ready for review
November 9, 2026 09:06
Collaborator
|
Review found a publication race and slot-capacity issue across EXL3 coordinators. #3714 adds exclusive publication and cross-process slot locks. |
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
Carry authenticated tensor transport, dynamic coordinator/remote slot scheduling, projection checkpoint reuse, bounded scratch retention, per-device serialization, and remote Hessian failure diagnostics. This preserves the existing explicit NVIDIA execution contract; it does not newly qualify ROCm.
This is layer 18/36, extracted from an already-used fork for initial maintainer feedback. It depends on #3597. Review only this feature; the cross-fork Files changed view is cumulative because the PR targets upstream
main.Incremental change: 4 files, +1830/−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["encode_tensor_envelope"] S1["decode_tensor_envelope"] S2["execute_remote_projection"] S3["EXL3RemoteClient"] M3_0["EXL3RemoteClient.__init__"] E["AssertionError, RuntimeError, ValueError"] S0 -->|"raises on rejected input/state"| E S1 -->|"raises on rejected input/state"| E S2 -->|"raises on rejected input/state"| E S3 -. "exposes" .-> M3_0 S3 -->|"calls where selected"| S0 S3 -->|"calls where selected"| S1 S3 -->|"raises on rejected input/state"| E style E fill:#fee,stroke:#b22gptqmodel/utils/exl3_remote.py:243:encode_tensor_envelopegptqmodel/utils/exl3_remote.py:266:decode_tensor_envelopegptqmodel/utils/exl3_remote.py:473:execute_remote_projectiongptqmodel/utils/exl3_remote.py:627:EXL3RemoteClientCommitted reference: docs/exl3-remote-workers.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_remote.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.