Skip to content

docs: make REINFORCE++ guides and writing rules user-facing - #408

Merged
SigureMo merged 6 commits into
redai-studio:mainfrom
ShigureNyako:session/sess_dev_neko_rewrite_relax_reinforce_user_guide_and_remove_tr
Oct 4, 2026
Merged

SigureMo merged 6 commits into
redai-studio:mainfrom
ShigureNyako:session/sess_dev_neko_rewrite_relax_reinforce_user_guide_and_remove_tr

Conversation

@ShigureNyako

@ShigureNyako ShigureNyako commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

What

  • 重写中英文 REINFORCE++ 指南:说明算法与变体差异,提供单 GPU 示例,并在配置附近解释选择、限制和常见问题。
  • 删除中英文训练与数值验证报告、对应导航,以及只供报告使用的 15 个 CSV/SVG 附件。
  • 更新仓库自有的 skills/doc-writer/SKILL.md 及两份现有参考文件,持久记录面向用户、双语清晰写作与验证证据分离的原则。

Why

用户指南应帮助用户准备输入、配置并运行训练,不应充当内部验收报告。原页面混入测试数量、作业记录、机器环境和实验对比,实际启动说明却不集中。本次保留经过源码核验的操作信息,不将一次测试或实验结果写成能力保证。

How

  • 核对当前示例脚本、参数解析与校验、奖励处理、优势值/损失计算、指标输出和启动脚本。
  • 将示例环境变量默认值与解析器默认值分开说明;区分奖励中的 k1 惩罚和独立 k2 损失,以及组均值处理后的原始优势值与整批 token 归一化后的值。GRPO 的标准差处理明确为默认行为。
  • 使用专用 Ray 环境和现有 Ray 作业启动脚本,并明确其清理进程、作业、Serve 应用及 placement group 的风险。
  • 中英文补充 TensorBoard 目录覆盖的生效条件:在 ray start 前 export TENSORBOARD_DIR;现有 helper 不转发该变量,不能只在已启动 Ray 后的提交终端设置它。
  • 实际对照中英文《PPO 训练》、算法参考中的 GRPO / RLOO / CISPO,以及 OPD 示例的介绍方式。采用“解释算法 → 展示配置 → 解释关键选择”的叙述,不复制其他页面中的实验报告。
  • 将变体选择表和排障矩阵改成解释性段落;合并启动步骤,把普通限制放在相关配置处,只保留独占环境与破坏性清理的必要警告。两种语言的命令一致,说明各自自然成文。
  • “80% of the way to ASD-STE100” 用于帮助理解,不是短句、祈使句或固定章节的硬性格式,也不宣称严格符合标准。
  • 保留并优化可直接复制的英文、中文页面模板,包括架构、功能、快速开始、配置、API、使用示例、最佳实践、排障与下一步;按用户任务取舍章节,不把模板当固定格式。移除虚构 API 示例,改为明确的待填代码位置,并使用可直接复制的嵌套代码围栏。
  • skill 要求先读相关指南、给配置示例补充上下文、避免机械列表和重复警告。技术覆盖、命令和限制仍须一致,但不强制逐句翻译。验证清单只供内部或 PR 使用,英文路径使用实际的 docs/en/ 与 /en/。
  • 仅修改相关文档、导航、报告专用附件和现有仓库文档 skill;不修改算法、训练实现或站点全局样式,不修改跨仓或锁定 skill。新规则已在本任务读取;上游默认版本须待合并和后续加载才生效。

Testing

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

本轮在 Python 3.11 环境重跑全部 pre-commit hooks,通过;未跳过 hook。文档 skill 的 frontmatter、参考文件路径、英文目录/路由、内部证据边界与清晰写作规则已检查。

保留模板的跟进提交重新通过 all-files pre-commit、文档构建、指南链接与渲染检查及 51 项 CPU 测试。使用仓库已有 VitePress Markdown renderer 提取并渲染两份模板,确认英文、中文模板均可独立复制,内层代码块、表格与英文示意图完整;没有新增依赖。REINFORCE++ 两份指南正文在该跟进提交中没有改动。

