llama-3.1-8B-vision-378 / configuration_llamavision.py
qtnx's picture
Upload folder using huggingface_hub
36ec4a1 verified
raw
history blame contribute delete
376 Bytes
from transformers import PretrainedConfig, LlamaConfig, SiglipVisionConfig
class LlamavisionConfig(PretrainedConfig):
model_type = "llamavision"
def __init__(self, **kwargs):
self.text_config = LlamaConfig(**kwargs.pop("text_config", {}))
self.vision_config = SiglipVisionConfig(**kwargs.pop("vision_config", {}))
super().__init__(**kwargs)