ADAPT- $\infty$ : Scalable Lifelong Multimodal Instruction Tuning via Dynamic Data Selection
October 15, 2024 ยท View on GitHub
Authors: Adyasha Maharana*, Jaehong Yoon*, Tianlong Chen, Mohit Bansal
University of North Carolina at Chapel Hill
Install
Our codebase is derived from the LLaVA repository. We follow their guidelines for setting up the environment.
- Clone this repository and navigate to the folder
git clone https://github.com/adymaharana/adapt-inf.git
cd adapt-inf
- Install Package
conda create -n llava python=3.10 -y
conda activate llava
pip install --upgrade pip # enable PEP 660 support
pip install -e .
- Install additional packages for training cases and evaluation
pip install -e ".[train]"
pip install flash-attn --no-build-isolation
pip install nltk
pip install google-generativeai
pip install datasets
Datasets
Setup dataset (and image) directory paths in config.py.
Download the datasets used in our lifelong multimodal instruction tuning setup as follows:
- LLaVA-665K Dataset Follow the instructions here to download the LLaVA training dataset. Remove samples for which images are not available.
python utils/download_datasets.py --dataset llava
- M3IT Dataset Download the dataset from HuggingFace.
python utils/download_datasets.py --dataset m3it
- Download MiniGPT4 Stage 2 dataset from here. Post-process the dataset for use with this codebase.
python utils/download_datasets.py --dataset minigpt4
- MANTIS Dataset Download the dataset from HuggingFace.
python utils/download_datasets.py --dataset mantis
-
LAMM Dataset
-
VisionFLAN Dataset
Selection and Training
Instructions coming soon!
Reference
Please cite our paper if you use this method in your works:
@article{maharana2024adapt,
title = {ADAPT- $\infty$ : Scalable Lifelong Multimodal Instruction Tuning via Dynamic Data Selection},
author = {Adyasha Maharana and Jaehong Yoon and Tianlong Chen and Mohit Bansal},
year = {2024},
archivePrefix = {arXiv},
primaryClass = {cs.LG},
eprint = {2410.10636}
}