diff --git a/examples/flax/language-modeling/run_t5_mlm_flax.py b/examples/flax/language-modeling/run_t5_mlm_flax.py index c9d748de3d5c..fd988890d02c 100755 --- a/examples/flax/language-modeling/run_t5_mlm_flax.py +++ b/examples/flax/language-modeling/run_t5_mlm_flax.py @@ -349,7 +349,7 @@ def __call__(self, examples: List[Dict[str, np.ndarray]]) -> BatchEncoding: if batch["input_ids"].shape[-1] != self.input_length: raise ValueError( 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: