Skip to content

docs: focus READMEs on using Relax - #407

Open
SigureMo wants to merge 3 commits into
redai-studio:mainfrom
cattidea:codex/simplify-readme
Open

SigureMo wants to merge 3 commits into
redai-studio:mainfrom
cattidea:codex/simplify-readme

Conversation

@SigureMo

@SigureMo SigureMo commented Oct 3, 2026 •

Copy link
Copy Markdown
Member

What

Make both READMEs easier to use: explain what Relax supports, how to choose a training mode, and how to run a first experiment.

Why

Highlights and Key Features repeat the same capabilities. Internal code inventories and development skills compete with information that helps users evaluate and run Relax.

How

  • Keep one capability section covering multimodal and Agentic RL, dense/MoE and LoRA training, rewards, elastic inference, monitoring, and recovery.
  • Describe training modes through GPU allocation and training behavior. Remove the six-layer code inventory and the AI coding skills section.
  • Keep algorithm explanations, model sizes and modalities, and the distinct OCR and INT4 QAT examples. Remove repeated table columns.
  • Move installation and quick start forward. Keep the text example visible and the image/audio examples available in expandable sections; move historical news to an expandable section near the end.
  • Complete the examples with AIME evaluation data, Open-R1 and AVQA conversion, Qwen3-Omni chat template setup, and offline ClearML logging. Mount user files under /workspace so the image's dependencies remain available.

The linked English and Chinese quick-start guides also receive two path corrections: the Open-R1 conversion filename and the AVQA dataset directory now match the training scripts. Changes are limited to the two READMEs and the two quick-start guides.

Testing

  • uvx --python 3.12 pre-commit run --all-files passes.
  • Checked bilingual heading structure, matching commands and links, local targets, Bash and embedded Python syntax, and unchanged BibTeX.
  • Checked GitHub Markdown rendering, expandable examples, and desktop and narrow-screen layout.
  • Documentation build passed during this PR; existing source-link warnings in docs/DEPLOYMENT_SUMMARY.md and docs/GET_STARTED.md remain.
  • GPU training and multi-node integration tests were not run: this documentation-only change was validated on macOS without the required GPU hardware. Commands and dataset paths were checked against the source.

Type of Change

  • Documentation update
This PR is co-authored with @codex (gpt-6 astra ultra)

# 📝 Documentation

- Merge repeated feature sections and move the first training example forward.
- Shorten model, algorithm, architecture, news, and contribution sections in both languages.
- Complete the text example with AIME preparation and offline ClearML logging.
- Keep workspace mounts separate from the image's preinstalled dependencies.

Co-authored-by: Codex <[email protected]>
@SigureMo
SigureMo requested a review from Aurelius84 as a code owner October 3, 2026 20:15
@rai-studio-bot

Copy link
Copy Markdown
Contributor

Thanks for contributing to Relax, @SigureMo! 感谢你为 Relax 做出贡献!

Contribution guide / 贡献指南

Describe the problem, your changes, and how you validated them. Keep each PR focused and run pre-commit run --all-files before submitting.

请说明问题、改动和验证方式,保持 PR 聚焦,并在提交前运行 pre-commit run --all-files。

English contribution guide · 中文贡献指南

CI commands / CI 指令
Command / 指令 Usage / 用途
/rerun Retry failed CI / 重跑失败的 CI
/rerun <target> Rerun a workflow or check / 重跑指定 workflow 或检查
/cancel <workflow> Cancel an entire workflow / 取消整个 workflow
/help Show commands and targets / 查看指令和 target
/review Request a code review / 请求代码 review

Put one command on the first line of a new PR comment. Rerun/cancel require PR authorship or repository write access.

在新 PR 评论的首行写一条指令。PR 作者或有仓库写权限的贡献者可以重跑、取消 CI。

CI usage and targets · CI 用法与 target

@rai-studio-bot

rai-studio-bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Nyanpasu 审查看板

审查状态: ✅ 已通过

审查版本: 0ce3d9d

目标分支: main

Round 3 at head 0ce3d9d complete: the increment 3c98661..0ce3d9d aligns the linked quick-start tutorial's Task 2/3 dataset paths with the training scripts, resolving finding F1 (verified line-by-line; confirmation posted in the original thread). READMEs are unchanged from the fully reviewed 3c98661 round. All 12 CI checks pass. No open findings.

