



'''simple docstring'''





import logging

from transformers import PretrainedConfig


__a  			=						logging.getLogger(__name__)


__a  			=						{
    "bertabs-finetuned-cnndm": "https://huggingface.co/remi/bertabs-finetuned-cnndm-extractive-abstractive-summarization/resolve/main/config.json",
}







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







    lowercase   =						"bertabs"




    def __init__(       self   :	int					,	snake_case_   :	Optional[int]=30_522					,	snake_case_   :	Tuple=512					,	snake_case_   :	Union[str, Any]=6					,	snake_case_   :	str=512					,	snake_case_   :	List[Any]=8					,	snake_case_   :	List[str]=512					,	snake_case_   :	Union[str, Any]=0.2					,	snake_case_   :	Union[str, Any]=6					,	snake_case_   :	List[str]=768					,	snake_case_   :	Optional[int]=8					,	snake_case_   :	int=2_048					,	snake_case_   :	List[str]=0.2					,	**snake_case_   :	str					,	):
          super().__init__(**snake_case_		)

          snake_case__    :       int       		= vocab_size
          snake_case__    :       Tuple       		= max_pos

          snake_case__    :       Union[str, Any]       		= enc_layers
          snake_case__    :       Optional[int]       		= enc_hidden_size
          snake_case__    :       List[Any]       		= enc_heads
          snake_case__    :       List[Any]       		= enc_ff_size
          snake_case__    :       Optional[Any]       		= enc_dropout

          snake_case__    :       Optional[int]       		= dec_layers
          snake_case__    :       Tuple       		= dec_hidden_size
          snake_case__    :       str       		= dec_heads
          snake_case__    :       Optional[Any]       		= dec_ff_size
          snake_case__    :       Union[str, Any]       		= dec_dropout





'''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


__a  			=						"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)
