




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


lowerCAmelCase_					    = logging.get_logger(__name__)

lowerCAmelCase_					    = {
    """microsoft/biogpt""": """https://huggingface.co/microsoft/biogpt/resolve/main/config.json""",
    # See all BioGPT models at https://huggingface.co/models?filter=biogpt
}






class  _lowerCAmelCase     (  _lowercase	):
      A__		     =		'biogpt'

      def __init__(   self      ,				__UpperCAmelCase=4_2384      ,				__UpperCAmelCase=1024      ,				__UpperCAmelCase=24      ,				__UpperCAmelCase=16      ,				__UpperCAmelCase=4096      ,				__UpperCAmelCase="gelu"      ,				__UpperCAmelCase=0.1      ,				__UpperCAmelCase=0.1      ,				__UpperCAmelCase=1024      ,				__UpperCAmelCase=0.02      ,				__UpperCAmelCase=1e-12      ,				__UpperCAmelCase=True      ,				__UpperCAmelCase=True      ,				__UpperCAmelCase=0.0      ,				__UpperCAmelCase=0.0      ,				__UpperCAmelCase=1      ,				__UpperCAmelCase=0      ,				__UpperCAmelCase=2      ,				**__UpperCAmelCase      ,				):
        lowerCAmelCase__		       =     vocab_size
        lowerCAmelCase__		       =     max_position_embeddings
        lowerCAmelCase__		       =     hidden_size
        lowerCAmelCase__		       =     num_hidden_layers
        lowerCAmelCase__		       =     num_attention_heads
        lowerCAmelCase__		       =     intermediate_size
        lowerCAmelCase__		       =     hidden_act
        lowerCAmelCase__		       =     hidden_dropout_prob
        lowerCAmelCase__		       =     attention_probs_dropout_prob
        lowerCAmelCase__		       =     initializer_range
        lowerCAmelCase__		       =     layer_norm_eps
        lowerCAmelCase__		       =     scale_embedding
        lowerCAmelCase__		       =     use_cache
        lowerCAmelCase__		       =     layerdrop
        lowerCAmelCase__		       =     activation_dropout
        super().__init__(pad_token_id=__UpperCAmelCase      ,				bos_token_id=__UpperCAmelCase      ,				eos_token_id=__UpperCAmelCase      ,				**__UpperCAmelCase		)







from abc import ABC, abstractmethod
from argparse import ArgumentParser






class  _lowerCAmelCase     (  _lowercase	):

      @staticmethod
      @abstractmethod
      def 	__magic_name__(   __UpperCAmelCase		):
        raise NotImplementedError()







      @abstractmethod
      def 	__magic_name__(   self		):
        raise NotImplementedError()

