Skip to content

Commit 84eacbc

Browse files
committed
fix test
Signed-off-by: Ananth Subramaniam <[email protected]>
1 parent 86242b2 commit 84eacbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit_tests/data/datasets/test_sft.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def test_collate_fn(self, ensure_test_data):
278278
"answer_ids": np.array([104, 105]),
279279
"metadata": {"id": "ex1"},
280280
"seq_boundaries": (0, 3),
281-
"mask": np.array([0, 0, 0, 1, 1]),
281+
"loss_mask": np.array([0, 0, 0, 1, 1]), # Changed from "mask" to "loss_mask"
282282
"metadata": {},
283283
"token_count": 5,
284284
},
@@ -290,7 +290,7 @@ def test_collate_fn(self, ensure_test_data):
290290
"answer_ids": np.array([203, 204]),
291291
"metadata": {"id": "ex2"},
292292
"seq_boundaries": (0, 2),
293-
"mask": np.array([0, 0, 1, 1]),
293+
"loss_mask": np.array([0, 0, 1, 1]), # Changed from "mask" to "loss_mask"
294294
"metadata": {},
295295
"token_count": 4,
296296
},

0 commit comments

Comments
 (0)