后续 TensorBoard 条件修正仅修改两份指南,同样重跑文档构建、all-files pre-commit、146 条链接/锚点、双语代码、浏览器渲染与 51 项 CPU 测试,通过。用受控命令拦截执行实际 helper 和两个变体的 recipe,确认提交终端的覆盖变量未进入实际 runtime_env.env_vars 或训练参数;另执行 adapter 的实际路径选择方法并使用假 writer,核对缺少变量时的默认目录及变量存在时的优先级。所有清理、Ray、GPU 外部命令均已拦截,没有启动真实 Ray 集群、训练或写入 TensorBoard event。

本轮重跑 npm run docs:build 通过,包括 OpenAPI 生成、VitePress 生产构建及 chunk 文件名检查。构建生成的无关 OpenAPI 文件变动未纳入 PR。既有 docs/GET_STARTED.md 和 docs/DEPLOYMENT_SUMMARY.md 仍有指向缺失文件的 source-links 警告;本次指南、导航和资源链接已单独核验。

本轮重跑后,检查两种语言构建产物中的 146 个页面/导航/资源链接及锚点;删除的报告路由、附件和引用均不再出现在构建产物中。两种语言的命令块一致,Bash 语法检查通过。截获示例脚本实际生成的三种算法提交参数,并提取两种语言中的算法参数数组,两个 REINFORCE++ 变体均通过生产参数校验;此检查没有启动 Ray 或 GPU 训练。

本轮使用 Chrome / Playwright 检查中英文在 1440px 和 390px 下的渲染、侧栏客户端跳转与刷新:未发现页面水平溢出、JavaScript 异常或本地资源 HTTP 错误。

独立只读源码审计完成并采纳原始优势值表述的澄清。另用实际组均值处理与全局归一化函数做 CPU/Gloo 边界核验:同组奖励相同产生零原始优势值,但其他组回答长度不等时,归一化后的值仍可能非零。这是文档语义核验,不是训练或新增算法测试。

本轮重新执行定向 CPU 测试,通过 51 项,包含真实双进程 Gloo:

GLOO_SOCKET_IFNAME=lo0 PYTHONPATH="$PWD" pytest -q \
  tests/core/test_registry_reinforce_plus_plus.py \
  tests/utils/test_arguments_reinforce_plus_plus.py \
  tests/utils/training/test_reinforce_plus_plus.py \
  tests/utils/test_distributed_masked_normalize.py \
  tests/backends/megatron/test_reinforce_plus_plus_loss.py \
  tests/backends/megatron/test_reinforce_plus_plus_wiring.py \
  tests/utils/test_reinforce_reward_processing.py

lo0 是本次 macOS 主机已核验的 loopback 网卡,用于本机 Gloo 测试,不是训练网络配置建议。完整 pytest tests/、CUDA 训练和多节点 GPU 集成测试未运行:本次仅改文档,执行主机没有所需的 NVIDIA GPU、Megatron 训练环境和多节点资源。没有新增算法测试或 GPU 成功声明。

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

VitePress v1.6.4: build complete
pre-commit: all hooks passed
Focused CPU suite: 51 passed
Guide/sidebar/asset links and anchors: 146 passed
Browser checks: English + Chinese, 1440px + 390px passed

# 📝 Documentation

- Rewrite both REINFORCE++ guides around launch steps, verified settings,
  limitations, monitoring, and troubleshooting.
- Remove user-facing training reports, navigation, and report-only assets.
- Keep verification evidence out of guide content and persist task-based,
  clear bilingual writing rules in the existing doc-writer skill.
- Correct English documentation paths and clarify optional template sections.
# 📝 Documentation

- Distinguish Ray resource capacity from GPU device visibility.
- Describe the return/reward comparison as a diagnostic, not a direct
  reference-KL estimate, in both language versions.
@rai-studio-bot

Copy link
Copy Markdown
Contributor

Thanks for contributing to Relax, @ShigureNyako! 感谢你为 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 审查看板

审查状态: ✅ 已通过

审查版本: 513245a

目标分支: main

第五轮审查完成,建议合并。新提交 513245a 按维护者 suggestion 修复了 TENSORBOARD_DIR 生效条件(中英文同步,F1 已解决);三条维护者意见在本 head 均已处理,维护者线程待其自行确认。全部审查范围内无未解决发现。

