src/transformers/models/blip_2/modeling_blip_2.py/Blip2Encoder/__init__
class Blip2Encoder:    def __init__(self, config: Blip2Config):
        super().__init__()
        self.config = config
        self.layers = nn.ModuleList([Blip2EncoderLayer(config) for _ in range(config.num_hidden_layers)])
        self.gradient_checkpointing = False