Repository navigation
fix(mini-swe-agent): pin eval dependencies - #412
Conversation
# 🐛 Bug Fix - Pin swebench to 4.1.0 for compatibility with the existing reward API. - Use chardet 5.0.0 for Python 3.6 evaluation images and download its wheel. - Keep chardet 5.2.0 for training environments.
|
Thanks for contributing to Relax, @DrRyanHuang! 感谢你为 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。 |
Nyanpasu 审查看板审查状态: ✅ 已通过 审查版本: 010efab 目标分支: main 示例依赖固定变更审查完成:README 将宿主侧 swebench 固定为 4.1.0,eval 沙箱改用 chardet 5.0.0 并离线下载两个 wheel。逐条核对 agent_server.py 的 swebench 导入在 4.1.0 中全部可用、在 5.0.2 中缺失,chardet 版本与 Python 3.6 镜像兼容。未发现阻塞或非阻塞缺陷,建议批准。未独立验证:作者报告的一次 50 任务评测与一次训练 rollout 未在本检出中重跑。
没有未解决的审查问题。 提交范围 · 接收 3 · 建议移出 0 · 待确认 0接收 3 个文件 · 建议移出 0 个文件 · 待确认 0 个文件。移出与待确认部分暂停深审,不代表审查通过。
精简审查与验证依据
生产代码的必要性与替代方案
Powered by Nyanpasu with deepseek-v4.1-flash-ali xhigh, please check the suggestions carefully.
|
rai-studio-bot
left a comment
There was a problem hiding this comment.
审查结论:批准
本 PR 将 mini_swe_agent 示例的依赖固定为与代码实际使用一致的版本:宿主 venv 的 swebench 固定为 4.1.0,eval 沙箱改用 chardet==5.0.0,并在一次性 setup 脚本中离线下载两个 chardet wheel。已在隔离环境中逐条执行 agent_server.py 使用的 swebench 导入,确认 4.1.0 全部可用(5.0.2 已移除 harness/test_spec 模块与 KEY_INSTANCE_ID),并核对 chardet 5.0.0 / 5.2.0 的 Requires-Python 分别为 >=3.6 / >=3.7,与 eval 镜像的 Python 3.6 及 train 环境相容。仓库内没有其它 swebench/chardet 固定点或文档副本需要同步,未发现需要修改的问题。
审查范围与必要性审计记录:#412 (comment)
未独立验证:作者报告的一次 50 任务评测与一次训练 rollout 未在本检出中重跑。
…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.
What
Fix dependency compatibility in the Apptainer Mini SWE Agent evaluation example.
Why
Some evaluation images use Python 3.6, which cannot install chardet 5.2.0.
The existing reward code also imports APIs such as KEY_INSTANCE_ID that
are unavailable in swebench 5.0.2.
How
Testing
evaluation and one training rollout.
Type of Change