    def get_text_encoder(self):
        """get text encoder, used for text and cross-modal encoding"""
        encoder = self.text_encoder
        return encoder.bert if hasattr(encoder, "bert") else encoder
get text encoder, used for text and cross-modal encoding
videomamba/video_mm/models/umt_videomamba.py