'''simple docstring'''




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


_A										= logging.get_logger(__name__)

_A										= {
    'tau/splinter-base': 'https://huggingface.co/tau/splinter-base/resolve/main/config.json',
    'tau/splinter-base-qass': 'https://huggingface.co/tau/splinter-base-qass/resolve/main/config.json',
    'tau/splinter-large': 'https://huggingface.co/tau/splinter-large/resolve/main/config.json',
    'tau/splinter-large-qass': 'https://huggingface.co/tau/splinter-large-qass/resolve/main/config.json',
    # See all Splinter models at https://huggingface.co/models?filter=splinter
}


class    UpperCAmelCase__	(							_snake_case      ):






   """simple docstring"""
   A				:							Union[str, Any]			     =     '''splinter'''
   def __init__(self							,					_a=30_522							,					_a=768							,					_a=12							,					_a=12							,					_a=3_072							,					_a="gelu"							,					_a=0.1							,					_a=0.1							,					_a=512							,					_a=2							,					_a=0.02							,					_a=1e-12							,					_a=True							,					_a=0							,					_a=104							,					**_a							,					)     ->  List[Any]:
        super().__init__(pad_token_id=_a							,					**_a					)

        lowercase_       :							List[Any]  					=       vocab_size
        lowercase_       :							List[Any]  					=       max_position_embeddings
        lowercase_       :							int  					=       hidden_size
        lowercase_       :							Tuple  					=       num_hidden_layers
        lowercase_       :							Any  					=       num_attention_heads
        lowercase_       :							List[str]  					=       intermediate_size
        lowercase_       :							List[str]  					=       hidden_act
        lowercase_       :							Dict  					=       hidden_dropout_prob
        lowercase_       :							Dict  					=       attention_probs_dropout_prob
        lowercase_       :							int  					=       initializer_range
        lowercase_       :							List[str]  					=       type_vocab_size
        lowercase_       :							Union[str, Any]  					=       layer_norm_eps
        lowercase_       :							List[str]  					=       use_cache
        lowercase_       :							List[Any]  					=       question_token_id





'''simple docstring'''




from dataclasses import dataclass
from typing import List, Optional, Union

import numpy as np
import PIL
from PIL import Image

from ...utils import BaseOutput, is_torch_available, is_transformers_available


@dataclass
# Copied from diffusers.pipelines.stable_diffusion.__init__.StableDiffusionPipelineOutput with Stable->Alt
class    UpperCAmelCase__	(							_snake_case      ):






   """simple docstring"""
   A				:							Union[List[PIL.Image.Image], np.ndarray]
   A				:							Optional[List[bool]]


if is_transformers_available() and is_torch_available():
 from .modeling_roberta_series import RobertaSeriesModelWithTransformation
 from .pipeline_alt_diffusion import AltDiffusionPipeline
 from .pipeline_alt_diffusion_imgaimg import AltDiffusionImgaImgPipeline




