


'''simple docstring'''



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


_lowercase    :    List[Any]			     =  logging.get_logger(__name__)

_lowercase    :    List[Any]			     =  {
    """alibaba-damo/mgp-str-base""": """https://huggingface.co/alibaba-damo/mgp-str-base/resolve/main/config.json""",
}






class  UpperCamelCase__(     lowerCAmelCase ):
				__magic_name__       :   Optional[Any]							= "mgp-str"




				def __init__(	self    :				int   ,					lowerCAmelCase    :				int=[32, 128]   ,					lowerCAmelCase    :				str=4   ,					lowerCAmelCase    :				Optional[Any]=3   ,					lowerCAmelCase    :				str=27   ,					lowerCAmelCase    :				Dict=38   ,					lowerCAmelCase    :				str=50257   ,					lowerCAmelCase    :				List[Any]=30522   ,					lowerCAmelCase    :				Union[str, Any]=768   ,					lowerCAmelCase    :				Optional[Any]=12   ,					lowerCAmelCase    :				str=12   ,					lowerCAmelCase    :				Optional[Any]=4.0   ,					lowerCAmelCase    :				Tuple=True   ,					lowerCAmelCase    :				Optional[int]=False   ,					lowerCAmelCase    :				Union[str, Any]=1E-5   ,					lowerCAmelCase    :				str=0.0   ,					lowerCAmelCase    :				Union[str, Any]=0.0   ,					lowerCAmelCase    :				int=0.0   ,					lowerCAmelCase    :				Optional[int]=False   ,					lowerCAmelCase    :				Union[str, Any]=0.02   ,					**lowerCAmelCase    :				int   ,					)->  Any:

										"""simple docstring"""




										super().__init__(**lowerCAmelCase   )

										UpperCAmelCase         =			image_size
										UpperCAmelCase         =			patch_size
										UpperCAmelCase         =			num_channels
										UpperCAmelCase         =			max_token_length
										UpperCAmelCase         =			num_character_labels
										UpperCAmelCase         =			num_bpe_labels
										UpperCAmelCase         =			num_wordpiece_labels
										UpperCAmelCase         =			hidden_size
										UpperCAmelCase         =			num_hidden_layers
										UpperCAmelCase         =			num_attention_heads
										UpperCAmelCase         =			mlp_ratio
										UpperCAmelCase         =			distilled
										UpperCAmelCase         =			layer_norm_eps
										UpperCAmelCase         =			drop_rate
										UpperCAmelCase         =			qkv_bias
										UpperCAmelCase         =			attn_drop_rate
										UpperCAmelCase         =			drop_path_rate
										UpperCAmelCase         =			output_aa_attentions
										UpperCAmelCase         =			initializer_range









'''simple docstring'''



# coding=utf-8
# Copyright 2020 The HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# this script dumps information about the environment

import os
import sys

import transformers


_lowercase    :    Union[str, Any]			     =  """3"""

print("""Python version:""", sys.version)
print("""transformers version:""", transformers.__version__)

try:
	import torch

	print("""Torch version:""", torch.__version__)
	print("""Cuda available:""", torch.cuda.is_available())
	print("""Cuda version:""", torch.version.cuda)
	print("""CuDNN version:""", torch.backends.cudnn.version())
	print("""Number of GPUs available:""", torch.cuda.device_count())
	print("""NCCL version:""", torch.cuda.nccl.version())
except ImportError:
	print("""Torch version:""", None)

try:
	import deepspeed

	print("""DeepSpeed version:""", deepspeed.__version__)
except ImportError:
	print("""DeepSpeed version:""", None)

try:
	import tensorflow as tf

	print("""TensorFlow version:""", tf.__version__)
	print("""TF GPUs available:""", bool(tf.config.list_physical_devices("""GPU""")))
	print("""Number of TF GPUs available:""", len(tf.config.list_physical_devices("""GPU""")))
except ImportError:
	print("""TensorFlow version:""", None)





