Repository navigation
【No.13 12/N】refactor(args): read checkpoint interval args directly - #810
Conversation
|
Thanks for contributing to Relax, @HpIahtcthocw! 感谢你为 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 审查看板审查状态: ✅ 已通过 审查版本: 5e3d16d 目标分支: main 两项既有审查意见均已解决。此前失败的 55 个 CPU 用例全部通过,复核未发现新增问题。
审查发现待处理
已解决或已取代
Powered by Nyanpasu with gpt-6.2-sol high, please check the suggestions carefully.
|
||||||||||||||||||||||||||||||||||
|
|
||
| def validate_save_lora_only_args(args) -> None: | ||
| if not getattr(args, "save_lora_only", False): | ||
| if not args.save_lora_only: |
There was a problem hiding this comment.
CPU CI 第 1 次运行在本 PR 的合并提交 a798be5c 上报告 55 个失败。现有 PPO、SFT、RLOO 和 OPD 测试直接将手工构造的参数传给 relax_validate_args,缺少 save_lora_only 时会在这里抛出 AttributeError。同一轮迁移也漏了 SFT 周期测试的 rotate_ckpt,以及 Agentic 和 replay 转存测试的 save_debug_rollout_data。这些用例在执行原有断言前就退出了。
请补齐这些测试的参数构造,保留直接读取和原有行为断言,再确认 CPU CI 通过。失败日志 · No.13 验收要求
|
PR 比较多,可以敏捷按照这种方式多提几个,避免下周日合不完 |


本 PR 将 Relax 中以下 5 个 checkpoint/保存相关参数从
getattr(args, ..., default)改为直接读取args.x。save_interval--save-interval,int或"epoch",默认Nonerotate_ckpt--rotate-ckpt,store_true,默认Falseasync_save--async-save,store_true,默认Falsesave_lora_only--save-lora-only,store_true,默认Falsesave_debug_rollout_data--save-debug-rollout-data,str,默认None通过 Relax 解析器初始化的参数已有这些字段,直接读取会保留默认值和显式配置。绕过解析器的测试需提供所读字段。