



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


_lowercase:					Any      =						logging.get_logger(__name__)

_lowercase:					List[Any]      =						{
    "facebook/opt-125m": "https://huggingface.co/facebook/opt-125m/blob/main/config.json",
    "facebook/opt-350m": "https://huggingface.co/facebook/opt-350m/blob/main/config.json",
    "facebook/opt-1.3b": "https://huggingface.co/facebook/opt-1.3b/blob/main/config.json",
    "facebook/opt-2.7b": "https://huggingface.co/facebook/opt-2.7b/blob/main/config.json",
    "facebook/opt-6.7b": "https://huggingface.co/facebook/opt-6.7b/blob/main/config.json",
    "facebook/opt-13b": "https://huggingface.co/facebook/opt-13b/blob/main/config.json",
}



class       _lowercase				(  snake_case__      ):





	"""simple docstring"""
	__A		      =				'opt'
	__A		      =				['past_key_values']




	def __init__(self						,			lowerCamelCase_=50272						,			lowerCamelCase_=768						,			lowerCamelCase_=12						,			lowerCamelCase_=3072						,			lowerCamelCase_=2048						,			lowerCamelCase_=True						,			lowerCamelCase_=False						,			lowerCamelCase_=None						,			lowerCamelCase_=0.1						,			lowerCamelCase_=0.0						,			lowerCamelCase_=12						,			lowerCamelCase_="relu"						,			lowerCamelCase_=0.0						,			lowerCamelCase_=0.02						,			lowerCamelCase_=True						,			lowerCamelCase_=1						,			lowerCamelCase_=2						,			lowerCamelCase_=2						,			lowerCamelCase_=True						,			lowerCamelCase_=True						,			**lowerCamelCase_						,			):
						"""simple docstring"""

						super().__init__(
						    pad_token_id=lowerCAmelCase_						,			bos_token_id=lowerCAmelCase_						,			eos_token_id=lowerCAmelCase_						,			**lowerCAmelCase_						,			)
						a   	=  vocab_size
						a   	=  max_position_embeddings
						a   	=  num_attention_heads
						a   	=  word_embed_proj_dim if word_embed_proj_dim is not None else hidden_size
						a   	=  ffn_dim
						a   	=  hidden_size
						a   	=  num_hidden_layers
						a   	=  dropout
						a   	=  attention_dropout
						a   	=  activation_function
						a   	=  init_std
						a   	=  layerdrop
						a   	=  use_cache
						a   	=  do_layer_norm_before
						# We keep these variables at `True` for backward compatibility.
						a   	=  enable_bias
						a   	=  layer_norm_elementwise_affine

						# Note that the only purpose of `_remove_final_layer_norm` is to keep backward compatibility
						# with checkpoints that have been fine-tuned before transformers v4.20.1
						# see https://github.com/facebookresearch/metaseq/pull/164
						a   	=  _remove_final_layer_norm

from typing import List

import datasets
from datasets.tasks import ImageClassification

from ..folder_based_builder import folder_based_builder


UpperCAmelCase				 =   datasets.utils.logging.get_logger(__name__)






class 				_SCREAMING_SNAKE_CASE( folder_based_builder.FolderBasedBuilderConfig						):
   UpperCamelCase_					:    bool			      = None
   UpperCamelCase_					:    bool			      = None






class 				_SCREAMING_SNAKE_CASE( folder_based_builder.FolderBasedBuilder						):
   UpperCamelCase_					:    List[str]			      = datasets.Image()
   UpperCamelCase_					:    Any			      = 'image'
   UpperCamelCase_					:    str			      = ImageFolderConfig
   UpperCamelCase_					:    List[str]  # definition at the bottom of the script
   UpperCamelCase_					:    Union[str, Any]			      = ImageClassification(image_column='image'							,   label_column='label'						)

UpperCAmelCase				 =   [
    """.blp""",
    """.bmp""",
    """.dib""",
    """.bufr""",
    """.cur""",
    """.pcx""",
    """.dcx""",
    """.dds""",
    """.ps""",
    """.eps""",
    """.fit""",
    """.fits""",
    """.fli""",
    """.flc""",
    """.ftc""",
    """.ftu""",
    """.gbr""",
    """.gif""",
    """.grib""",
    """.h5""",
    """.hdf""",
    """.png""",
    """.apng""",
    """.jp2""",
    """.j2k""",
    """.jpc""",
    """.jpf""",
    """.jpx""",
    """.j2c""",
    """.icns""",
    """.ico""",
    """.im""",
    """.iim""",
    """.tif""",
    """.tiff""",
    """.jfif""",
    """.jpe""",
    """.jpg""",
    """.jpeg""",
    """.mpg""",
    """.mpeg""",
    """.msp""",
    """.pcd""",
    """.pxr""",
    """.pbm""",
    """.pgm""",
    """.ppm""",
    """.pnm""",
    """.psd""",
    """.bw""",
    """.rgb""",
    """.rgba""",
    """.sgi""",
    """.ras""",
    """.tga""",
    """.icb""",
    """.vda""",
    """.vst""",
    """.webp""",
    """.wmf""",
    """.emf""",
    """.xbm""",
    """.xpm""",
]
UpperCAmelCase				 =   IMAGE_EXTENSIONS