





"""simple docstring"""
from ...configuration_utils import PretrainedConfig
from ...utils import logging


__UpperCamelCase     :						Optional[int]						       =  logging.get_logger(__name__)

__UpperCamelCase     :						Dict						       =  {
    '''bigcode/gpt_bigcode-santacoder''': '''https://huggingface.co/bigcode/gpt_bigcode-santacoder/resolve/main/config.json''',
}







class       a							(   a__  ):
 snake_case__             =       '''gpt_bigcode'''
 snake_case__             =       ['''past_key_values''']
 snake_case__             =       {
     '''hidden_size''': '''n_embd''',
     '''max_position_embeddings''': '''n_positions''',
     '''num_attention_heads''': '''n_head''',
     '''num_hidden_layers''': '''n_layer''',
 }



 def __init__(     self				,       _snake_case=5_02_57				,       _snake_case=10_24				,       _snake_case=7_68				,       _snake_case=12				,       _snake_case=12				,       _snake_case=None				,       _snake_case="gelu_pytorch_tanh"				,       _snake_case=0.1				,       _snake_case=0.1				,       _snake_case=0.1				,       _snake_case=1E-5				,       _snake_case=0.02				,       _snake_case=True				,       _snake_case=True				,       _snake_case=5_02_56				,       _snake_case=5_02_56				,       _snake_case=True				,       _snake_case=True				,       _snake_case=True				,       **_snake_case				,       ):







  """simple docstring"""






  lowerCAmelCase    				= vocab_size
  lowerCAmelCase    				= n_positions
  lowerCAmelCase    				= n_embd
  lowerCAmelCase    				= n_layer
  lowerCAmelCase    				= n_head
  lowerCAmelCase    				= n_inner
  lowerCAmelCase    				= activation_function
  lowerCAmelCase    				= resid_pdrop
  lowerCAmelCase    				= embd_pdrop
  lowerCAmelCase    				= attn_pdrop
  lowerCAmelCase    				= layer_norm_epsilon
  lowerCAmelCase    				= initializer_range
  lowerCAmelCase    				= scale_attn_weights
  lowerCAmelCase    				= use_cache
  lowerCAmelCase    				= attention_softmax_in_fpaa
  lowerCAmelCase    				= scale_attention_softmax_in_fpaa
  lowerCAmelCase    				= multi_query

  lowerCAmelCase    				= bos_token_id
  lowerCAmelCase    				= eos_token_id

  super().__init__(bos_token_id=_snake_case				,       eos_token_id=_snake_case				,       **_snake_case     )












"""simple docstring"""
from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_sentencepiece_available,
    is_tokenizers_available,
    is_torch_available,
    is_vision_available,
)


__UpperCamelCase     :						Dict						       =  {'''processing_layoutxlm''': ['''LayoutXLMProcessor''']}

try:
       if not is_sentencepiece_available():
              raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
       pass
else:
       __UpperCamelCase     :						int						       =  ['''LayoutXLMTokenizer''']

try:
       if not is_tokenizers_available():
              raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
       pass
else:
       __UpperCamelCase     :						Any						       =  ['''LayoutXLMTokenizerFast''']

if TYPE_CHECKING:
       from .processing_layoutxlm import LayoutXLMProcessor

       try:
              if not is_sentencepiece_available():
                     raise OptionalDependencyNotAvailable()
       except OptionalDependencyNotAvailable:
              pass
       else:
              from .tokenization_layoutxlm import LayoutXLMTokenizer

       try:
              if not is_tokenizers_available():
                     raise OptionalDependencyNotAvailable()
       except OptionalDependencyNotAvailable:
              pass
       else:
              from .tokenization_layoutxlm_fast import LayoutXLMTokenizerFast

else:
       import sys

       __UpperCamelCase     :						Dict						       =  _LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)





