





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


__UpperCAmelCase				=      logging.get_logger(__name__)

__UpperCAmelCase				=      {
    'facebook/opt-125m': 'https://huggingface.co/facebook/opt-125m/blob/main/config.json',
    'facebook/opt-350m': 'https://huggingface.co/facebook/opt-350m/blob/main/config.json',
    'facebook/opt-1.3b': 'https://huggingface.co/facebook/opt-1.3b/blob/main/config.json',
    'facebook/opt-2.7b': 'https://huggingface.co/facebook/opt-2.7b/blob/main/config.json',
    'facebook/opt-6.7b': 'https://huggingface.co/facebook/opt-6.7b/blob/main/config.json',
    'facebook/opt-13b': 'https://huggingface.co/facebook/opt-13b/blob/main/config.json',
}

class 		__a							(	__UpperCamelCase      ):
       __snake_case						:   Optional[Any]      =		"""opt"""
       __snake_case						:   Dict      =		["""past_key_values"""]



       def __init__(     self	:   List[str]					,			UpperCAmelCase	:   int=5_02_72					,			UpperCAmelCase	:   Union[str, Any]=7_68					,			UpperCAmelCase	:   Any=12					,			UpperCAmelCase	:   List[Any]=30_72					,			UpperCAmelCase	:   Optional[int]=20_48					,			UpperCAmelCase	:   str=True					,			UpperCAmelCase	:   str=False					,			UpperCAmelCase	:   Optional[Any]=None					,			UpperCAmelCase	:   int=0.1					,			UpperCAmelCase	:   List[Any]=0.0					,			UpperCAmelCase	:   Any=12					,			UpperCAmelCase	:   int="relu"					,			UpperCAmelCase	:   str=0.0					,			UpperCAmelCase	:   Optional[Any]=0.02					,			UpperCAmelCase	:   Optional[int]=True					,			UpperCAmelCase	:   Any=1					,			UpperCAmelCase	:   Any=2					,			UpperCAmelCase	:   Dict=2					,			UpperCAmelCase	:   Union[str, Any]=True					,			UpperCAmelCase	:   Dict=True					,			**UpperCAmelCase	:   str					,			):
           super().__init__(
               pad_token_id=__lowerCamelCase					,			bos_token_id=__lowerCamelCase					,			eos_token_id=__lowerCamelCase					,			**__lowerCamelCase					,			)
           lowerCAmelCase_					:	List[Any]						=   vocab_size
           lowerCAmelCase_					:	Optional[Any]						=   max_position_embeddings
           lowerCAmelCase_					:	List[Any]						=   num_attention_heads
           lowerCAmelCase_					:	str						=   word_embed_proj_dim if word_embed_proj_dim is not None else hidden_size
           lowerCAmelCase_					:	str						=   ffn_dim
           lowerCAmelCase_					:	Optional[Any]						=   hidden_size
           lowerCAmelCase_					:	Optional[int]						=   num_hidden_layers
           lowerCAmelCase_					:	str						=   dropout
           lowerCAmelCase_					:	int						=   attention_dropout
           lowerCAmelCase_					:	Dict						=   activation_function
           lowerCAmelCase_					:	int						=   init_std
           lowerCAmelCase_					:	int						=   layerdrop
           lowerCAmelCase_					:	Union[str, Any]						=   use_cache
           lowerCAmelCase_					:	str						=   do_layer_norm_before
           # We keep these variables at `True` for backward compatibility.
           lowerCAmelCase_					:	str						=   enable_bias
           lowerCAmelCase_					:	Tuple						=   layer_norm_elementwise_affine

           # Note that the only purpose of `_remove_final_layer_norm` is to keep backward compatibility
           # with checkpoints that have been fine-tuned before transformers v4.20.1
           # see https://github.com/facebookresearch/metaseq/pull/164
           lowerCAmelCase_					:	Dict						=   _remove_final_layer_norm









from __future__ import annotations

import math
from itertools import permutations
def 			__UpperCamelCase				(			lowercase__	:       int		)	->      bool:
    '''simple docstring'''





    if 1 < number < 4:
        # 2 and 3 are primes
        return True
    elif number < 2 or number % 2 == 0 or number % 3 == 0:
        # Negatives, 0, 1, all even numbers, all multiples of 3 are not primes
        return False

    # All primes number are in format of 6k +/- 1
    for i in range(5		,    int(math.sqrt(lowercase__		) + 1		)		,    6		):
        if number % i == 0 or number % (i + 2) == 0:
            return False
    return True
def 			__UpperCamelCase				(			lowercase__	:       int = 7		)	->      int:
    '''simple docstring'''





    lowerCAmelCase_					:	str						=   """""".join(str(lowercase__		) for i in range(1		,    n + 1		)		)
    lowerCAmelCase_					:	Any						=   [int("""""".join(lowercase__		)		) for i in permutations(lowercase__		,    lowercase__		)]
    lowerCAmelCase_					:	List[Any]						=   [num for num in perm_list if is_prime(lowercase__		)]
    return max(lowercase__		) if pandigitals else 0


if __name__ == "__main__":
  print(f"""{solution() = }""")