审查阶段进度范围与结果
常规审查 ✅ 已完成 增量 fcd6eeb..513245a 仅 6 行:两份指南的监控段落按维护者 suggestion 改为"在 ray start 前 export TENSORBOARD_DIR,ray-job.sh 不转发该变量,Ray 已启动后仅提交终端设置不生效",中英文表述一致,机制与本方核验(ray-job.sh runtime env 无该变量、示例脚本未转参数、adapter 仅读作业进程环境)相符,F1 解决。其余文件与 153ec6b..fcd6eeb 审查结论一致(无代码/测试改动)。
深度审查 ➖ 无需执行 五轮均为纯文档与开发 skill 文本变更,无生产代码、算法或测试改动;独立设计比较与测试审查无适用范围,必要性审计由父任务直接完成。

审查发现

待处理
编号 严重性 问题状态规则来源
暂无待处理的记录。
已解决或已取代
编号 严重性 问题状态规则来源
F1 Medium severity TENSORBOARD_DIR 覆盖说明缺少生效条件(中英文指南第 119 行) ✅ 已解决 —
提交范围 · 接收 23 · 建议移出 0 · 待确认 0

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

文件结论仓库维护必要性依据替代去向或方案
docs/en/guide/reinforce-plus-plus.md
docs/zh/guide/reinforce-plus-plus.md
接收 核心交付物:面向用户的 REINFORCE++ 双语指南,属于 docs 站点发布产物与用户工作流,仓库必须维护。新提交按维护者意见补全 TENSORBOARD_DIR 生效条件,职责与前四轮裁定相同。 PR #408 描述(What/Why):https://github.com//pull/408;docs/.vitepress/config.mts 侧栏已注册该路由 无更小机制:用户指南本身就是仓库的交付物,外部 artifact 无法替代站点发布的文档。
docs/en/guide/reinforce-plus-plus-training-report.md
docs/zh/guide/reinforce-plus-plus-training-report.md
docs/.vitepress/config.mts
docs/public/reinforce-plus-plus/evaluation_paired_reward_differences.csv
docs/public/reinforce-plus-plus/evaluation_reward.svg
docs/public/reinforce-plus-plus/evaluation_summary_by_algorithm.csv
docs/public/reinforce-plus-plus/evaluation_summary_by_run.csv
docs/public/reinforce-plus-plus/evidence_index.csv
docs/public/reinforce-plus-plus/training_advantage_std_curve.svg
docs/public/reinforce-plus-plus/training_kl_loss_curve.svg
docs/public/reinforce-plus-plus/training_loss_curve.svg
docs/public/reinforce-plus-plus/training_metrics_long.csv
docs/public/reinforce-plus-plus/training_response_length_curve.svg
docs/public/reinforce-plus-plus/training_reward_curve.svg
docs/public/reinforce-plus-plus/training_summary_by_algorithm.csv
docs/public/reinforce-plus-plus/training_summary_by_run.csv
docs/public/reinforce-plus-plus/training_throughput_curve.svg
docs/public/reinforce-plus-plus/training_truncation_curve.svg
接收 删除内部验收报告、其专属 CSV/SVG 附件并同步清理导航,是本 PR 的明确目的;一次性验证数据不应留在用户文档树中维护。此部分与前四轮逐字节相同。 PR #408 描述(What/Why);报告与附件只被报告页面引用;git 历史仍保留原始证据 保留报告页与附件会继续把一次性实验数据当作站点内容维护;原始数据已存在于 git 历史,不需要外部归档即可追溯。
skills/doc-writer/SKILL.md
skills/doc-writer/references/content-verification-guide.md
skills/doc-writer/references/doc-template.md
接收 skills/doc-writer 是仓库自有开发工作流文档(AGENTS.md skills 表引用)。本提交未改动 skill 文件,最终形态为可复用双语模板,职责与前四轮裁定相同。 PR #408 描述(What);AGENTS.md:https://github.com/redai-studio/Relax/blob/main/AGENTS.md 不修改 skill 则规则仅存在于提交说明中,后续文档任务无法复用;skill 已在仓库内被引用,无需移到外部。
精简审查与验证依据
审查范围进度结论
生产代码 ✅ 已完成 最终形态审查完成:双语指南(含 TENSORBOARD_DIR 条件修正)、可复用双语言模板(维护者意见保留)、删除一次性验收数据;无进一步可精简的冗余。
测试 ➖ 无需执行 五轮均未修改任何测试文件;代码在 9ef7f8c 至 513245a 间零改动,第一轮定向测试证据(49 通过;2 项失败为本容器缺少 megatron.core 的环境问题)继续适用。

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