审查阶段进度范围与结果
常规审查 ✅ 已完成 Full review of the increment 3c98661..0ce3d9d plus carry-over of the round-2 README review (README.md/README_zh.md byte-identical to 3c98661). The quick-start fix was verified against run-qwen3-vl-4B-8xgpu.sh:36 (Task 2 filename now train-00000-of-00001_converted_noextract.parquet, bilingual parity restored) and run-qwen3-30B-A3B-omni-16xgpu.sh:38/65 (AVQA now /root/AVQA, matching ${DATA_DIR}/AVQA under EXP_DIR=/root). 14/14 bash blocks in each quick-start file pass syntax checks; remaining AVQA-R1-6K references are the dataset identifier and link text only. No new defects; F1 resolved.
深度审查 ✅ 已完成 Deep review performed directly by the parent (docs-only diff; no children dispatched): independent design skipped (mechanical documentation edits, no abstractions or added machinery), test-audit child skipped (no test files in the diff). Production and test necessity audits recorded under Simplification.

审查发现

待处理
编号 严重性 问题状态规则来源
暂无待处理的记录。
已解决或已取代
编号 严重性 问题状态规则来源
F1 Low severity 同步 quick-start 教程中 Task 2/3 的数据路径与训练脚本(既有问题,非阻塞) ✅ 已解决 —
提交范围 · 接收 4 · 建议移出 0 · 待确认 0

接收 4 个文件 · 建议移出 0 个文件 · 待确认 0 个文件。移出与待确认部分暂停深审,不代表审查通过。

文件结论仓库维护必要性依据替代去向或方案
README.md
README_zh.md
接收 Unchanged responsibility from earlier rounds: the bilingual READMEs are the repository's maintained front-page documentation; the PR refocuses them on using Relax, and every repo visitor's first workflow lands on them. Bilingual parity remains a repo documentation convention. PR #407 description (https://github.com//pull/407): 'Only README.md and README_zh.md change' for the README portion; Type of Change: Documentation update. Keeping the refocused text as an external artifact or docs/ page would not fulfill the repository's own front-page documentation responsibility; no smaller existing mechanism replaces the top-level READMEs.
docs/en/guide/quick-start.md
docs/zh/guide/quick-start.md
接收 The repository-maintained full tutorial that the READMEs link as 'Full walkthrough'. This head's increment aligns the tutorial's Task 2/3 dataset paths with the training scripts (commit 0ce3d9d 'docs(quick-start): align dataset paths'), fixing the review finding F1 raised in round 2. The corrected commands must ship in the repo's own docs, which users follow directly. Commit 0ce3d9d (docs(quick-start): align dataset paths) responding to review finding F1 (https://github.com//pull/407#discussion_r4174816279); scripts/training/multimodal/run-qwen3-vl-4B-8xgpu.sh:36 and run-qwen3-30B-A3B-omni-16xgpu.sh:38,65 define the expected paths. Leaving the tutorial as-is and relying on the README examples alone was rejected: the two entry points would disagree, and users following the linked tutorial would fail; no external artifact can carry the repo's own documentation fix.
精简审查与验证依据
审查范围进度结论
生产代码 ✅ 已完成 Audited the full PR surface at this head — the refocused README pair and the quick-start path-alignment increment — for deletable, mergeable or replaceable material. The retained structure matches the PR's requirements and the review-driven fix; no further justified reduction was found.
测试 ➖ 无需执行 No applicable test scope: the diff touches four Markdown files only; the repository has no automated tests covering README or docs-guide content. Validation gates are pre-commit (markdown formatting) and the docs build, both green in CI at 0ce3d9d; there is nothing to consolidate, replace or delete.

生产代码的必要性与替代方案

