Skip to content

Commit 5fd7456

Browse files
committed
Fix MLM datasets length
1 parent 06e26f7 commit 5fd7456

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

megatron/data/mlm_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def __init__(
313313
assert self.inputs_length + self.targets_length == args.seq_length
314314

315315
def __len__(self):
316-
return len(self.samples_mapping)
316+
return len(self._gpt_dataset)
317317

318318
def __getitem__(self, idx):
319319
if isinstance(idx, slice):

0 commit comments

Comments
 (0)