TinyLLaVA/TinyLLaVA_Factory
A Framework of Small-scale Large Multimodal Models
What it solves
TinyLLaVA Factory provides a modularized codebase for creating and training small-scale Large Multimodal Models (LMMs). It simplifies the process of customizing multimodal models by reducing coding effort and errors, while ensuring training results are reproducible.
How it works
The framework allows users to mix and match different components to build a multimodal model. It integrates several key building blocks:
- LLMs: Supports models like OpenELM, TinyLlama, StableLM, Qwen, Gemma, and Phi.
- Vision Towers: Supports CLIP, SigLIP, Dino, and combinations of CLIP and Dino.
- Vision-Language Connectors: Supports MLP, Qformer, and Resampler.
- Training Recipes: Includes options for Frozen, Fully, and Partially tuning, as well as LoRA and QLoRA.
Who it’s for
It is designed for researchers and developers who want to build, fine-tune, or evaluate small-scale multimodal models without starting from scratch.
Highlights
- Modular Architecture: Easy to swap LLMs, vision towers, and connectors.
- High Performance: The TinyLLaVA-Phi-2-SigLIP-3.1B model outperforms some existing 7B models like LLaVA-1.5.
- Extensible: Provides clear guides and registration patterns for adding new LLMs, vision towers, and connectors.
- Comprehensive Tooling: Includes scripts for pretraining, finetuning, and evaluation, as well as a Gradio web demo and CLI inference tools.
Related
- Project
- Project
- Project
- Project
- Project