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.
Qubitium
reviewed
Nov 9, 2026
Qubitium
left a comment
Collaborator
There was a problem hiding this comment.
Review (layer 17)
Reviewed the incremental layer-17 commit (f3b9d195f, 4 files, +808). The exact-rational policy parsing, largest-remainder quotas, causal per-layer distribution, and immutable tier-plan publication are sound. No functional bugs found; I pushed a lint-only fix commit (86e130615).
Fixed
- Ruff gate: import ordering (
I001) and two unnecessary dict comprehensions (C416,C420).
Verification
tests/test_exl3_inline_mixed.py: 6 passed. ruff check clean.
Notes (not changed)
InlineMixedTierPlanStore.commitvalidates the digest/policy/namespace but not the full plan structure;loadperforms the complete validation. A malformed plan can be published and will be rejected on resume.path()checkslayer_index < 0but not its type, so a non-int raisesTypeErrorrather thanValueError.namespace_quotasassumes at most three projection classes for the largest-remainder pass (it slicesranked[:remainder]); fine for the fixedPROJECTION_ORDERbut worth noting if the order grows.
Qubitium
marked this pull request as ready for review
November 9, 2026 09:04
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 validated inline mixed-tier policies, projection scoring, deterministic per-layer tier selection, and durable readable plan publication. Execution and requantization wiring follows in the processor layer.
This is layer 17/36, extracted from an already-used fork for initial maintainer feedback. It depends on #3596. Review only this feature; the cross-fork Files changed view is cumulative because the PR targets upstream
main.Incremental change: 4 files, +808/−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["inline_mixed_policy"] S1["build_layer_tier_plan"] S2["InlineMixedTierPlanStore"] M2_0["InlineMixedTierPlanStore.__init__"] M2_1["InlineMixedTierPlanStore.load"] M2_2["InlineMixedTierPlanStore.commit"] E["ValueError"] S0 -->|"raises on rejected input/state"| E S1 -->|"raises on rejected input/state"| E S2 -. "exposes" .-> M2_0 S2 -. "exposes" .-> M2_1 S2 -. "exposes" .-> M2_2 S2 -->|"raises on rejected input/state"| E style E fill:#fee,stroke:#b22gptqmodel/utils/exl3_inline_mixed.py:177:inline_mixed_policygptqmodel/utils/exl3_inline_mixed.py:298:build_layer_tier_plangptqmodel/utils/exl3_inline_mixed.py:373:InlineMixedTierPlanStoreCommitted reference: docs/exl3-inline-mixed-tiers.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_inline_mixed.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.