范围必须保留的契约更简单的方案结论依据与限制
README.md / README_zh.md refocused content (unchanged from the reviewed 3c98661): seven-item highlights, installation, Quick Start with one visible text task plus collapsible Open-R1/AVQA tasks, training-modes table, algorithm/model tables, task-oriented docs links, folded news Front-page documentation for repo visitors; examples must be runnable as written; bilingual parity is a repo documentation convention. Callers: every repo visitor landing on the GitHub front page. The round-1 187-line link-first structure or link-only stubs (rejected: the PR's requirement at this head is complete, task-focused examples). 保留 Byte-identical to the fully reviewed 3c98661 state: 63/63 relative links per file, 19/19 bilingual heading parity, all bash blocks pass bash -n, all Quick Start commands match the three training scripts; CI 12/12 green at 0ce3d9d. Limitation: GPU walkthrough not executed by the reviewer.
docs/en/guide/quick-start.md and docs/zh/guide/quick-start.md Task 2/3 dataset path alignment (+8/−8 and +7/−7) The tutorial that the READMEs link as the full walkthrough must produce the exact paths the training scripts read: run-qwen3-vl-4B-8xgpu.sh:36 PROMPT_SET and run-qwen3-30B-A3B-omni-16xgpu.sh:38/65 prompt/eval data. Leave the tutorial at the pre-fix paths and rely on the README examples only (rejected: the two entry points would disagree and tutorial followers would fail), or additionally rewrite customize-training.md's standalone conversion example paths (rejected: that section is an illustrative bring-your-own-data example with user-chosen output names, not a script-matching contract). 保留 Verified line-by-line: en:77 now emits train-00000-of-00001_converted_noextract.parquet (matches script and zh:77); en/zh:119-127 download and convert under /root/AVQA matching ${DATA_DIR}/AVQA with EXP_DIR=/root; dataset repo identifiers unchanged; 14/14 bash blocks pass syntax checks in each file; F1 confirmation posted at https://github.com//pull/407#discussion_r4174816279.
Powered by Nyanpasu with glm-5.3[1m] xhigh, please check the suggestions carefully.

@rai-studio-bot rai-studio-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.

审查结论:通过(未发现问题)

完整审查了本 PR 的全部 diff(仅 README.md +90/−243 与 README_zh.md +91/−244),验证项:

  • 链接完整性:两份文件各 61 个相对链接全部指向仓库中存在的路径(docs/en|zh 指南、examples/、scripts/、skills/、LICENSE、assets)。
  • 双语一致性:中英文标题结构 15/15 对齐,层级与顺序一致,表格列数一致。
  • 快速开始命令:与 scripts/training/text/run-qwen3-4B-8xgpu.sh 的路径约定一致(EXP_DIR → MODEL_DIR/DATA_DIR、Qwen3-4B/、dapo-math-17k/dapo-math-17k.jsonl、aime-2024/aime-2024.jsonl 及 scripts/tools/process_aime.py --input 预处理);CLEARML_OFFLINE_MODE=1 与 /workspace 挂载方式与 CI 集成测试(.github/workflows/integration-test.yml)的实际用法一致。
  • 文档站链接:/Relax/en/、/Relax/zh/ 与 VitePress base + locales 配置相符;算法清单与 relax/algorithms/spec.py 一致且沿用旧版事实。
  • 删减内容去向:多模态/全模态示例、checkpoint 转换、安装与架构细节均由所链接的指南覆盖。
  • CI 在 e1c3179 上 12/12 通过(含 pre-commit 与 GPU 集成测试)。

审查看板(含范围裁定与必要性审计记录):#407 (comment)

Powered by Nyanpasu with glm-5.3[1m] xhigh, please check the suggestions carefully.

# 📝 Documentation

- Keep core capabilities, training-mode tradeoffs, model details, and all three getting-started paths.
- Remove development skills, internal code inventories, and repeated feature descriptions.
- Complete multimodal data preparation and keep detailed recipes in expandable sections.
- Align the English and Chinese content around evaluating and using Relax.

Co-authored-by: Codex <[email protected]>
@SigureMo SigureMo changed the title docs: simplify bilingual READMEs docs: focus READMEs on using Relax Oct 3, 2026

@rai-studio-bot rai-studio-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.

审查结论:完成 · 本 PR 改动未发现问题(一条 P3 非阻塞后续建议)

已完整审查 3c98661(增量 e1c3179..3c98661,两份 README 各 187 → 285 行),验证项:

  • 链接完整性:两份文件各 63 个相对链接全部指向仓库中存在的路径;<details> 折叠块配对完整。
  • 双语一致性:中英文 19/19 标题对齐,层级与顺序一致,表格列数一致。
  • 命令语法:全部 bash 代码块通过 bash -n 检查;AVQA 示例中内嵌的 Qwen3-Omni chat template 合并脚本可正常解析。
  • 快速开始命令与脚本核对:三个任务的数据准备与启动命令和 scripts/training/text/run-qwen3-4B-8xgpu.sh、scripts/training/multimodal/run-qwen3-vl-4B-8xgpu.sh、scripts/training/multimodal/run-qwen3-30B-A3B-omni-16xgpu.sh 期望的 PROMPT_SET / eval 路径逐行一致(含 process_openr1.py、process_avqa.py 转换与 chat template 加载)。相较 main 分支版本,本 PR 还修复了原 Task 2/3 缺失数据转换步骤、AVQA 下载目录与脚本不匹配、chat template 未加载三处问题。
  • 多节点说明:MASTER_ADDR/POD_NAME/HOST_IP/WORLD_SIZE 与 customize-training 文档一致。
  • CI 在 3c98661 上 12/12 通过。

仅一条 P3 非阻塞建议(见行内评论):README 链接的 quick-start 教程存在两处与训练脚本不一致的既有路径问题(英文版 Task 2 输出文件名、中英文版 Task 3 AVQA 下载目录),非本 PR 引入,建议后续对齐,避免 README 与教程两个入口给出不同结果。

审查看板(含范围裁定与必要性审计记录):#407 (comment)

Powered by Nyanpasu with glm-5.3[1m] xhigh, please check the suggestions carefully.

Comment thread README.md

Checkpoints are saved in Megatron DCP format; convert them to HuggingFace weights with `scripts/tools/convert_torch_dist_to_hf_bridge.py`.

> 📖 Full walkthrough: [Quick Start Guide](docs/en/guide/quick-start.md) · [Customize Training](docs/en/guide/customize-training.md) · [Configuration Guide](docs/en/guide/configuration.md)

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.

Low severity P3 · 同步快速上手指南中两个任务的数据路径与训练脚本

本 PR 的 README 示例命令已与训练脚本逐行核对一致(run-qwen3-4B-8xgpu.sh、run-qwen3-vl-4B-8xgpu.sh、run-qwen3-30B-A3B-omni-16xgpu.sh 的 PROMPT_SET 与 eval 数据路径,含 process_openr1.py / process_avqa.py 转换与 Qwen3-Omni chat template 合并步骤),这点做得比 main 分支版本更完整。但顺着这里链接的完整教程操作会遇到两处既有路径不一致(非本 PR 引入):

  • docs/en/guide/quick-start.md:77:Task 2 转换输出命名为 train-00000-of-00001-converted.parquet,而 scripts/training/multimodal/run-qwen3-vl-4B-8xgpu.sh:36 期望 train-00000-of-00001_converted_noextract.parquet;中文版 docs/zh/guide/quick-start.md:77 的文件名是正确的,两种语言不一致。
  • docs/en/guide/quick-start.md:119 起(中文版同样):Task 3 将数据集下载到 /root/AVQA-R1-6K,而 run-qwen3-30B-A3B-omni-16xgpu.sh:38 与 :65 期望 ${DATA_DIR}/AVQA/AVQA_R1/...(README_zh.md 中的同一链接指向的中文教程受相同影响)。

不阻塞本 PR(属于教程侧的既有问题);建议在本 PR 内顺手对齐,或开一个后续 PR 统一修正 docs/(中英两份 quick-start 的 Task 2/3 路径与文件名),避免 README 与教程两个入口给出不同结果。

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.

已确认修复:commit 0ce3d9da(docs(quick-start): align dataset paths)对两处不一致均已处理,并已逐行核对:

  • 英文版 Task 2:docs/en/guide/quick-start.md:77 输出文件名已改为 train-00000-of-00001_converted_noextract.parquet,与 scripts/training/multimodal/run-qwen3-vl-4B-8xgpu.sh:36 的 PROMPT_SET 一致,且与中文版(docs/zh/guide/quick-start.md:77)重新对齐。
  • 中英文版 Task 3:AVQA 下载与转换目录统一为 /root/AVQA,与 run-qwen3-30B-A3B-omni-16xgpu.sh:38(${DATA_DIR}/AVQA/AVQA_R1/train/omni_rl_format_train_convert.jsonl)和 :65(valid/small_valid.jsonl)在 EXP_DIR=/root 下的期望路径一致;数据集 repo 标识保持不变。

另核对了两份 quick-start 的全部 bash 块(14/14 通过语法检查)与剩余 AVQA-R1-6K 引用(仅剩数据集标识与链接文本,正确保留)。README 与教程两个入口现在给出一致的路径。

# 📝 Documentation

- Match the English Open-R1 conversion filename to the training script.
- Use /root/AVQA for AVQA downloads and conversion in both languages.
- Keep Hugging Face dataset repository identifiers unchanged.

Co-authored-by: Codex <[email protected]>

@rai-studio-bot rai-studio-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.

审查结论:通过(F1 已确认修复)

已审查 0ce3d9d(增量 3c98661..0ce3d9d,仅 docs/en/guide/quick-start.md +8/−8 与 docs/zh/guide/quick-start.md +7/−7;两份 README 与已完整审查的 3c98661 逐字节一致)。验证项:

  • F1 修复确认:英文版 Task 2 输出文件名改为 train-00000-of-00001_converted_noextract.parquet(与 run-qwen3-vl-4B-8xgpu.sh:36 的 PROMPT_SET 一致,并与中文版重新对齐);中英文版 Task 3 的 AVQA 下载与转换目录统一为 /root/AVQA(与 run-qwen3-30B-A3B-omni-16xgpu.sh:38/65 在 EXP_DIR=/root 下的期望路径一致)。确认回复已发布在原讨论串。
  • 无新增回归:两份 quick-start 的 14/14 bash 块通过语法检查;剩余 AVQA-R1-6K 引用仅为数据集标识与链接文本(应保留);customize-training 中的转换示例是独立的自定义数据示例,不受影响。
  • CI 在 0ce3d9d 上 12/12 通过。

审查看板(含范围裁定、F1 状态与必要性审计记录):#407 (comment)

注:F1 讨论串的 Resolve 操作因账号权限受限未能执行,请维护者侧确认后自行解决该线程。

Powered by Nyanpasu with glm-5.3[1m] xhigh, please check the suggestions carefully.

@SigureMo SigureMo mentioned this pull request Oct 4, 2026
3 of 11 tasks

This branch has not been deployed

No deployments
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.

2 participants