Upload loaders.py with huggingface_hub
Browse files3 unmodified lines45678910109 unmodified lines12012112212312412512626 unmodified lines1531541551561571581593 unmodified lines==============================================================Unitxt is all about readily preparing of any given data source for feeding into any given language model, and then,postprocessing the model's output, preparing it for any given evaluator.Through that journey, the data advances in the form of Unitxt Multistream, undergoing a sequential applicationof various off the shelf operators (i.e, picked from Unitxt catalog), or operators easily implemented by inheriting.109 unmodified linesexcept ValueError as e:if "trust_remote_code" in str(e):raise ValueError(f"{self.__class__.__name__} cannot run remote code from huggingface without setting unitxt.settings.allow_unverified_code=True or by setting environment vairable: UNITXT_ALLOW_UNVERIFIED_CODE.") from eif self.filtering_lambda is not None:26 unmodified linesexcept ValueError as e:if "trust_remote_code" in str(e):raise ValueError(f"{self.__class__.__name__} cannot run remote code from huggingface without setting unitxt.settings.allow_unverified_code=True or by setting environment vairable: UNITXT_ALLOW_UNVERIFIED_CODE.") from eif self.filtering_lambda is not None:3 unmodified lines45678910109 unmodified lines12012112212312412512626 unmodified lines1531541551561571581593 unmodified lines==============================================================Unitxt is all about readily preparing of any given data source for feeding into any given language model, and then,post-processing the model's output, preparing it for any given evaluator.Through that journey, the data advances in the form of Unitxt Multistream, undergoing a sequential applicationof various off the shelf operators (i.e, picked from Unitxt catalog), or operators easily implemented by inheriting.109 unmodified linesexcept ValueError as e:if "trust_remote_code" in str(e):raise ValueError(f"{self.__class__.__name__} cannot run remote code from huggingface without setting unitxt.settings.allow_unverified_code=True or by setting environment variable: UNITXT_ALLOW_UNVERIFIED_CODE.") from eif self.filtering_lambda is not None:26 unmodified linesexcept ValueError as e:if "trust_remote_code" in str(e):raise ValueError(f"{self.__class__.__name__} cannot run remote code from huggingface without setting unitxt.settings.allow_unverified_code=True or by setting environment variable: UNITXT_ALLOW_UNVERIFIED_CODE.") from eif self.filtering_lambda is not None:
loaders.py+3-3