src/transformers/configuration_utils.py
def to_dict(self) -> Dict[str, Any]:
        """
        Serializes this instance to a Python dictionary.

        Returns:
            :obj:`Dict[str, Any]`: Dictionary of all the attributes that make up this configuration instance.
        """
        output = copy.deepcopy(self.__dict__)
        if hasattr(self.__class__, "model_type"):
            output["model_type"] = self.__class__.model_type

        # Transformers version when serializing the model
        output["transformers_version"] = __version__

        return output

        Serializes this instance to a Python dictionary.

        Returns:
            :obj:`Dict[str, Any]`: Dictionary of all the attributes that make up this configuration instance.
        
Serializes this instance to a Python dictionary.
Serializes this instance to a Python dictionary .
def to_dict(self) -> Dict[str, Any]:
        output = copy.deepcopy(self.__dict__)
        if hasattr(self.__class__, "model_type"):
            output["model_type"] = self.__class__.model_type
        output["transformers_version"] = __version__
        return output
def to_dict ( self ) -> Dict [ str , Any ] : output = copy . deepcopy ( self . __dict__ ) if hasattr ( self . __class__ , "model_type" ) : output [ "model_type" ] = self . __class__ . model_type output [ "transformers_version" ] = __version__ return output
Serializes this instance to a Python dictionary.
Serializes this instance to a Python dictionary .
"""
        Serializes this instance to a Python dictionary.

        Returns:
            :obj:`Dict[str, Any]`: Dictionary of all the attributes that make up this configuration instance.
        """ # Transformers version when serializing the model
:obj:`Dict[str, Any]`: Dictionary of all the attributes that make up this configuration instance.
: obj : ` Dict [ str Any ] ` : Dictionary of all the attributes that make up this configuration instance .
self