

from collections import OrderedDict
from typing import Mapping

from ...configuration_utils import PretrainedConfig
from ...onnx import OnnxConfig
from ...utils import logging


__UpperCAmelCase								=			logging.get_logger(__name__)

__UpperCAmelCase								=			{
    """facebook/data2vec-text-base""": """https://huggingface.co/data2vec/resolve/main/config.json""",
}



class SCREAMING_SNAKE_CASE     (  a_			):
  """simple docstring"""






  lowerCamelCase   :      List[str]										="data2vec-text"







  def __init__(      self			:   Dict	,							lowerCAmelCase			:   Union[str, Any]=3_05_22	,							lowerCAmelCase			:   List[Any]=7_68	,							lowerCAmelCase			:   str=12	,							lowerCAmelCase			:   Optional[int]=12	,							lowerCAmelCase			:   Dict=30_72	,							lowerCAmelCase			:   List[str]="gelu"	,							lowerCAmelCase			:   str=0.1	,							lowerCAmelCase			:   Dict=0.1	,							lowerCAmelCase			:   Dict=5_12	,							lowerCAmelCase			:   Optional[int]=2	,							lowerCAmelCase			:   Tuple=0.02	,							lowerCAmelCase			:   int=1e-12	,							lowerCAmelCase			:   List[str]=1	,							lowerCAmelCase			:   int=0	,							lowerCAmelCase			:   Optional[int]=2	,							lowerCAmelCase			:   List[str]="absolute"	,							lowerCAmelCase			:   str=True	,							lowerCAmelCase			:   List[str]=None	,							**lowerCAmelCase			:   Union[str, Any]	,							)							->     Any:






     """simple docstring"""







     super().__init__(pad_token_id=lowerCAmelCase	,							bos_token_id=lowerCAmelCase	,							eos_token_id=lowerCAmelCase	,							**lowerCAmelCase   )

     __lowerCAmelCase  :      str    =						vocab_size
     __lowerCAmelCase  :      List[str]    =						hidden_size
     __lowerCAmelCase  :      List[Any]    =						num_hidden_layers
     __lowerCAmelCase  :      str    =						num_attention_heads
     __lowerCAmelCase  :      List[str]    =						hidden_act
     __lowerCAmelCase  :      Tuple    =						intermediate_size
     __lowerCAmelCase  :      Optional[int]    =						hidden_dropout_prob
     __lowerCAmelCase  :      List[str]    =						attention_probs_dropout_prob
     __lowerCAmelCase  :      List[Any]    =						max_position_embeddings
     __lowerCAmelCase  :      Tuple    =						type_vocab_size
     __lowerCAmelCase  :      List[str]    =						initializer_range
     __lowerCAmelCase  :      Dict    =						layer_norm_eps
     __lowerCAmelCase  :      Dict    =						position_embedding_type
     __lowerCAmelCase  :      Union[str, Any]    =						use_cache
     __lowerCAmelCase  :      List[str]    =						classifier_dropout






class SCREAMING_SNAKE_CASE     (  a_			):
  """simple docstring"""






  @property
  def 	SCREAMING_SNAKE_CASE   (      self			:   Dict   )							->     Mapping[str, Mapping[int, str]]:






     """simple docstring"""







     if self.task == "multiple-choice":
        __lowerCAmelCase  :      int    =						{0: """batch""", 1: """choice""", 2: """sequence"""}
     else:
        __lowerCAmelCase  :      Tuple    =						{0: """batch""", 1: """sequence"""}
     return OrderedDict(
         [
             ("""input_ids""", dynamic_axis),
             ("""attention_mask""", dynamic_axis),
         ]   )





# Lint as: python3
# pylint: enable=line-too-long
# pylint: disable=g-import-not-at-top,g-bad-import-order,wrong-import-position

__UpperCAmelCase								=			"""2.13.1"""

import platform

import pyarrow
from packaging import version


if version.parse(platform.python_version()) < version.parse("""3.7"""):
   raise ImportWarning(
       """To use `datasets`, Python>=3.7 is required, and the current version of Python doesn't match this condition."""
   )

if version.parse(pyarrow.__version__).major < 8:
   raise ImportWarning(
       """To use `datasets`, the module `pyarrow>=8.0.0` is required, and the current version of `pyarrow` doesn't match this condition.\n"""
       """If you are running this in a Google Colab, you should probably just restart the runtime to use the right version of `pyarrow`."""
   )

del platform
del pyarrow
del version

from .arrow_dataset import Dataset
from .arrow_reader import ReadInstruction
from .builder import ArrowBasedBuilder, BeamBasedBuilder, BuilderConfig, DatasetBuilder, GeneratorBasedBuilder
from .combine import concatenate_datasets, interleave_datasets
from .dataset_dict import DatasetDict, IterableDatasetDict
from .download import *
from .features import *
from .fingerprint import disable_caching, enable_caching, is_caching_enabled, set_caching_enabled
from .info import DatasetInfo, MetricInfo
from .inspect import (
    get_dataset_config_info,
    get_dataset_config_names,
    get_dataset_infos,
    get_dataset_split_names,
    inspect_dataset,
    inspect_metric,
    list_datasets,
    list_metrics,
)
from .iterable_dataset import IterableDataset
from .load import load_dataset, load_dataset_builder, load_from_disk, load_metric
from .metric import Metric
from .splits import (
    NamedSplit,
    NamedSplitAll,
    Split,
    SplitBase,
    SplitDict,
    SplitGenerator,
    SplitInfo,
    SubSplitInfo,
    percent,
)
from .tasks import *
from .utils import *
from .utils import logging


# deprecated modules
from datasets import arrow_dataset as _arrow_dataset  # isort:skip
from datasets import utils as _utils  # isort:skip
from datasets.utils import download_manager as _deprecated_download_manager  # isort:skip

__UpperCAmelCase								=			concatenate_datasets
__UpperCAmelCase								=			DownloadConfig
__UpperCAmelCase								=			DownloadManager
__UpperCAmelCase								=			DownloadMode
__UpperCAmelCase								=			DownloadConfig
__UpperCAmelCase								=			DownloadMode
__UpperCAmelCase								=			DownloadManager

del _arrow_dataset, _utils, _deprecated_download_manager


