src/transformers/models/chinese_clip/modeling_chinese_clip.py/ChineseCLIPTextModel/__init__
class ChineseCLIPTextModel:    def __init__(self, config, add_pooling_layer=True):
        super().__init__(config)
        self.config = config

        self.embeddings = ChineseCLIPTextEmbeddings(config)
        self.encoder = ChineseCLIPTextEncoder(config)

        self.pooler = ChineseCLIPTextPooler(config) if add_pooling_layer else None

        # Initialize weights and apply final processing
        self.post_init()