



'''simple docstring'''





from abc import ABC, abstractmethod
from typing import Optional, Union

from .. import Dataset, DatasetDict, Features, IterableDataset, IterableDatasetDict, NamedSplit
from ..utils.typing import NestedDataStructureLike, PathLike







class        UpperCAmelCase_			(			_a      ):
    """simple docstring"""







    def __init__(       self   :	Tuple					,	snake_case_   :	Optional[NestedDataStructureLike[PathLike]] = None					,	snake_case_   :	Optional[NamedSplit] = None					,	snake_case_   :	Optional[Features] = None					,	snake_case_   :	str = None					,	snake_case_   :	bool = False					,	snake_case_   :	bool = False					,	snake_case_   :	Optional[int] = None					,	**snake_case_   :	int					,	):
          snake_case__    :       Tuple       		= path_or_paths
          snake_case__    :       Optional[int]       		= split if split or isinstance(snake_case_					,	snake_case_		) else """train"""
          snake_case__    :       int       		= features
          snake_case__    :       Optional[int]       		= cache_dir
          snake_case__    :       Optional[int]       		= keep_in_memory
          snake_case__    :       str       		= streaming
          snake_case__    :       List[str]       		= num_proc
          snake_case__    :       Optional[int]       		= kwargs




    @abstractmethod
    def lowerCamelCase			(       self   :	List[Any]		):
          pass







class        UpperCAmelCase_			(			_a      ):
    """simple docstring"""







    def __init__(       self   :	Tuple					,	snake_case_   :	Optional[Features] = None					,	snake_case_   :	str = None					,	snake_case_   :	bool = False					,	snake_case_   :	bool = False					,	snake_case_   :	Optional[int] = None					,	**snake_case_   :	str					,	):
          snake_case__    :       Tuple       		= features
          snake_case__    :       Tuple       		= cache_dir
          snake_case__    :       Optional[int]       		= keep_in_memory
          snake_case__    :       Optional[int]       		= streaming
          snake_case__    :       int       		= num_proc
          snake_case__    :       Union[str, Any]       		= kwargs




    @abstractmethod
    def lowerCamelCase			(       self   :	Tuple		):
          pass





'''simple docstring'''





from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


__a  			=						{
    "configuration_bigbird_pegasus": [
        "BIGBIRD_PEGASUS_PRETRAINED_CONFIG_ARCHIVE_MAP",
        "BigBirdPegasusConfig",
        "BigBirdPegasusOnnxConfig",
    ],
}

try:
       if not is_torch_available():
              raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
       pass
else:
       __a  			=						[
           "BIGBIRD_PEGASUS_PRETRAINED_MODEL_ARCHIVE_LIST",
           "BigBirdPegasusForCausalLM",
           "BigBirdPegasusForConditionalGeneration",
           "BigBirdPegasusForQuestionAnswering",
           "BigBirdPegasusForSequenceClassification",
           "BigBirdPegasusModel",
           "BigBirdPegasusPreTrainedModel",
       ]


if TYPE_CHECKING:
       from .configuration_bigbird_pegasus import (
           BIGBIRD_PEGASUS_PRETRAINED_CONFIG_ARCHIVE_MAP,
           BigBirdPegasusConfig,
           BigBirdPegasusOnnxConfig,
       )

       try:
              if not is_torch_available():
                     raise OptionalDependencyNotAvailable()
       except OptionalDependencyNotAvailable:
              pass
       else:
              from .modeling_bigbird_pegasus import (
                  BIGBIRD_PEGASUS_PRETRAINED_MODEL_ARCHIVE_LIST,
                  BigBirdPegasusForCausalLM,
                  BigBirdPegasusForConditionalGeneration,
                  BigBirdPegasusForQuestionAnswering,
                  BigBirdPegasusForSequenceClassification,
                  BigBirdPegasusModel,
                  BigBirdPegasusPreTrainedModel,
              )


else:
       import sys

       __a  			=						_LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)
