Flare77/HuLuLLM
013
1# Adopted from https://github.com/huggingface/transformers/blob/main/src/transformers/models/siglip/configuration_siglip.py.2# Below is the original copyright:3# coding=utf-84# Copyright 2024 The HuggingFace Inc. team. All rights reserved.5#6# Licensed under the Apache License, Version 2.0 (the "License");7# you may not use this file except in compliance with the License.8# You may obtain a copy of the License at9#10# http://www.apache.org/licenses/LICENSE-2.011#12# Unless required by applicable law or agreed to in writing, software13# distributed under the License is distributed on an "AS IS" BASIS,14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.15# See the License for the specific language governing permissions and16# limitations under the License.17"""HuluMed vision encoder model configuration."""18 19from transformers import PretrainedConfig20 21 22class HulumedVisionEncoderConfig(PretrainedConfig):23 24 model_type = "hulumed_vision_encoder"25 26 def __init__(27 self,28 hidden_size=768,29 intermediate_size=3072,30 num_hidden_layers=12,31 num_attention_heads=12,32 num_channels=3,33 patch_size=16,34 hidden_act="gelu_pytorch_tanh",35 layer_norm_eps=1e-6,36 attention_dropout=0.0,37 **kwargs,38 ):39 super().__init__(**kwargs)40 41 self.hidden_size = hidden_size42 self.intermediate_size = intermediate_size43 self.num_hidden_layers = num_hidden_layers44 self.num_attention_heads = num_attention_heads45 self.num_channels = num_channels46 self.patch_size = patch_size47 self.attention_dropout = attention_dropout48 self.layer_norm_eps = layer_norm_eps49 self.hidden_act = hidden_act50 