Skip to content

Commit ae24e4e

Browse files
committed
Converting sample labels to list
Signed-off-by: romitjain <[email protected]>
1 parent d451073 commit ae24e4e

File tree

1 file changed

+1
-1
lines changed
  • plugins/online-data-mixing/src/fms_acceleration_odm/odm

1 file changed

+1
-1
lines changed

plugins/online-data-mixing/src/fms_acceleration_odm/odm/dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def __next__(self):
243243
else torch.ones_like(sample["input_ids"][0])
244244
),
245245
"labels": (
246-
sample["labels"][0]
246+
sample["labels"][0].tolist()
247247
if "labels" in sample
248248
else sample["input_ids"][0]
249249
),

0 commit comments

Comments
 (0)