范围必须保留的契约更简单的方案结论依据与限制
docs/en/guide/reinforce-plus-plus.md 与 docs/zh/guide/reinforce-plus-plus.md(最终形态,含 513245a 的 TENSORBOARD_DIR 条件说明) 用户指南须覆盖算法差异、单 GPU 启动、示例默认值、限制与排障并与源码一致(含环境变量的实际生效条件) 维持误导性的"unless overridden by TENSORBOARD_DIR"表述(无生效条件) 保留 五轮逐项核验与源码一致;F1 修复与维护者线程 r4176632707 的 suggestion 及 ray-job.sh/adapter 实际行为相符。限制:VitePress 构建沿用作者声明与人工链接核验。
skills/doc-writer 3 个文件(可复用双语模板 + 写作规则) AGENTS.md 引用的仓库开发工作流须与实际文档布局和写作实践一致 删除模板(纯规划参考)——已被维护者意见否决 保留 fcd6eeb 按维护者意见(r4176617109/r4176618628)恢复模板为可选章节的复用起点;占位符警示与四反引号围栏正确。
删除 2 个训练/数值验证报告页、15 个 CSV/SVG 附件及 config.mts 路由(与前四轮逐字节相同) 用户文档树不维护一次性验收数据;站点导航不得残留 404 路由 保留报告页与附件作为站点内归档 删除 全仓检索无残留引用;原始数据仍可经 git 历史追溯。
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 的 23 个文件:重写后的中英文 REINFORCE++ 指南中,示例脚本环境变量默认值、参数校验规则(变体约束、colocate/CP 限制)、训练信号公式(k1 惩罚、含当前回答的组均值、token 全局归一化、响应均值归约)、指标名(train/ppo_kl、train/kl_loss、rollout/returns 等)与启动/清理行为均与 relax 实现一致;删除的报告页、15 个附件及侧栏路由经全仓检索无悬挂引用;skills/doc-writer 更新自洽,并修正了旧文档中 docs/guide/ → docs/en/guide/ 的路径错误。未发现需要修改的问题。

审查看板:#408 (comment)

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

# 📝 Documentation

## Follow neighboring algorithm guides

- Explain variant differences in prose and put explanations next to examples.
- Consolidate launch steps, routine constraints, and common troubleshooting.
- Keep bilingual commands and verified semantics aligned without literal prose.

## Remove rigid writing rules

- Treat STE-inspired clarity as a comprehension goal, not a sentence pattern.
- Replace the oversized placeholder template with flexible page planning.
- Read related guides first and reserve warnings for consequential risks.

@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.

审查结论:通过(复审新提交 e92e682)

新提交将两份 REINFORCE++ 指南重构为 Overview / Quick Start / Configuration / Monitoring 常规结构,并精简了 doc-writer 模板。已逐项核对增量:变体差异与 GRPO 拓扑复用、RLOO/GRPO 对比、示例默认值、参数校验约束、k1/k2 公式、组均值与 token 全局归一化语义、指标含义(含 train/kl_loss 为乘系数前的参考惩罚)、启动与清理风险均与源码一致;链接目标全部存在,删除项无悬挂引用;双语结构与命令一致。该提交未触及任何代码或测试文件,上一轮对源码的核验与测试证据继续适用。未发现需要修改的问题。

审查看板:#408 (comment)

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

# 📝 Documentation

- Distinguish group-centered raw advantages from token-global normalized values.
- Qualify GRPO standard-deviation normalization as its default behavior.
- Use deployment wording and clarify Relax-specific clipped optimization.

@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.

审查结论:通过(复审新提交 153ec6b 及描述更新)

新提交对两份 REINFORCE++ 指南做了 9 行措辞澄清:组均值相减得到的是原始优势值(raw advantage)、归一化后的值取决于整批 token 统计、GRPO 的标准差处理明确为默认行为。这些表述与实现语义一致,并修正了上一版将原始优势值与归一化值混同的不精确说法。同步编辑的 PR 描述与最终状态一致(引用的 PPO 训练、算法参考与 OPD 示例页面均存在,测试与语义声明经核验准确)。该提交未触及代码或测试,前两轮对源码的核验与测试证据继续适用。未发现需要修改的问题。

