Repository navigation
test(docs): resolve stale contract line references (#5325) - #5950
Merged
Merged
Conversation
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
mainis red on threetests/test_docs_contract_refs.pynodes because thecited definitions moved:
gptqmodel/models/fusion.py::_share_operands444 -> 525gptqmodel/quantization/gptq.py::compute_hessian_xtx1277 -> 1888(per-call contexts now at 1944 and 1970)
gptqmodel/nn_modules/qlinear/torch.py::_gptq_gemm_uniform_group_for_current_g_idx1031 -> 1114
Update the documents and the
CONTRACT_REFSregistry together. Thecompute_hessian_xtxentry now uses the symbol form, matchinghessian_inversenext to it:gptq.pykeeps growing with every fix PR, andthe comment on the neighbouring entry already says line citations drift
within a merge.
Refs #5325
What Changed
docs/fusion-planner.md:_share_operandscitation 444 -> 525.docs/rocm-default-environment.md: citegptqmodel/quantization/gptq.py::compute_hessian_xtxinstead of threehardcoded line offsets.
docs/generate-cpu-offload-autograd.md: bothtorch.py:1031citations-> 1114.
tests/test_docs_contract_refs.py: the three matchingCONTRACT_REFSentries.
Out of scope: no production code. The other items named in #5325 were
re-checked on
23468baf1and already pass on this host (see Tests); theROCm-only gates were not re-run because this host has no ROCm device.
Tests
test_packing_numeric_boundaries.pynow collects 115 nodes, the FP8fail-closed fixture declares
weight_scale_semantics: "inverse", and thePARO Triton tests carry
torch.cuda.is_available()gates, so B1, B2 and B5from #5325 are already resolved on
main.Red/green: on
23468baf1the threetest_contract_reference_resolvesnodesfail with
abs(nearest - cited) <= LINE_WINDOW; with this change the file isgreen.
Measured Impact
Docs/test-only change; no VRAM, performance, or accuracy behavior changes.
test_docs_contract_refs.pyfailing nodestest_docs_contract_refs.pypassing nodesLogic Flow
Not applicable: no control flow, tensor lifecycle, or resolution order
changes. The change only corrects citations and the registry that checks
them.
Kernel Accuracy
Not applicable: no kernel, dispatch, or numerical path touched.