


"""simple docstring"""


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


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

A  :     str    					=    {
    "microsoft/biogpt": "https://huggingface.co/microsoft/biogpt/resolve/main/config.json",
    # See all BioGPT models at https://huggingface.co/models?filter=biogpt
}
class 						_UpperCamelCase						(     lowerCAmelCase__	):
							'''simple docstring'''







							__UpperCAmelCase		:					List[str]          ="""biogpt"""

							def __init__(  self					,     __a=4_23_84					,     __a=10_24					,     __a=24					,     __a=16					,     __a=40_96					,     __a="gelu"					,     __a=0.1					,     __a=0.1					,     __a=10_24					,     __a=0.0_2					,     __a=1e-1_2					,     __a=True					,     __a=True					,     __a=0.0					,     __a=0.0					,     __a=1					,     __a=0					,     __a=2					,     **__a					,     ):
										__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=__a					,     bos_token_id=__a					,     eos_token_id=__a					,     **__a			)








"""simple docstring"""


from itertools import product


def _lowerCamelCase			(	_UpperCamelCase					,				_UpperCamelCase   ):

			'''simple docstring'''




			__lowerCAmelCase       					=    sides_number
			__lowerCAmelCase       					=    max_face_number * dice_number
			__lowerCAmelCase       					=    [0] * (max_total + 1)

			__lowerCAmelCase       					=    1
			__lowerCAmelCase       					=    range(_UpperCamelCase					,				max_face_number + 1   )
			for dice_numbers in product(_UpperCamelCase					,				repeat=_UpperCamelCase   ):
						__lowerCAmelCase       					=    sum(_UpperCamelCase   )
						totals_frequencies[total] += 1

			return totals_frequencies


def _lowerCamelCase			(	):

			'''simple docstring'''




			__lowerCAmelCase       					=    total_frequency_distribution(
			    sides_number=4					,				dice_number=9   )
			__lowerCAmelCase       					=    total_frequency_distribution(
			    sides_number=6					,				dice_number=6   )

			__lowerCAmelCase       					=    0
			__lowerCAmelCase       					=    9
			__lowerCAmelCase       					=    4 * 9
			__lowerCAmelCase       					=    6
			for peter_total in range(_UpperCamelCase					,				max_peter_total + 1   ):
						peter_wins_count += peter_totals_frequencies[peter_total] * sum(
						    colin_totals_frequencies[min_colin_total:peter_total]   )

			__lowerCAmelCase       					=    (4**9) * (6**6)
			__lowerCAmelCase       					=    peter_wins_count / total_games_number

			__lowerCAmelCase       					=    round(_UpperCamelCase					,				ndigits=7   )

			return rounded_peter_win_probability


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




