CoolFace
Modelpublic

Zhang199/TinyLLaVA-Qwen2.5-3B-SigLIP

sourceHugging Faceapache-2.0updated 1y agoView on Hugging Face
0likes1.5kdownloads
Model Card

<center><span style="font-size:2em;">TinyLLaVA</span></center>

![arXiv](https://arxiv.org/abs/2405.11788)![Github](https://github.com/TinyLLaVA/TinyLLaVA_Factory)![Demo](http://8843843nmph5.vicp.fun/#/)

Here, we introduce TinyLLaVA-Qwen2.5-3B-SigLIP , which is trained by the TinyLLaVA Factory codebase. For LLM and vision tower, we choose Qwen2.5-3B and siglip-so400m-patch14-384, respectively.

Usage

Execute the following test code:

python
from tinyllava.eval.run_tiny_llava import eval_model

model_path = 'Zhang199/TinyLLaVA-Qwen2.5-3B-SigLIP'
prompt = "What are the things I should be cautious about when I visit here?"
image_file = "https://llava-vl.github.io/static/images/view.jpg"
conv_mode = "phi" # or llama, gemma, etc

args = type('Args', (), {
    "model_path": model_path,
    "model": None,
    "query": prompt,
    "conv_mode": conv_mode,
    "image_file": image_file,
    "sep": ",",
    "temperature": 0,
    "top_p": None,
    "num_beams": 1,
    "max_new_tokens": 512
})()

eval_model(args)

Result

model_namevqav2gqasqatextvqaMM-VETPOPEMMEMMMU
LLaVA-1.5-7B78.562.066.858.230.585.91510.7-
bczhou/TinyLLaVA-3.1B (our legacy model)79.962.069.159.132.086.41464.9-
tinyllava/TinyLLaVA-Gemma-SigLIP-2.4B78.461.664.453.626.986.41339.031.7
tinyllava/TinyLLaVA-Phi-2-SigLIP-3.1B80.162.173.060.337.587.21466.438.4
Zhang199/TinyLLaVA-Qwen2-0.5B-SigLIP72.3355.8460.1445.1719.586.59115329.7
Zhang199/TinyLLaVA-Qwen2.5-3B-SigLIP79.462.574.158.334.887.41438.739.9

P.S. TinyLLaVA Factory is an open-source modular codebase for small-scale LMMs with a focus on simplicity of code implementations, extensibility of new features, and reproducibility of training results. This code repository provides standard training&evaluating pipelines, flexible data preprocessing&model configurations, and easily extensible architectures. Users can customize their own LMMs with minimal coding effort and less coding mistake.

TinyLLaVA Factory integrates a suite of cutting-edge models and methods.

  • —LLM currently supports OpenELM, TinyLlama, StableLM, Qwen, Gemma, Phi, and Qwen2.
  • —Vision tower currently supports CLIP, SigLIP, Dino, and combination of CLIP and Dino.
  • —Connector currently supports MLP, Qformer, and Resampler.