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


A     :	Union[str, Any]    = logging.get_logger(__name__)

A     :	int    = {
    'tiiuae/falcon-40b': 'https://huggingface.co/tiiuae/falcon-40b/resolve/main/config.json',
    'tiiuae/falcon-7b': 'https://huggingface.co/tiiuae/falcon-7b/resolve/main/config.json',
}







class 			__A( a			):
				snake_case_						   =    '''falcon'''
				snake_case_						   =    ['''past_key_values''']




				def __init__(     self		,     _snake_case=65_024		,     _snake_case=4_544		,     _snake_case=32		,     _snake_case=71		,     _snake_case=1E-5		,     _snake_case=0.02		,     _snake_case=True		,     _snake_case=0.0		,     _snake_case=0.0		,     _snake_case=None		,     _snake_case=False		,     _snake_case=False		,     _snake_case=True		,     _snake_case=True		,     _snake_case=False		,     _snake_case=11		,     _snake_case=11		,     **_snake_case		,     )    ->      List[Any]:


								'''simple docstring'''




								__a										=    vocab_size
								# Backward compatibility with n_embed kwarg
								__a										=    kwargs.pop('''n_embed'''		,     _snake_case				)
								__a										=    hidden_size if n_embed is None else n_embed
								__a										=    num_hidden_layers
								__a										=    num_attention_heads
								__a										=    layer_norm_epsilon
								__a										=    initializer_range
								__a										=    use_cache
								__a										=    hidden_dropout
								__a										=    attention_dropout

								__a										=    bos_token_id
								__a										=    eos_token_id
								__a										=    num_attention_heads if num_kv_heads is None else num_kv_heads
								__a										=    alibi
								__a										=    new_decoder_architecture
								__a										=    multi_query  # Ignored when new_decoder_architecture is True
								__a										=    parallel_attn
								__a										=    bias

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




				@property
				def 				SCREAMING_SNAKE_CASE_		(     self				)    ->      Tuple:


								'''simple docstring'''




								return self.hidden_size // self.num_attention_heads




				@property
				def 				SCREAMING_SNAKE_CASE_		(     self				)    ->      List[str]:


								'''simple docstring'''




								return not self.alibi




"""simple docstring"""
import re
def    A_  (			_lowercase	):







						'''simple docstring'''


						snake_case_ :Optional[int]						=			re.compile(
						    r"""^(?:0|94|\+94|0{2}94)""" r"""7(0|1|2|4|5|6|7|8)""" r"""(-| |)""" r"""\d{7}$"""	)

						return bool(re.search(_lowercase,					_lowercase	)	)


if __name__ == "__main__":
						__a      =				"0094702343221"

						print(is_sri_lankan_phone_number(phone))
