src/transformers/models/blenderbot/modeling_tf_blenderbot.py/TFBlenderbotForConditionalGeneration/from_pretrained
class TFBlenderbotForConditionalGeneration:    def from_pretrained(cls, pretrained_model_name_or_path: Optional[Union[str, os.PathLike]], *model_args, **kwargs):
        if pretrained_model_name_or_path == "facebook/blenderbot-90M":
            from ..blenderbot_small import TFBlenderbotSmallForConditionalGeneration

            warnings.warn(
                "The checkpoint `facebook/blenderbot-90M` is deprecated. In the future, please use the identical"
                " checkpoint `facebook/small_blenderbot-90M` with"
                " `TFBlenderbotSmallForConditionalGeneration.from_pretrained('facebook/small_blenderbot-90M')`"
                " instead.",
                FutureWarning,
            )
            return TFBlenderbotSmallForConditionalGeneration.from_pretrained(pretrained_model_name_or_path)

        return super().from_pretrained(pretrained_model_name_or_path, *model_args, **kwargs)