Skip to content

docs(links): fix broken documentation links - #311

Open
ooooo-create wants to merge 5 commits into
redai-studio:mainfrom
ooooo-create:docs/fix-broken-links
Open

docs(links): fix broken documentation links#311
ooooo-create wants to merge 5 commits into
redai-studio:mainfrom
ooooo-create:docs/fix-broken-links

Conversation

@ooooo-create

@ooooo-create ooooo-create commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

What

Fix broken dataset, source, script, and section links in the English and Chinese documentation and OPD READMEs.

Why

The existing links point to missing files, an outdated dataset location, or fragments affected by different automatic heading-ID rules in GitHub Markdown and VitePress.

How

  • Use the DeepEyes dataset referenced by the download commands and the upstream Megatron Bridge repository.
  • Fix autoscaler links to sibling documents in the same language.
  • Update the math OPD script reference and its student and teacher model names in the example table.
  • Add HTML anchors and update the low-precision training links to work in both GitHub Markdown and VitePress. Point the MOPD reference to Common Combinations.

Testing

  • pre-commit run --all-files passes
  • Tests pass (pytest tests/)
  • New tests added (if applicable)
  • Documentation updated (if applicable)

All pre-commit hooks passed with --show-diff-on-failure. Changed relative file targets and diff whitespace checks passed. Lychee offline fragment checks passed for both low-precision training pages and the MOPD README. GitHub Markdown rendering retains both explicit anchors on each page; VitePress 1.6.4 rendering confirms unique IDs and valid targets for all six low-precision section references.

Python and multi-node GPU integration tests were not run because only documentation changed; new tests are not applicable. The complete npm run docs:build passed with Node.js 22.22.1, Python 3.11.15, and VitePress 1.6.4, including OpenAPI generation, page rendering, and chunk filename post-processing. Both generated low-precision HTML pages were checked: all six section references target unique explicit anchors.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Refactoring (no functional changes)
  • Performance improvement
  • CI/CD or build changes

Screenshots / Logs

npm run docs:build
Generated 4 OpenAPI specs
vitepress v1.6.4
build complete in 26.21s.
Chunk filename post-processing completed successfully.

Lychee offline fragment check: 8 links, 0 errors.
Generated HTML: 6 section references verified across both languages.

# 📝 Documentation

- Correct DeepEyes dataset and Megatron Bridge links in English and Chinese docs.
- Fix same-language autoscaler links to elastic rollout and fully async training.
- Point math OPD examples to the current script and align model and configuration descriptions.

## Validation

- Run all pre-commit hooks successfully.
- Verify changed relative link targets exist.
- Skip multi-node GPU integration tests because only documentation changed.
# 📝 Documentation

- Correct English and Chinese low-precision training links to match existing heading anchors.
- Point the MOPD configuration reference to the OPD common combinations section.
- Preserve heading text without adding explicit anchor IDs.

## Validation

- Pass Lychee offline fragment checks: 8 links, 0 errors.
- Pass all pre-commit hooks and staged diff checks.
- Skip multi-node GPU integration tests because only documentation links changed.
Copilot AI lite review requested due to automatic review settings September 11, 2026 14:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

# 📝 Documentation

- Remove the added flag-mapping explanation from Common Combinations.
- Preserve the original wording and corrected script link.

## Validation

- All pre-commit hooks and staged diff checks pass.
Copilot AI review requested due to automatic review settings September 11, 2026 14:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

# 📝 Documentation

- Restore the original student_sampled and adv mode description.
- Keep the corrected script link and updated student/teacher model names.

## Validation

- All pre-commit hooks and staged diff checks pass.
Copilot AI review requested due to automatic review settings September 11, 2026 14:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@rai-studio-bot rai-studio-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

已复查最新提交并补全全部文档差异检查,未发现需要阻塞合入的问题。低精度文档的章节链接仍有 VitePress 锚点兼容问题,详情见行内审查意见。

CI 检查均已通过。本次未运行完整 VitePress 构建;仅涉及文档修改,未运行多节点 GPU 集成测试。

Powered by Nyanpasu with gpt-6-astra medium, please check the suggestions carefully.

2. The Megatron patch at `docker/patch/megatron/20260506-85bced0ae.patch` applied (baked into the project Dockerfile). It provides both the FP8 overrides and the INT4 `_FakeInt4QuantizationSTE` that overrides `TEGroupedLinear._get_weight_tensors()`.

The FP8 recipe additionally needs a TransformerEngine build with FP8 blockwise scaling support. The INT4 recipe additionally needs the `fake_int4_quant_cuda` CUDA extension built — see [Build the int4_qat kernel](#build-the-int4-qat-kernel) below.
The FP8 recipe additionally needs a TransformerEngine build with FP8 blockwise scaling support. The INT4 recipe additionally needs the `fake_int4_quant_cuda` CUDA extension built — see [Build the int4_qat kernel](#build-the-int4_qat-kernel) below.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 优先级:P2
请按 VitePress 的标题 ID 修正这组锚点。项目使用 VitePress,且 .vitepress/config.mts 未覆盖默认 slugifyVitePress 1.6.4 使用的 @mdit-vue/shared 会把下划线和句点转成连字符。实际调用该函数得到 build-the-int4-qat-kernel编译-int4-qat-kernelconvert-hf-to-int4-py。当前改法虽符合 GitHub Markdown 的锚点规则,却会使文档站的编译链接失效,且量化工具链接仍无法跳转;离线 GitHub fragment 检查不能覆盖这种差异。

本行可恢复为:

Suggested change
The FP8 recipe additionally needs a TransformerEngine build with FP8 blockwise scaling support. The INT4 recipe additionally needs the `fake_int4_quant_cuda` CUDA extension built — see [Build the int4_qat kernel](#build-the-int4_qat-kernel) below.
The FP8 recipe additionally needs a TransformerEngine build with FP8 blockwise scaling support. The INT4 recipe additionally needs the `fake_int4_quant_cuda` CUDA extension built — see [Build the int4_qat kernel](#build-the-int4-qat-kernel) below.

请同步修正中文页面两处编译链接,以及中英文页末的量化工具链接:

#编译-int4_qat-kernel → #编译-int4-qat-kernel
#convert_hf_to_int4py → #convert-hf-to-int4-py

若需兼容两种渲染器,可另加对应的显式锚点;验证时应检查 VitePress 渲染后的标题 ID。

# 📝 Documentation

- Add explicit HTML anchors for HF-to-INT4 conversion and INT4 QAT kernel builds in both languages.
- Point all six section references to shared IDs while preserving heading text.
- Avoid differences between GitHub Markdown and VitePress heading slug generation.

## Validation

- GitHub Markdown rendering retains both anchors on each page.
- VitePress 1.6.4 rendering resolves all six references with unique IDs.
- Lychee offline fragment checks pass: 8 links, 0 errors.
- All pre-commit hooks and staged diff checks pass.
Copilot AI review requested due to automatic review settings September 11, 2026 14:56

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@rai-studio-bot rai-studio-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

已复查 0b8c0a6,上轮锚点兼容问题已解决:中英文页面改用显式 HTML 锚点,六处章节引用均匹配唯一目标。未发现新的问题,无需新增行内意见。

本次核验了源码中的锚点及引用,未重跑完整文档构建;PR 描述已补充完整构建和渲染验证记录。Pre-commit、Python 3.10/3.12 检查已通过,Python 3.11 检查仍在运行。仅涉及文档修改,未运行多节点 GPU 集成测试。

Powered by Nyanpasu with gpt-6-astra medium, please check the suggestions carefully.

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.

3 participants