






"""simple docstring"""


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


_UpperCamelCase       :					List[str]									=		logging.get_logger(__name__)

_UpperCamelCase       :					Optional[int]									=		{
    'studio-ousia/luke-base': 'https://huggingface.co/studio-ousia/luke-base/resolve/main/config.json',
    'studio-ousia/luke-large': 'https://huggingface.co/studio-ousia/luke-large/resolve/main/config.json',
}






class 		snake_case						(						UpperCAmelCase ):
    __magic_name__					  =  '''luke'''





    def __init__(							self			:      Optional[int]       ,	A			:      List[str]=5_0_2_6_7       ,	A			:      List[str]=5_0_0_0_0_0       ,	A			:      Any=7_6_8       ,	A			:      List[Any]=2_5_6       ,	A			:      Any=1_2       ,	A			:      Dict=1_2       ,	A			:      Any=3_0_7_2       ,	A			:      int="gelu"       ,	A			:      Optional[int]=0.1       ,	A			:      Dict=0.1       ,	A			:      Union[str, Any]=5_1_2       ,	A			:      List[str]=2       ,	A			:      Any=0.02       ,	A			:      List[str]=1E-12       ,	A			:      Union[str, Any]=True       ,	A			:      int=None       ,	A			:      Optional[Any]=1       ,	A			:      Optional[Any]=0       ,	A			:      List[str]=2       ,	**A			:      int       ,	):


      '''simple docstring'''




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

      a  :    List[str]       =     vocab_size
      a  :    List[str]       =     entity_vocab_size
      a  :    int       =     hidden_size
      a  :    Optional[Any]       =     entity_emb_size
      a  :    List[str]       =     num_hidden_layers
      a  :    Union[str, Any]       =     num_attention_heads
      a  :    Optional[int]       =     hidden_act
      a  :    Optional[Any]       =     intermediate_size
      a  :    List[str]       =     hidden_dropout_prob
      a  :    str       =     attention_probs_dropout_prob
      a  :    Optional[int]       =     max_position_embeddings
      a  :    str       =     type_vocab_size
      a  :    List[Any]       =     initializer_range
      a  :    str       =     layer_norm_eps
      a  :    Optional[int]       =     use_entity_aware_attention
      a  :    Tuple       =     classifier_dropout












"""simple docstring"""


# coding=utf-8
# Copyright 2023 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 platform
import sys


_UpperCamelCase       :					int									=		'3'

print('Python version:', sys.version)

print('OS platform:', platform.platform())
print('OS architecture:', platform.machine())

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())
except ImportError:
   print('Torch version:', None)

try:
   import transformers

   print('transformers version:', transformers.__version__)
except ImportError:
   print('transformers version:', None)




