src/transformers/models/blip_2/modeling_blip_2.py/Blip2QFormerEncoder/__init__
class Blip2QFormerEncoder:    def __init__(self, config):
        super().__init__()
        self.config = config
        self.layer = nn.ModuleList(
            [Blip2QFormerLayer(config, layer_idx) for layer_idx in range(config.num_hidden_layers)]
        )
        self.gradient_checkpointing = False