Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion slime/backends/megatron_utils/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def _generate_data_iterator(rollout_data, micro_batch_size, micro_batch_indices=
dist.all_reduce(num_microbatches, op=dist.ReduceOp.MAX, group=dp_group)

if vpp_size > 1:
# vpp requies the number of microbatches to be divisible by vpp_size
# vpp requires the number of microbatches to be divisible by vpp_size
num_microbatches = torch.clamp(
num_microbatches // microbatch_group_size_per_vp_stage * microbatch_group_size_per_vp_stage,
min=1,
Expand Down