




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


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

_UpperCAmelCase		:  Dict	=   {
    "unc-nlp/lxmert-base-uncased": "https://huggingface.co/unc-nlp/lxmert-base-uncased/resolve/main/config.json",
}




class       __lowerCAmelCase				(							lowerCAmelCase):
       _a           =  '''lxmert'''
       _a           =  {}






       def __init__(      self:    List[Any]				,    _lowerCAmelCase:    str=3_05_22				,    _lowerCAmelCase:    Tuple=7_68				,    _lowerCAmelCase:    Optional[Any]=12				,    _lowerCAmelCase:    Tuple=95_00				,    _lowerCAmelCase:    Union[str, Any]=16_00				,    _lowerCAmelCase:    Tuple=4_00				,    _lowerCAmelCase:    int=30_72				,    _lowerCAmelCase:    Optional[Any]="gelu"				,    _lowerCAmelCase:    str=0.1				,    _lowerCAmelCase:    Any=0.1				,    _lowerCAmelCase:    Any=5_12				,    _lowerCAmelCase:    Tuple=2				,    _lowerCAmelCase:    List[str]=0.02				,    _lowerCAmelCase:    Any=1e-1_2				,    _lowerCAmelCase:    Tuple=9				,    _lowerCAmelCase:    Dict=5				,    _lowerCAmelCase:    Dict=5				,    _lowerCAmelCase:    Any=20_48				,    _lowerCAmelCase:    Dict=4				,    _lowerCAmelCase:    List[Any]=6.67				,    _lowerCAmelCase:    List[str]=True				,    _lowerCAmelCase:    Union[str, Any]=True				,    _lowerCAmelCase:    Optional[int]=True				,    _lowerCAmelCase:    str=True				,    _lowerCAmelCase:    Tuple=True				,    _lowerCAmelCase:    Any=True				,    _lowerCAmelCase:    Union[str, Any]=True				,    **_lowerCAmelCase:    List[str]				,    ):
         lowercase			:Tuple							=  vocab_size
         lowercase			:Union[str, Any]							=  hidden_size
         lowercase			:List[str]							=  num_attention_heads
         lowercase			:str							=  hidden_act
         lowercase			:Tuple							=  intermediate_size
         lowercase			:str							=  hidden_dropout_prob
         lowercase			:int							=  attention_probs_dropout_prob
         lowercase			:List[str]							=  max_position_embeddings
         lowercase			:Optional[Any]							=  type_vocab_size
         lowercase			:Optional[Any]							=  initializer_range
         lowercase			:Tuple							=  layer_norm_eps
         lowercase			:Tuple							=  num_qa_labels
         lowercase			:int							=  num_object_labels
         lowercase			:Any							=  num_attr_labels
         lowercase			:List[str]							=  l_layers
         lowercase			:Dict							=  x_layers
         lowercase			:Tuple							=  r_layers
         lowercase			:Dict							=  visual_feat_dim
         lowercase			:Optional[Any]							=  visual_pos_dim
         lowercase			:List[Any]							=  visual_loss_normalizer
         lowercase			:Optional[int]							=  task_matched
         lowercase			:str							=  task_mask_lm
         lowercase			:List[str]							=  task_obj_predict
         lowercase			:int							=  task_qa
         lowercase			:Tuple							=  visual_obj_loss
         lowercase			:Any							=  visual_attr_loss
         lowercase			:List[str]							=  visual_feat_loss
         lowercase			:int							=  {"vision": r_layers, "cross_encoder": x_layers, "language": l_layers}
         super().__init__(**_lowerCAmelCase )









import os
from math import logaa



def 					UpperCAmelCase__     (   lowerCamelCase = "base_exp.txt"      ):
  lowercase			:float							=  0
  lowercase			:str							=  0
  for i, line in enumerate(open(os.path.join(os.path.dirname(lowerCamelCase      ),	lowerCamelCase      )      )      ):
    lowercase		,			lowercase			:str							=  list(map(lowerCamelCase,	line.split(","      )      )      )
    if x * logaa(lowerCamelCase      ) > largest:
      lowercase			:Optional[Any]							=  x * logaa(lowerCamelCase      )
      lowercase			:Any							=  i + 1
  return result


if __name__ == "__main__":
     print(solution())



