将微批次调度从训练侧移至rollout侧,全局优化bin packing。
值得精读,特别是 `slime/utils/dp_schedule.py` 的设计思路和 `tests/test_dp_schedule.py` 中不变量断言。需要关注: - 如何将纯逻辑从框架依赖中拆解出来(纯函数 + CPU 测试)。 - `expand_bins_by_splitting` 如何保持 bin 容量约束。 - 统一 static 和 dynamic 路径的 `micro_batch_indices` 数据契约。
参与讨论