审查看板:#408 (comment)

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

This file provides the standard template for Relax documentation pages. Both English and Chinese versions follow this structure.
This reference helps plan a page; it is not a form to fill in. Publish English pages under `docs/en/` and Chinese pages under `docs/zh/` with aligned technical coverage and commands.

## English Template

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

这个模板我感觉还挺有用的呀,可以优化,但不用删掉吧

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

确实不该删掉这个模板。已在 fcd6eeb 恢复并优化可独立复制的英文模板和中文模板。架构、配置、API、示例等部分仍保留,按页面用途取舍,不要求每页填满所有栏目。

外层改用四反引号,复制时能保留内部代码块的围栏;示例明确标为占位内容,发布前需替换为经源码核验的内容。SKILL.md 也同步改为按需使用模板。

@@ -1,278 +1,46 @@
# Doc Page Template
# Doc Page Planning

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

doc-template.md 里咋写的是 planning 呢?是不是得调整下?这部分想写什么?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Planning 命名不准确,这个文件应提供可复制的页面模板,而不是开发计划。已在 fcd6eeb 将标题改回 Doc Page Template,并在开头说明用途:以中英文模板作为初稿起点,再按读者任务删减和重排章节,发布前替换占位内容。

SKILL.md 的引用说明也同步调整,不再把它当成规划清单或必须逐项填写的表格。验证证据仍与用户页面分开。

@SigureMo SigureMo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

补充一条 P2 文档问题:双语指南中的 TENSORBOARD_DIR 覆盖说明缺少生效条件,已在中文指南第 119 行给出原因、验证结果和修改建议,请同步更新英文版本。

审查版本:153ec6b0e72e0bfe43336a911a727871651e5d8f。本轮 VitePress 生产构建、两种语言页面的 146 个链接/资源/锚点检查、双语命令一致性与 Bash 语法检查通过;未运行 GPU 或多节点训练,本机缺少所需环境。

This reply was automatically generated by codex.

Comment thread docs/zh/guide/reinforce-plus-plus.md Outdated
## 监控与常见问题

## 监控指标
示例将 TensorBoard event 写入 `OUTPUT_DIR/actor/tensorboard_log`,可用 `TENSORBOARD_DIR` 覆盖;提交日志保存在 `OUTPUT_DIR/logs`。评估训练效果时,结合评测奖励、`rollout/response_len/mean` 和 `rollout/truncated_ratio`,而不是只看损失。回答经常达到长度上限时,可在显存允许的情况下增大 `ROLLOUT_MAX_RESPONSE_LEN`。

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

[P2] 补充 TENSORBOARD_DIR 覆盖的生效条件

按前文先启动 Ray,再用 TENSORBOARD_DIR=/custom/path bash scripts/entrypoint/ray-job.sh ... 提交时,这个覆盖不会生效:ray-job.sh 的 runtime environment 没有转发该变量,示例也未将它转换为命令行参数,而 TensorBoard adapter 只从作业进程环境读取它,因此仍写入默认目录。

用隔离命令拦截检查了两个 estimator:提交终端中存在 TENSORBOARD_DIR,但实际提交的 runtime_env.env_vars 和训练参数均未携带覆盖值;没有启动 Ray 或 GPU 训练。建议明确在启动 Ray 前设置的条件,并同步修改英文指南第 119 行:

Suggested change
示例将 TensorBoard event 写入 `OUTPUT_DIR/actor/tensorboard_log`,可用 `TENSORBOARD_DIR` 覆盖;提交日志保存在 `OUTPUT_DIR/logs`。评估训练效果时,结合评测奖励、`rollout/response_len/mean` 和 `rollout/truncated_ratio`,而不是只看损失。回答经常达到长度上限时,可在显存允许的情况下增大 `ROLLOUT_MAX_RESPONSE_LEN`。
示例将 TensorBoard event 写入 `OUTPUT_DIR/actor/tensorboard_log`。如需用 `TENSORBOARD_DIR` 覆盖,请在启动 Ray 前 export 该变量;Ray 启动后,仅在提交终端设置该变量不会将其传入作业。提交日志保存在 `OUTPUT_DIR/logs`。评估训练效果时,结合评测奖励、`rollout/response_len/mean` 和 `rollout/truncated_ratio`,而不是只看损失。回答经常达到长度上限时,可在显存允许的情况下增大 `ROLLOUT_MAX_RESPONSE_LEN`。
This reply was automatically generated by codex.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

