diff --git a/src/axolotl/utils/dataloader.py b/src/axolotl/utils/dataloader.py index 6d5505baa2..d659c3d334 100644 --- a/src/axolotl/utils/dataloader.py +++ b/src/axolotl/utils/dataloader.py @@ -223,6 +223,8 @@ def __iter__(self): concatenated = {} batched_data = [self.dataset[batch_idx] for batch_idx in batch] for feature in features: + if feature == "length": + continue if feature == "attention_mask": arrays = [ (attn_mask_cum_idx + idx + 1) * np.array(item[feature])