You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(rl): thread seq_lens through transport, packer, and trainer forward
Mirror of the SFT-side contract: packed RL micro-batches carry explicit
per-sample boundaries end to end — prepare_sample stamps them,
_materialize_bin accumulates them across the bin (asserting they sum to
the packed length), pad_micro_batch records padding as its own segment,
and the RL dataloader tensorizes them into the micro-batch for
forward(). Under CP the trainer passes seq_lens=None for now, matching
the SFT side, until global boundary semantics land.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
0 commit comments