🚨 rm already deprecated pad_to_max_length arg (#37617)
* rm already deprecated padding max length * truncate_strategy AS AN ARG is already deprecated for a few years * fix * rm test_padding_to_max_length * rm pad_to_max_length=True in other tests * rm from common * missed fnet
This commit is contained in:
@@ -1074,10 +1074,10 @@ class TrainerIntegrationDeepSpeed(TrainerIntegrationDeepSpeedWithCustomConfig, T
|
||||
|
||||
def _convert_to_features(example_batch):
|
||||
input_encodings = tokenizer.batch_encode_plus(
|
||||
example_batch["input_text"], pad_to_max_length=True, max_length=512, truncation=True
|
||||
example_batch["input_text"], padding="max_length", max_length=512, truncation=True
|
||||
)
|
||||
target_encodings = tokenizer.batch_encode_plus(
|
||||
example_batch["target_text"], pad_to_max_length=True, max_length=16, truncation=True
|
||||
example_batch["target_text"], padding="max_length", max_length=16, truncation=True
|
||||
)
|
||||
|
||||
encodings = {
|
||||
|
||||
Reference in New Issue
Block a user