Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not warn about unexpected decoder weights when loading T5EncoderMo…
…del and LongT5EncoderModel (huggingface#26211) Ignore decoder weights when using T5EncoderModel and LongT5EncoderModel Both T5EncoderModel and LongT5EncoderModel do not have any decoder layers, so loading a pretrained model checkpoint such as t5-small will give warnings about keys found in the model checkpoint that are not in the model itself. To prevent this log warning, r"decoder" has been added to _keys_to_ignore_on_load_unexpected for both T5EncoderModel and LongT5EncoderModel
- Loading branch information