2 Commits
Author SHA1 Message Date
3b39c2e8f9 [Feat] support cp in sft trainer (#845)
* support ep tp

* take parallel dims from torchtitan

* fix logger

* get back to what we previously supported [skip ci]

* duplicate data on non dp rank

* refactor parallel dims into training script

* take out debug prints

* implement pack functions

* guard stacking in cp

* add back sftdataconfig type annotation

* dummy context when no cp

* guard in rl because im lazy

* make simpler truncate loging in stackingdataset

* bucket timeout

* greedy combine and pad

* cover mesh dim 1 case

* why none instead of empty list?

* always have dp shard dim

* reverse ugly workaround

* Update src/prime_rl/trainer/sft/data.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Jackmin801 <56836461+Jackmin801@users.noreply.github.com>

---------

Signed-off-by: Jackmin801 <56836461+Jackmin801@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-31 00:39:51 -07:00
samsjaandGitHub 36d854c85a Initial commit 2024-09-11 19:07:37 +02:00