Skip to content

[NVBug 6972128] Fix broken links - #2937

Merged
kevalmorabia97 merged 3 commits into
NVIDIA:mainfrom
noeyy-mino:noeyy/fix_6972128
Oct 22, 2026
Merged

kevalmorabia97 merged 3 commits into
NVIDIA:mainfrom
noeyy-mino:noeyy/fix_6972128

Conversation

@noeyy-mino

@noeyy-mino noeyy-mino commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Type of change: Bug fix: https://nvbugs/6972128, documentation.

Fix 13 broken links (stale heading anchors, wrong relative paths, a
renamed config directory, and references to docs files that never
existed) and 3 passages that contradicted the list or command next to
them. Text-only change.

Usage

N/A

Testing

N/A

Before your PR is "Ready for review"

  • Is this change backward compatible?: N/A
  • If you copied code from any other sources or added a new PIP dependency, did you follow guidance in CONTRIBUTING.md: N/A
  • Did you write any new necessary tests?: N/A
  • Did you update Changelog?: N/A
  • Did you get Claude approval on this PR?: ✅

Additional Information

N/A

Summary by CodeRabbit

  • Documentation
    • Updated links in the ONNX quantization, QAT/QAD, sparsity, autotune, pruning, and compression guides to point to current documentation and configuration references.
    • Clarified that the QAD sample was tested on a Linux RTX 5090 and currently encounters an out-of-memory issue; updated the dataset-preprocessing script name.
    • Updated the preset guide to describe three preset types and reposition guidance on reusable snippets and schema validation.

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: NVIDIA/Model-Optimizer/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Enterprise
  • Run ID: 7ffe7860-7c2b-419f-b22e-885b0a4b1aee
📥 Commits

Reviewing files that changed from the base of the PR and between 371c986 and 72df5d7.

📒 Files selected for processing: 1
  • examples/onnx_ptq/autotune/README.md
🚧 Files skipped from review as they are similar to previous changes: 1
  • examples/onnx_ptq/autotune/README.md

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 10 remain after this review.

📝 Walkthrough

This change updates documentation links, revises QAD example instructions, and changes the PTQ preset README to describe three preset kinds.

Changes: Documentation and examples

Layer / File(s) Summary
Update documentation link targets
README.md, examples/llm_qat/README.md, examples/llm_sparsity/weight_sparsity/README.md, examples/onnx_ptq/autotune/README.md, examples/pruning/cifar_resnet.ipynb, modelopt/torch/puzzletron/anymodel/README.md
Links now point to updated documentation sections, published API references, and configuration paths.
Correct example instructions
examples/windows/diffusers/qad_example/README.md
The README reports that the sample runs into OOM on Linux RTX 5090 and names process_dataset.py in the preprocessing instructions.
Revise PTQ preset descriptions
modelopt_recipes/configs/ptq/presets/README.md
The README describes three preset kinds and places reusable-snippet and schema-validation guidance after their descriptions.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Other

Merge Risk: ⚪ Minimal · up to 72df5

No identified issue blocks merging these documentation updates; normal link checks remain appropriate.

Pre-merge checks: Passed 6
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: fixing broken documentation links.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Security Anti-Patterns Passed PASS. The reviewed range changes only README files and notebook text. It adds no Python changes, dependency files, or security-sensitive code. The diff introduces none of the specified patterns: unsaf…
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

Full details: Security Anti-Patterns

Explanation

PASS. The reviewed range changes only README files and notebook text. It adds no Python changes, dependency files, or security-sensitive code. The diff introduces none of the specified patterns: unsafe deserialization, hardcoded remote-code trust, eval/exec, or # nosec bypasses.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@noeyy-mino

Copy link
Copy Markdown
Contributor Author

/claude review

@codecov

codecov Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.66%. Comparing base (f983619) to head (72df5d7).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2937   +/-   ##
=======================================
  Coverage   79.66%   79.66%           
=======================================
  Files         659      659           
  Lines       74400    74400           
=======================================
  Hits        59272    59272           
  Misses      15128    15128           
Flag Coverage Δ
unit 60.84% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread examples/onnx_ptq/autotune/README.md Resolved

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude review passed — no blocking issues found. LGTM

Scope: Full review — the trigger was a bare /claude review, so no scoping applied. Docs-only PR: 8 files, +21/-21, all 8 reviewed. No modelopt/ source, mode registration, config schema, or public API changes, so Mode/State, Export, and Algorithm-Correctness categories are not applicable.

Verification performed. I resolved every one of the 13 claimed link fixes against the actual checkout rather than taking the description at face value.

