src/transformers/models/ernie/modeling_ernie.py/ErnieForNextSentencePrediction/__init__
class ErnieForNextSentencePrediction:    def __init__(self, config):
        super().__init__(config)

        self.ernie = ErnieModel(config)
        self.cls = ErnieOnlyNSPHead(config)

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