Skip to content

Commit bc14324

Browse files
committed
Merge branch 'ashors/mcore-data' of github.com:NVIDIA-NeMo/RL into ashors/mcore-train
2 parents 50689b5 + 0e994e9 commit bc14324

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

nemo_rl/models/policy/workers/megatron_policy_worker.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -916,15 +916,6 @@ def train(
916916
self.model.train()
917917

918918
with ctx:
919-
# dim 1 is always assumed to be the sequence dim, sanity check this here
920-
sequence_dim = 1
921-
seq_dim_size = data["input_ids"].shape[sequence_dim]
922-
for k, v in data.items():
923-
if torch.is_tensor(v) and len(v.shape) > 1:
924-
assert v.shape[sequence_dim] == seq_dim_size, (
925-
f"Dim 1 must be the sequence dim, expected dim 1={seq_dim_size} but got shape {v.shape}"
926-
)
927-
928919
all_mb_metrics = []
929920
losses = []
930921
total_num_microbatches = 0

0 commit comments

Comments
 (0)