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


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

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







class        lowercase	(      SCREAMING_SNAKE_CASE__	):
							lowercase_ : int       ='''biogpt'''




							def __init__(       self     ,A__=4_2_3_8_4     ,A__=1_0_2_4     ,A__=2_4     ,A__=1_6     ,A__=4_0_9_6     ,A__="gelu"     ,A__=0.1     ,A__=0.1     ,A__=1_0_2_4     ,A__=0.02     ,A__=1E-12     ,A__=True     ,A__=True     ,A__=0.0     ,A__=0.0     ,A__=1     ,A__=0     ,A__=2     ,**A__     ,):
												lowercase					=		vocab_size
												lowercase					=		max_position_embeddings
												lowercase					=		hidden_size
												lowercase					=		num_hidden_layers
												lowercase					=		num_attention_heads
												lowercase					=		intermediate_size
												lowercase					=		hidden_act
												lowercase					=		hidden_dropout_prob
												lowercase					=		attention_probs_dropout_prob
												lowercase					=		initializer_range
												lowercase					=		layer_norm_eps
												lowercase					=		scale_embedding
												lowercase					=		use_cache
												lowercase					=		layerdrop
												lowercase					=		activation_dropout
												super().__init__(pad_token_id=A__     ,bos_token_id=A__     ,eos_token_id=A__     ,**A__)



from __future__ import annotations

from decimal import Decimal
from math import *  # noqa: F403

from sympy import diff



def  UpperCamelCase					(							lowerCAmelCase__				,    lowerCAmelCase__				,    lowerCAmelCase__ = 10**-10	):
					'''simple docstring'''
					lowercase					=		a
					while True:
										lowercase					=		Decimal(lowerCAmelCase__	) - (
										    Decimal(eval(lowerCAmelCase__	)	) / Decimal(eval(str(diff(lowerCAmelCase__	)	)	)	)  # noqa: S307
										)
										# This number dictates the accuracy of the answer
										if abs(eval(lowerCAmelCase__	)	) < precision:  # noqa: S307
															return float(lowerCAmelCase__	)


# Let's Execute
if __name__ == "__main__":
							# Find root of trigonometric function
							# Find value of pi
							print(F'The root of sin(x) = 0 is {newton_raphson("sin(x)", 2)}')
							# Find root of polynomial
							print(F'The root of x**2 - 5*x + 2 = 0 is {newton_raphson("x**2 - 5*x + 2", 0.4)}')
							# Find Square Root of 5
							print(F'The root of log(x) - 1 = 0 is {newton_raphson("log(x) - 1", 2)}')
							# Exponential Roots
							print(F'The root of exp(x) - 1 = 0 is {newton_raphson("exp(x) - 1", 0)}')




