Unverified Commit e150c4e2 authored by Kaiyu Yang's avatar Kaiyu Yang Committed by GitHub
Browse files

Fix the error message in run_t5_mlm_flax.py (#19282)

parent e3f028f3
...@@ -349,7 +349,7 @@ class FlaxDataCollatorForT5MLM: ...@@ -349,7 +349,7 @@ class FlaxDataCollatorForT5MLM:
if batch["input_ids"].shape[-1] != self.input_length: if batch["input_ids"].shape[-1] != self.input_length:
raise ValueError( raise ValueError(
f"`input_ids` are incorrectly preprocessed. `input_ids` length is {batch['input_ids'].shape[-1]}, but" f"`input_ids` are incorrectly preprocessed. `input_ids` length is {batch['input_ids'].shape[-1]}, but"
f" should be {self.target_length}." f" should be {self.input_length}."
) )
if batch["labels"].shape[-1] != self.target_length: if batch["labels"].shape[-1] != self.target_length:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment