src/transformers/models/blip_2/modeling_blip_2.py/Blip2ForConditionalGeneration/_tie_weights
class Blip2ForConditionalGeneration:    def _tie_weights(self):
        if not self.config.use_decoder_only_language_model:
            self.language_model.encoder.embed_tokens = self.language_model.shared
            self.language_model.decoder.embed_tokens = self.language_model.shared