Repository navigation
Conversation
- aggregate rollout stop reason counts and ratios from sample metadata - add p50, p90, p95, and p99 turn metrics while preserving min/mean/max - preserve canonical rollout_stop_reason values and normalize fallback stop_reason categories - handle empty samples without changing rollout control flow - add focused unit and integration coverage
Nyanpasu 审查看板审查状态: ✅ 已通过 审查版本: ec99918 新版本(维护者合并 main 后,ec99918b)增量复审完成:PR 自身改动与上一轮已批准版本语义一致(测试文件逐字节相同,生产 diff 仅上下文行偏移),合并未引入新问题。本地隔离加载真实聚合函数复跑单测 23 项通过;本轮全部 8 项 CI(Pre-commit、Python 3.10/3.11/3.12、H20 单测、Qwen3-4B-4xgpu-async、Qwen3-VL-4B-2xgpu、NPU)均在 ec99918 通过。无未解决问题,同意合入。
没有未解决的审查问题。 提交范围 · 接收 3 · 建议移出 0 · 待确认 0接收 3 个文件 · 建议移出 0 个文件 · 待确认 0 个文件。移出与待确认部分暂停深审,不代表审查通过。
精简审查与验证依据
生产代码的必要性与替代方案
测试的必要性与替代方案
Powered by Nyanpasu with glm-5.3[1m] xhigh, please check the suggestions carefully.
|
rai-studio-bot
left a comment
There was a problem hiding this comment.
已审查目标提交 1f8c719 的全部变更及指标调用路径,未发现需要修改的问题,同意合入。
隔离加载真实聚合函数与 Sample 后,23 项单测通过,差异格式检查通过。完整模块测试因本地依赖缺失未能运行,两个入口集成用例未执行;本地无多节点 GPU 环境,未运行训练集成测试。当前未发现 CI 检查结果。
rai-studio-bot
left a comment
There was a problem hiding this comment.
审查结论:同意合入
已在目标提交 ec99918b(维护者合并 main 后)完成增量复审。PR 自身改动与上一轮已批准版本语义一致:测试文件逐字节相同,生产 diff 仅因上游 has_repetition 重构与版权头产生上下文行偏移;合并范围内无 stop_reason / rollout_turns / num_turn 相关上游改动,指标键无冲突写入方。本地隔离加载真实聚合函数复跑单测 23 项通过;本轮全部 8 项 CI(Pre-commit、Python 3.10/3.11/3.12、H20 单测、Qwen3-4B-4xgpu-async、Qwen3-VL-4B-2xgpu、NPU)均在该提交通过,上一轮遗留的 CI 待确认项已全部转绿。生产与测试必要性审计已完成,无删除或合并建议。
审查看板:#339 (comment)
|
如果完成了,记得按照流程「提交」哦 |
|
本赛题已经由 #330 合入并锁定,感谢参与~ |
Summary
num_turn/p50,p90,p95, andp99while preserving the existing min/mean/max metrics.rollout_stop_reasonas the canonical value, fall back to the normalizedstop_reasoncategory, and useunknownwhen neither is available.Implementation
The new aggregation helper:
rollout_stop_reason;stop_reason;rollout_turnsdefault of1;compute_metrics_from_samplesnow delegates the stop-reason and turn statistics to this helper.Tests
Added focused coverage for:
rollout_turns;Local validation:
pre-commit run --all-files: passed;git diff --check: passed.The focused tests were also sanity-checked against deliberate mutations of the key aggregation semantics; each mutation was detected.
Scope
No rollout loop, stopping-condition, scheduling, routing, or session-state behavior is changed.
Related to Contributor Program Cohort 2 — Task 9 (#321).