fix pp+tp, fix dataloader (#6280)

This commit is contained in:
YeAnbang
2025-04-28 17:10:00 +08:00
committed by GitHub
parent 28795f560c
commit 2ca1e3c630
5 changed files with 17 additions and 8 deletions

View File

@@ -68,6 +68,7 @@ class BaseProducer:
seed=42,
),
num_workers=4,
drop_last=True,
)
self.device = get_current_device()
@@ -116,7 +117,6 @@ class BaseProducer:
ray_broadcast_tensor_dict(
outputs, src=0, device=self.device, group_name=f"sync_data_{self.producer_idx}"
)
if (i + 1) % self.num_microbatches == 0 and (
episode != self.num_episodes - 1 or i != num_valid_microbatches - 1
):