已在 513245a 同步修正中文指南和英文指南的监控段落:更换 event 目录须在 ray start 前 export TENSORBOARD_DIR;仅在 Ray 已启动后的提交终端设置,不会经 ray-job.sh 传入作业。默认 event 目录与提交日志目录也分别注明。

用命令拦截检查了实际 helper 和示例的两个 estimator,确认覆盖值未进入提交的 runtime_env.env_vars 或训练参数;另用假 writer 执行 adapter 的路径选择方法,核对默认目录和环境变量优先级。文档生产构建、双语链接与命令检查、桌面/移动页面检查通过。这些是受控验证,没有启动真实 Ray 集群或 GPU 训练。

# 📝 Documentation

- Restore reusable English and Chinese documentation templates.
- Retain optional architecture, API, usage, and troubleshooting sections.
- Replace fictional APIs with explicit source-verified example slots.
- Keep natural-writing and verification-separation guidance.
- Use nested Markdown fences that can be copied unchanged.

@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.

审查结论:增量通过;一条 P2 意见待处理

新提交 fcd6eeb 恢复了 doc-template.md 的中英文页面模板(作为可选章节的复用起点)并同步调整 SKILL.md 的引用说明,两条 changes-requested 意见(保留模板、"Planning" 标题)经核验已由该提交解决:占位符明确标注需替换为源码核验内容,四反引号围栏嵌套正确,模板引用的页面均存在。增量本身未发现问题。

SigureMo 的 P2 意见(TENSORBOARD_DIR 覆盖缺少生效条件)在当前 head 仍未处理:两份指南第 119 行的监控段落未改动。本方独立核验该意见成立——ray-job.sh 的 runtime env 未转发该变量,示例脚本也未将其转为命令行参数,而 TensorBoard adapter 只从作业进程环境读取,因此按指南流程仅在提交终端设置该变量不会生效。建议按该线程的 suggestion 更新中文指南并同步英文版本(在启动 Ray 前 export 才会生效)。此为 P2,不单独阻塞。

审查看板:#408 (comment)

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

# 📝 Documentation

- Set TENSORBOARD_DIR before starting the dedicated Ray runtime.
- Explain that ray-job.sh does not forward submission-shell overrides.
- Keep the Chinese and English operating instructions aligned.

@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.

审查结论:通过(复审新提交 513245a)

新提交按维护者 suggestion 修复了 TENSORBOARD_DIR 意见:两份指南的监控段落现说明需在 ray start 前 export TENSORBOARD_DIR,并明确 ray-job.sh 不转发该变量、Ray 启动后仅在提交终端设置不会生效。该表述与本方核验的实际机制一致(runtime env 未转发、示例脚本未转参数、TensorBoard adapter 仅读作业进程环境),中英文内容同步。至此 SigureMo 三条意见(两条模板意见已由 fcd6eeb 解决)在本 head 均已处理,线程待其确认。增量未引入其他改动,前四轮对源码的核验与测试证据继续适用。未发现需要修改的问题。

审查看板:#408 (comment)

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

@SigureMo SigureMo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTMeow 🐾

@SigureMo
SigureMo merged commit af721ce into redai-studio:main Oct 4, 2026
12 checks passed
Mukayi added a commit to Mukayi/Relax that referenced this pull request Oct 12, 2026
…er-profiler

Brings in upstream/main 653c43c..dce533b (redai-studio#257, redai-studio#258, redai-studio#285, redai-studio#323, redai-studio#330,
redai-studio#335, redai-studio#408, redai-studio#409, redai-studio#412, redai-studio#414, redai-studio#416, redai-studio#417, redai-studio#419-redai-studio#421, redai-studio#424, redai-studio#426, redai-studio#427,
redai-studio#430, and 42 commits synced on 10-12 without PR numbers).

The only conflict is relax/utils/env.py: cc4b052 adds the DeepSeek-V4
MXFP4 QAT variables at the same spot where this branch adds the straggler
profiler variables. Resolved by keeping both blocks, straggler first.
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