src/transformers/models/vit_hybrid/modeling_vit_hybrid.py/ViTHybridForImageClassification/__init__
class ViTHybridForImageClassification:    def __init__(self, config: ViTHybridConfig) -> None:
        super().__init__(config)

        self.num_labels = config.num_labels
        self.vit = ViTHybridModel(config, add_pooling_layer=False)

        # Classifier head
        self.classifier = nn.Linear(config.hidden_size, config.num_labels) if config.num_labels > 0 else nn.Identity()

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