
'''simple docstring'''

from ...configuration_utils import PretrainedConfig
from ...utils import logging


UpperCamelCase_            =    logging.get_logger(__name__)

UpperCamelCase_            =    {
    """openbmb/cpm-ant-10b""": """https://huggingface.co/openbmb/cpm-ant-10b/blob/main/config.json"""
    # See all CPMAnt models at https://huggingface.co/models?filter=cpmant
}


class 					a_					(_a      ):
       __lowerCAmelCase      :			List[str]      = """cpmant"""




       def __init__(       self				,				snake_case_ = 3_0_7_2_0				,				snake_case_ = 4_0_9_6				,				snake_case_ = 3_2				,				snake_case_ = 1_2_8				,				snake_case_ = 1_0_2_4_0				,				snake_case_ = 4_8				,				snake_case_ = 0.0				,				snake_case_ = 5_1_2				,				snake_case_ = 2_0_4_8				,				snake_case_ = 1E-6				,				snake_case_ = 1.0				,				snake_case_ = 3_2				,				snake_case_ = 3_2				,				snake_case_ = 3_2				,				snake_case_ = True				,				**snake_case_				,				):
         super().__init__(**snake_case_					)
         _lowerCAmelCase    :					int							=   prompt_types
         _lowerCAmelCase    :					Optional[Any]							=   prompt_length
         _lowerCAmelCase    :					Optional[Any]							=   segment_types
         _lowerCAmelCase    :					Dict							=   hidden_size
         _lowerCAmelCase    :					Union[str, Any]							=   num_attention_heads
         _lowerCAmelCase    :					Optional[Any]							=   dim_head
         _lowerCAmelCase    :					str							=   dim_ff
         _lowerCAmelCase    :					Any							=   num_hidden_layers
         _lowerCAmelCase    :					Any							=   position_bias_num_buckets
         _lowerCAmelCase    :					Optional[Any]							=   position_bias_max_distance
         _lowerCAmelCase    :					Optional[Any]							=   dropout_p
         _lowerCAmelCase    :					Tuple							=   eps
         _lowerCAmelCase    :					Dict							=   use_cache
         _lowerCAmelCase    :					List[Any]							=   vocab_size
         _lowerCAmelCase    :					Union[str, Any]							=   init_std




'''simple docstring'''

import platform
from argparse import ArgumentParser

import huggingface_hub
import pandas
import pyarrow

from datasets import __version__ as version
from datasets.commands import BaseDatasetsCLICommand


def 		_UpperCAmelCase			(					_lowerCamelCase  :    List[Any]						)      ->  Optional[Any]:
  return EnvironmentCommand()



class 					a_					(_a      ):




       @staticmethod
       def 							__UpperCamelCase    (       snake_case_					):
         _lowerCAmelCase    :					Optional[Any]							=   parser.add_parser("""env"""				,				help="""Print relevant system environment info."""					)
         download_parser.set_defaults(func=snake_case_					)




       def 							__UpperCamelCase    (       self					):
         _lowerCAmelCase    :					Optional[Any]							=   {
             """`datasets` version""": version,
             """Platform""": platform.platform(),
             """Python version""": platform.python_version(),
             """Huggingface_hub version""": huggingface_hub.__version__,
             """PyArrow version""": pyarrow.__version__,
             """Pandas version""": pandas.__version__,
         }

         print("""\nCopy-and-paste the text below in your GitHub issue.\n"""					)
         print(self.format_dict(snake_case_					)					)

         return info







       @staticmethod
       def 							__UpperCamelCase    (       snake_case_					):
         return "\n".join([f'- {prop}: {val}' for prop, val in d.items()]					) + "\n"


