fix: The 'warn' method is deprecated (#11105)

* The 'warn' method is deprecated

* fix test
This commit is contained in:
Stas Bekman
2021-04-07 06:20:06 -07:00
committed by GitHub
parent 247bed3857
commit c9035e4537
52 changed files with 68 additions and 66 deletions

View File

@@ -319,7 +319,7 @@ def main():
text_column_name = "text" if "text" in column_names else column_names[0]
if data_args.max_seq_length > tokenizer.model_max_length:
logger.warn(
logger.warning(
f"The max_seq_length passed ({data_args.max_seq_length}) is larger than the maximum length for the"
f"model ({tokenizer.model_max_length}). Using max_seq_length={tokenizer.model_max_length}."
)