def _initialize_weights(self, module):
        """
        Initialize the weights if they are not already initialized.
        """
        if getattr(module, "_is_hf_initialized", False):
            return
        self._init_weights(module)
        module._is_hf_initialized = True

        Initialize the weights if they are not already initialized.
        
dpkd/transformers/src/transformers/modeling_utils.py