Heading anchors — all confirmed to exist:

  • README.md: examples/torch_onnx/README.md#supported-models maps to Supported Models at line 298, and it is the only heading normalizing to that slug, so the anchor is unambiguous. The other 7 #support-matrix rows in that table also resolve (hf_ptq:96, diffusers:72, windows:140, llm_qat:114, pruning:172, llm_distill:118, speculative_decoding:443).
  • examples/llm_qat/README.md: #advanced-topics maps to Advanced Topics at line 185. Worth noting the old #advanced-configuration target was an HTML <details id=...> at line 275 — that is a valid GitHub anchor, but it points at the nested Configuration panel rather than the Advanced Topics section the sentence describes, so the new target matches the prose intent better.
  • examples/llm_sparsity/weight_sparsity/README.md: this one link had two faults, both fixed — path depth (../ to ../../, since the file sits two levels under examples/ and llm_eval/ is a sibling of llm_sparsity/) and anchor casing (#Evaluation-scripts-for-LLM-tasks to #evaluation-scripts-for-llm-tasks, matching the line-1 heading).

Renamed paths — confirmed on disk:

  • modelopt/torch/puzzletron/anymodel/README.md: the config tree is now owner-prefixed; tests/gpu/torch/puzzletron/resources/configs/meta-llama/Llama-3.1-8B-Instruct/ and its pruning/ subdir both exist, and the old configs/llama_3_1_8b_instruct/ is gone. A repo-wide grep for llama_3_1_8b_instruct returns zero hits, so the rename is fully swept.

Files that never existed — confirmed absent, replacements confirmed valid:

  • docs/source/reference/ holds only 0_changelog.rst and 1_modelopt_api.rst — no 2_qdq_placement.rst, and no guides/9_qdq_placement.rst (the guide is 9_autotune.rst). A repo-wide grep for qdq_placement now returns zero hits.
  • The three replacement published URLs are structurally sound: 1_modelopt_api.rst runs autosummary with :toctree: generated and :recursive: over modelopt.onnx/modelopt.torch, autosummary_generate = True, and the _templates/autosummary/module.rst exclusion filter does not drop autotune, prune.pruning, or opt.conversion. Every anchored symbol exists and is in __all__: prune (prune/pruning.py:31), save (opt/conversion.py:495), restore (opt/conversion.py:650). The URL shape matches the convention already used in examples/hf_ptq/README.md, examples/gpt-oss/README.md, CHANGELOG.rst, and a runtime message in transformers_trainer.py:301.
  • The notebook conversions are the right call precisely because cifar_resnet.ipynb is not part of the Sphinx build — docs/source/guides/3_pruning.rst:8 links it as an external GitHub URL — so the old ../reference/generated/...rst relative paths could never have resolved from either GitHub or the docs site. Absolute URLs are the only correct fix. Zero ../reference/generated relative links remain under examples/.
  • examples/onnx_ptq/autotune/README.md: ../README#... to ../README.md#... fixes a genuinely dead extensionless link, and the target heading exists at examples/onnx_ptq/README.md:271.

Contradictory passages — all three are real improvements:

  • presets/README.md: "two kinds" to "three kinds" matches the three bullets (model/, kv/, diffusers/), and the on-disk listing confirms exactly those three subdirectories. Relocating the schema-preamble paragraph to after the bullet list also fixes a real readability bug — it previously interrupted "split into N kinds:" and its own list.
  • qad_example/README.md: "verified to run ... but runs into OOM" was self-contradictory; "tested on ... and currently runs into OOM" is honest. The preprocess_dataset.py to process_dataset.py fix makes the prose agree with the python scripts/process_dataset.py command directly beneath it.

Findings — CRITICAL: 0 · IMPORTANT: 0 · SUGGESTION: 1

The single suggestion (posted inline) is non-blocking: in examples/onnx_ptq/autotune/README.md the Documentation list now mixes targeting styles — the API Reference became a published HTML URL while the sibling User Guide stayed a relative path to raw .rst source. That relative path is correct as written (../../../ does resolve to the repo root from examples/onnx_ptq/autotune/, which is what the depth fix accomplished), but since 9_autotune.rst is in the published toctree (docs/source/index.rst:131), a reader following it from GitHub lands on reStructuredText markup instead of the rendered guide. Pointing it at guides/9_autotune.html would make the pair consistent and match the raw-source-to-published-HTML treatment this PR already applies in the notebook.

Assessment — risk: very low. Text-only; no executable code, config schema, or public API touched, so there is no backward-compatibility, export, or state-restore surface. Every fix moves a link from broken-or-misleading to verified-correct, and both renames are swept clean repo-wide with no stragglers. The CHANGELOG.rst N/A is right per the contributing guidance — doc link fixes are not changelog-worthy.

Two notes for future passes, neither blocking: the repo has a lychee link checker in .pre-commit-config.yaml gated behind stages: [manual], so none of these breakages would have been caught automatically — running pre-commit run --hook-stage manual lychee would confirm the sweep and may surface siblings this PR did not touch. And anchor-only links like #supported-models stay fragile against future heading renames; the published-URL style used for the API references is the more durable pattern wherever a rendered page exists.

🤖 Generated with Claude Code

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Signed-off-by: noeyy-mino <[email protected]>
@kevalmorabia97
kevalmorabia97 merged commit de79b4c into NVIDIA:main Oct 22, 2026
45 checks passed
kevalmorabia97 added a commit that referenced this pull request Oct 28, 2026
#2928 #2885 #2908 #2929 #2950 #2972 #2877 #2951 #2816 #3005 #3012 #2971 #3015 #3006 #3026 #2988 #3028 #1860 #3030 #2612 #3033 #2653 #2599 #2655 #2618 #2868 #3032 #3027 #2869 #2984 #2975 #2345 #3020 #2997 (#3072)

## Cherry-picked PRs

- #2817
- #2671
- #2892
- #2876
- #2910
- #2911
- #2919
- #2904
- #2937
- #2928
- #2885
- #2908
- #2929
- #2950
- #2972
- #2877
- #2951
- #2816
- #3005
- #3012
- #2971
- #3015
- #3006
- #3026
- #2988
- #3028
- #1860
- #3030
- #2612
- #3033
- #2653
- #2599
- #2655
- #2618
- #2868
- #3032
- #3027
- #2869
- #2984
- #2975
- #2345
- #3020
- #2997

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **New Features**
* Diffusion exports now offer more control over attention-quantizer
metadata and preserve sparse-attention settings in a format compatible
with downstream tooling.
* Model loading better handles select bundled model implementations, and
Docker guidance now covers writable CUDA-extension cache locations.
* **Bug Fixes**
* Improved reliability for model export and checkpoint saving,
quantization across devices, ONNX processing, and calibration.
* Temporary TensorRT and autotuning artifacts now use private
directories by default.
* **Documentation**
* Updated installation guidance, compatibility notes, and links;
corrected typos across guides and examples.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Signed-off-by: Chad Voegele <[email protected]>
Signed-off-by: Rohan Joshi <[email protected]>
Signed-off-by: LinCanNerd <[email protected]>
Signed-off-by: Keval Morabia <[email protected]>
Signed-off-by: weimingc <[email protected]>
Signed-off-by: Noey Yang <[email protected]>
Signed-off-by: Kai Xu <[email protected]>
Signed-off-by: Zhehao Hu <[email protected]>
Signed-off-by: noeyy-mino <[email protected]>
Signed-off-by: joe-nv <[email protected]>
Signed-off-by: yingguo-trt <[email protected]>
Signed-off-by: Shengliang Xu <[email protected]>
Signed-off-by: Chenjie Luo <[email protected]>
Signed-off-by: anmaurya001 <[email protected]>
Signed-off-by: Connor Baker <[email protected]>
Signed-off-by: wiederse <[email protected]>
Signed-off-by: Vu Dinh <[email protected]>
Signed-off-by: Pratik Gandhi <[email protected]>
Signed-off-by: Michael Rusu <[email protected]>
Signed-off-by: Michael-Rusu <[email protected]>
Signed-off-by: namgyu-youn <[email protected]>
Signed-off-by: Sylvester Kaczmarek <[email protected]>
Signed-off-by: Javier de Jesus <[email protected]>
Signed-off-by: javierdejesusda <[email protected]>
Signed-off-by: Zhiyu Cheng <[email protected]>
Signed-off-by: Juhi Mittal <[email protected]>
Signed-off-by: Dmitry Rantovov <[email protected]>
Signed-off-by: h-guo18 <[email protected]>
Co-authored-by: Chad Voegele <[email protected]>
Co-authored-by: LinCanNerd <[email protected]>
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Co-authored-by: Keval Morabia <[email protected]>
Co-authored-by: Wei-Ming Chen <[email protected]>
Co-authored-by: noeyy-mino <[email protected]>
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: kaix-nv <[email protected]>
Co-authored-by: Zhehao Hu <[email protected]>
Co-authored-by: joe <[email protected]>
Co-authored-by: yingguo-trt <[email protected]>
Co-authored-by: Shengliang Xu <[email protected]>
Co-authored-by: Chenjie Luo <[email protected]>
Co-authored-by: anmaurya001 <[email protected]>
Co-authored-by: Connor Baker <[email protected]>
Co-authored-by: Jiao Mingyang <[email protected]>
Co-authored-by: Vu Dinh <[email protected]>
Co-authored-by: Pratik Gandhi <[email protected]>
Co-authored-by: Michael R <[email protected]>
Co-authored-by: Michael-Rusu <[email protected]>
Co-authored-by: namgyu-youn <[email protected]>
Co-authored-by: Sylvester Kaczmarek <[email protected]>
Co-authored-by: Javier De Jesus <[email protected]>
Co-authored-by: Zhiyu <[email protected]>
Co-authored-by: Juhi Mittal <[email protected]>
Co-authored-by: Dmitry Rantovov <[email protected]>
Co-authored-by: h-guo18 <[email protected]>
@rohansjoshi rohansjoshi added the cherry-pick-done Added by bot once PR is cherry-picked to the release branch label Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-pick-0.48.0 cherry-pick-done Added by bot once PR is cherry-picked to the release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants