Skip to content

Commit e3a1061

Browse files
committed
minor: update error message
1 parent 5d3ce7f commit e3a1061

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/sft/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def batch_to_device(batch: dict, device: torch.device) -> None:
313313
batch[k] = v.to(device)
314314
else:
315315
raise ValueError(
316-
f"""To use batch_to_device, all elements in the batch must be a dict or Tensor.
316+
f"""To use batch_to_device, all elements in the batch must be a dict, Tensor, or BlockMask with flexattention enabled.
317317
Got key "{k}" with value of type {type(v)}"""
318318
)
319319

0 commit comments

Comments
 (0)