Skip to content

test(docs): fix docs-contract failures left by #6473/#6492/#6500 - #6506

Merged
Qubitium merged 1 commit into
mainfrom
docs-contract-fixes
Dec 1, 2026
Merged

Qubitium merged 1 commit into
mainfrom
docs-contract-fixes

Conversation

@Qubitium

@Qubitium Qubitium commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

tests/test_docs_contract_refs.py has 8 failures on main, all left by recent merges. This PR fixes 7. The eighth (docs/jit-kernel-builds.md::0) is fixed in #6505.

Failure Cause Fix
cancelled-run-contract.md cites _copy_checkpoint_tensors_into_submodule, _publish_checkpoint_param_ in utils/structure.py (2 parametrized cases + the all-citations test) #6473 moved both to weight_loader/source.py Point the doc and the citation table at gptqmodel/weight_loader/source.py
weight-loader.md::0 (PlacementError: accel:0 requested but this host has no accelerator) #6473 example is a two-accelerator placement map Skip-listed with a reason
weight-loader.md::1 continuation: model comes from the prose, checkpoint is a placeholder path Skip-listed with a reason
measurement.md::3 (NameError: texts) continuation snippet that was never skip-listed Skip-listed with a reason
test_doc_block_skip_lists_are_current: calibration-config.md::0, looper-checkpoint-redesign.md::0 #6500 and #6492 edited the blocks Re-reviewed (reasons still hold); digests refreshed
flowchart LR
    A[doc python block] --> B{skip-listed with matching digest?}
    B -- yes --> S[skip]
    B -- no --> C{imports gptqmodel?}
    C -- yes --> R[run CPU-only, Hub offline]
    C -- no --> K[compile only]
Loading

Test plan

🤖 Generated with Claude Code

`tests/test_docs_contract_refs.py` had 8 failures on main:

- docs/cancelled-run-contract.md (+ the citation table) still cited
  `_copy_checkpoint_tensors_into_submodule` / `_publish_checkpoint_param_`
  in gptqmodel/utils/structure.py; #6473 moved both to
  gptqmodel/weight_loader/source.py.
- docs/weight-loader.md blocks 0/1 (#6473) executed on a CPU-only host:
  a two-accelerator `accel:0`/`accel:1` placement map and a continuation
  that needs `model` and a real checkpoint. Skip-listed with reasons.
- docs/measurement.md block 3 is a continuation snippet (prose-defined
  `texts`, `tokenizer`, models); skip-listed.
- Skip-list digests refreshed for docs/calibration-config.md::0 (#6500
  added `exclude_attention_sinks=None`) and
  docs/looper-checkpoint-redesign.md::0 (#6492 added subset intervals);
  both reasons still hold.

The eighth, docs/jit-kernel-builds.md::0, is fixed in #6505.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Qubitium
Qubitium marked this pull request as ready for review December 1, 2026 01:29
@Qubitium
Qubitium merged commit c649fcb into main Dec 1, 2026
6 checks passed
@Qubitium
Qubitium deleted the docs-contract-fixes branch December 1, 2026 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant