Repository navigation
Conversation
Record committed generation fragments and audit policy-version lag at Megatron Fully Async Actor consumption. Relates to redai-studio#321.
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
|
Thanks for contributing to Relax, @MU-ty! 感谢你为 Relax 做出贡献! 📚 Contribution guide / 贡献指南Describe the problem, your changes, and how you validated them. Keep each PR focused and run 请说明问题、改动和验证方式,保持 PR 聚焦,并在提交前运行 🛠️ CI commands / CI 指令
Put one command on the first line of a new PR comment. Rerun/cancel require PR authorship or repository write access. 在新 PR 评论的首行写一条指令。PR 作者或有仓库写权限的贡献者可以重跑、取消 CI。 🔎 Merge requirements / 合入条件GitHub:⏳ 合入条件未满足
|
Nyanpasu 审查看板审查状态: ✅ 已通过 审查版本: 155497c 目标分支: main 已复核 155497c 合入最新 main 后的变更及相关调用链,未发现新问题;保留已有批准。
没有未解决的审查问题。 改进建议(非阻塞)相关 PR💡 实现与合入建议与 #549/#570 的生成来源、发布记录和消费审计存在重复链路;建议合入时协调一套协议。本建议不阻塞当前 PR。 https://github.com/redai-studio/Relax/pull/549 · https://github.com/redai-studio/Relax/pull/570 · https://github.com/redai-studio/Relax/pull/547 · https://github.com/redai-studio/Relax/pull/516 · 实现取舍: 当前声明范围可优先采用 #629 较集中的标准转换器与现有日志/dump 接入;需要跨部署身份或独立完成快照时参考 #549,需要实际 loss callback 后的目标覆盖时适配 #570。#547/#516 的来源统计不能直接替代训练消费审计;没有足够证据认定某个实现全面胜出。 当前 PR 调整: 保留 #629 的提交片段、unknown/null、训练消费和 dummy 排除。与 #549/#570 集成时统一 token 坐标、策略/发布身份、完成时刻及传输字段,避免并行维护多套审计;#629 的 response 相对区间与 raw→ordinal 表不能直接拼接 #570 的绝对 token 坐标和 lineage 标签。当前无须因尚未合入的实现删除此链路。 合入顺序: 无硬性 PR 依赖。维护者可先落较聚焦的 #629,再让后续实现复用其来源与传输;也可先适配并验证较完整的实现,再将 #629 缩为尚未覆盖的接线。后者扩大首次集成的验证范围;两者尚未证明完全替代。#547 的普通 rollout 支持应单独保留。 依据与验证范围: 已重新核对四个相关 PR 的 live head/base、merge-base 和讨论,均未变化;#629 本次仅合入 main;11 个审计变更文件与已审查版本完全一致,已核对新增基线交互。来源与统计协议见 #629 policy_audit.py:https://github.com/redai-studio/Relax/blob/155497c223da5f3aa48e51aa1d8be449859ae2f2/relax/agentic/policy_audit.py、#549 weight_audit.py:https://github.com/redai-studio/Relax/blob/3ef063b5cf30eebd8e8439153c50a644e512a392/relax/agentic/weight_audit.py、#570 loss callback:https://github.com/redai-studio/Relax/blob/433cd17c29380749a80fdb0a7feab9ff9323dbf5/relax/backends/megatron/model.py#L1544。保留工具等待/恢复、缺失版本和成功发布回归;统一传输还需 TQ 往返及实际消费边界验证。本次对比只读,未运行测试,未验证组合实现。 提交范围 · 接收 11 · 建议移出 0 · 待确认 0接收 11 个文件 · 建议移出 0 个文件 · 待确认 0 个文件。移出与待确认部分暂停深审,不代表审查通过。
Powered by Nyanpasu with gpt-6.1-sol xhigh, please check the suggestions carefully.
|
What
Track the policy version and token range of each committed generation fragment. Report policy age for the rows consumed by Megatron Fully Async Agentic training. Include per-sample diagnostics in the existing debug training dump.
Why
A tool wait or partial-rollout resume can span multiple weight publications. A completed response can also wait for training while newer weights are published. The audit measures these stages separately.
Relates to #321 and Contributor Program Task 15.
How
Testing
python -m pytest -q tests/cpu/agentic/test_policy_audit.py— 3 passed on the current main base.Ruff lint, format and Python compilation passed for the changed Python files.
Full pre-commit was attempted locally. GitHub connectivity blocked fetching the first hook repository.
The DCS regression requires Ray, which is unavailable in the local environment. GPU end-to-end training is unverified.
pre-commit run --all-filespassesTests pass (
pytest tests/)New tests added (if applicable)
Documentation updated (if applicable)
Type of Change
Screenshots / Logs
The CPU example reproduces two publications during a tool wait, a later partial resume and one publication after generation. It reports a generation span of 3, post-generation lag of 1, token-weighted lag of 2.4 and zero missing versions.