src/transformers/integrations/integration_utils.py/NeptuneCallback/_log_model_parameters
class NeptuneCallback:    def _log_model_parameters(self, model):
        from neptune.utils import stringify_unsupported

        if model and hasattr(model, "config") and model.config is not None:
            self._metadata_namespace[NeptuneCallback.model_parameters_key] = stringify_unsupported(
                model.config.to_dict()
            )