






'''simple docstring'''







from collections import OrderedDict
from typing import Mapping

from ...configuration_utils import PretrainedConfig
from ...onnx import OnnxConfig
from ...utils import logging


_A			:    List[str]					  =logging.get_logger(__name__)

_A			:    str					  ={
    '''YituTech/conv-bert-base''': '''https://huggingface.co/YituTech/conv-bert-base/resolve/main/config.json''',
    '''YituTech/conv-bert-medium-small''': (
        '''https://huggingface.co/YituTech/conv-bert-medium-small/resolve/main/config.json'''
    ),
    '''YituTech/conv-bert-small''': '''https://huggingface.co/YituTech/conv-bert-small/resolve/main/config.json''',
    # See all ConvBERT models at https://huggingface.co/models?filter=convbert
}

class _lowercase			(       _lowercase	):
							a          = """convbert"""




							def __init__(							self:       Any    ,							UpperCamelCase__:       Dict=30_522    ,							UpperCamelCase__:       List[Any]=768    ,							UpperCamelCase__:       Union[str, Any]=12    ,							UpperCamelCase__:       str=12    ,							UpperCamelCase__:       int=3_072    ,							UpperCamelCase__:       Tuple="gelu"    ,							UpperCamelCase__:       Optional[Any]=0.1    ,							UpperCamelCase__:       List[Any]=0.1    ,							UpperCamelCase__:       Dict=512    ,							UpperCamelCase__:       List[str]=2    ,							UpperCamelCase__:       int=0.02    ,							UpperCamelCase__:       Dict=1e-12    ,							UpperCamelCase__:       List[str]=1    ,							UpperCamelCase__:       List[Any]=0    ,							UpperCamelCase__:       Tuple=2    ,							UpperCamelCase__:       int=768    ,							UpperCamelCase__:       Optional[int]=2    ,							UpperCamelCase__:       Tuple=9    ,							UpperCamelCase__:       Optional[int]=1    ,							UpperCamelCase__:       str=None    ,							**UpperCamelCase__:       int    ,							):
														super().__init__(
														    pad_token_id=UpperCamelCase__    ,							bos_token_id=UpperCamelCase__    ,							eos_token_id=UpperCamelCase__    ,							**UpperCamelCase__    ,							)

														lowerCamelCase__      :			Tuple 						= vocab_size
														lowerCamelCase__      :			List[Any] 						= hidden_size
														lowerCamelCase__      :			Dict 						= num_hidden_layers
														lowerCamelCase__      :			Optional[Any] 						= num_attention_heads
														lowerCamelCase__      :			List[str] 						= intermediate_size
														lowerCamelCase__      :			Tuple 						= hidden_act
														lowerCamelCase__      :			Optional[Any] 						= hidden_dropout_prob
														lowerCamelCase__      :			Union[str, Any] 						= attention_probs_dropout_prob
														lowerCamelCase__      :			str 						= max_position_embeddings
														lowerCamelCase__      :			List[str] 						= type_vocab_size
														lowerCamelCase__      :			Union[str, Any] 						= initializer_range
														lowerCamelCase__      :			Tuple 						= layer_norm_eps
														lowerCamelCase__      :			Dict 						= embedding_size
														lowerCamelCase__      :			Union[str, Any] 						= head_ratio
														lowerCamelCase__      :			Optional[int] 						= conv_kernel_size
														lowerCamelCase__      :			Any 						= num_groups
														lowerCamelCase__      :			int 						= classifier_dropout



class _lowercase			(       _lowercase	):




							@property
							def 	lowerCamelCase_       (							self:       str  ):
														if self.task == "multiple-choice":
																					lowerCamelCase__      :			int 						= {0: """batch""", 1: """choice""", 2: """sequence"""}
														else:
																					lowerCamelCase__      :			str 						= {0: """batch""", 1: """sequence"""}
														return OrderedDict(
														    [
														        ("""input_ids""", dynamic_axis),
														        ("""attention_mask""", dynamic_axis),
														        ("""token_type_ids""", dynamic_axis),
														    ]  )









'''simple docstring'''







# coding=utf-8
# Copyright 2023 The HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# this script dumps information about the environment

import os
import platform
import sys


_A			:    Dict					  ='''3'''

print('''Python version:''', sys.version)

print('''OS platform:''', platform.platform())
print('''OS architecture:''', platform.machine())

try:
			import torch

			print('''Torch version:''', torch.__version__)
			print('''Cuda available:''', torch.cuda.is_available())
			print('''Cuda version:''', torch.version.cuda)
			print('''CuDNN version:''', torch.backends.cudnn.version())
			print('''Number of GPUs available:''', torch.cuda.device_count())
except ImportError:
			print('''Torch version:''', None)

try:
			import transformers

			print('''transformers version:''', transformers.__version__)
except ImportError:
			print('''transformers version:''', None)

