Image-Text-to-Text
Transformers
PyTorch
English
doubutsu
conversational
custom_code
Inference Endpoints
doubutsu-2b-pt-378 / configuration_doubutsu.py
qtnx's picture
Upload folder using huggingface_hub
4b953b6 verified
raw
history blame contribute delete
440 Bytes
from transformers import PretrainedConfig, Qwen2Config, SiglipVisionConfig
class DoubutsuConfig(PretrainedConfig):
model_type = "doubutsu"
def __init__(self, **kwargs):
self.text_config = Qwen2Config(
**kwargs.pop(
"text_config",
{},
),
)
self.vision_config = SiglipVisionConfig(**kwargs.pop("vision_config", {}))
super().__init__(**kwargs)