





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


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

__A				:    str       =   {
    "tanreinama/GPTSAN-2.8B-spout_is_uniform": (
        "https://huggingface.co/tanreinama/GPTSAN-2.8B-spout_is_uniform/resolve/main/config.json"
    ),
}

class 	A_       (a_			):
	UpperCAmelCase__					=			'''gptsan-japanese'''
	UpperCAmelCase__					=			[
	    '''past_key_values''',
	]
	UpperCAmelCase__					=			{
	    '''hidden_size''': '''d_model''',
	    '''num_attention_heads''': '''num_heads''',
	    '''num_hidden_layers''': '''num_layers''',
	}
	def __init__(    self							,					_A=3_6_0_0_0							,					_A=1_2_8_0							,					_A=1_0_2_4							,					_A=8_1_9_2							,					_A=4_0_9_6							,					_A=1_2_8							,					_A=1_0							,					_A=0							,					_A=1_6							,					_A=1_6							,					_A=1_2_8							,					_A=0.0							,					_A=1E-5							,					_A=False							,					_A=0.0							,					_A="float32"							,					_A=False							,					_A=False							,					_A=False							,					_A=0.0_02							,					_A=False							,					_A=True							,					_A=3_5_9_9_8							,					_A=3_5_9_9_5							,					_A=3_5_9_9_9							,					**_A							,					):






				'''simple docstring'''







				UpperCAmelCase   		=				vocab_size
				UpperCAmelCase   		=				max_position_embeddings
				UpperCAmelCase   		=				d_model
				UpperCAmelCase   		=				d_ff
				UpperCAmelCase   		=				d_ext
				UpperCAmelCase   		=				d_spout
				UpperCAmelCase   		=				num_switch_layers
				UpperCAmelCase   		=				num_ext_layers
				UpperCAmelCase   		=				num_switch_layers + num_ext_layers
				UpperCAmelCase   		=				num_heads
				UpperCAmelCase   		=				num_experts
				UpperCAmelCase   		=				expert_capacity
				UpperCAmelCase   		=				dropout_rate
				UpperCAmelCase   		=				layer_norm_epsilon
				UpperCAmelCase   		=				router_bias
				UpperCAmelCase   		=				router_jitter_noise
				UpperCAmelCase   		=				router_dtype
				UpperCAmelCase   		=				router_ignore_padding_tokens
				UpperCAmelCase   		=				output_hidden_states
				UpperCAmelCase   		=				output_attentions
				UpperCAmelCase   		=				initializer_factor
				UpperCAmelCase   		=				output_router_logits
				UpperCAmelCase   		=				use_cache

				super().__init__(
				    separator_token_id=_A							,					pad_token_id=_A							,					eos_token_id=_A							,					**_A							,					)










from datetime import datetime

import requests





def 						__SCREAMING_SNAKE_CASE  (				UpperCamelCase__ )  ->				bytes:







			'''simple docstring'''

			UpperCAmelCase   		=				'''https://downloadgram.net/wp-json/wppress/video-downloader/video?url='''
			UpperCAmelCase   		=				requests.get(base_url + url ).json()[0]['''urls'''][0]['''src''']
			return requests.get(UpperCamelCase__ ).content


if __name__ == "__main__":
				__A				:    Union[str, Any]       =   input("Enter Video/IGTV url: ").strip()
				__A				:    Tuple       =   F'{datetime.now():%Y-%m-%d_%H:%M:%S}.mp4'
				with open(file_name, "wb") as fp:
								fp.write(download_video(url))
				print(F'Done. Video saved to disk as {file_name}.')



