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