1git pull
2pip install -e .
34# if you see some import errors when you upgrade, please try running the command below (without #)
5# pip install flash-attn --no-build-isolation --no-cache-dir
In our paper, we used two different datasets: the LLaVA dataset and the ShareGPT4V dataset, and compared their differences. In this section, we provide information on data preparation.
Pretraining Images
LLaVA: The pretraining images of LLaVA is from the 558K subset of the LAION-CC-SBU dataset.
ShareGPT4V: The pretraining images of ShareGPT4V is a mixture of 558K LAION-CC-SBU subset, SAM dataset, and COCO dataset.
Pretraining Annotations
LLaVA: The pretraining annotations of LLaVA are here.
ShareGPT4V: The pretraining annotations of ShareGPT4V are here.
SFT Images & Annotations
The majority of the two SFT datasets are the same, with the exception that the 23K detailed description data in LLaVA-1.5-SFT being replaced with detailed captions randomly sampled from the 100K ShareGPT4V data.
WebData: This dataset is curated by the ShareGPT4V project. Download: images. Only for academic usage.
SAM: This dataset is collected by Meta. Download: images. We only use 000000~000050.tar for now. If you just want to use ShareGPT4V for SFT, you can quickly download 9K images from here.
If you find our paper and code useful in your research, please consider giving a star :star: and citation :pencil:.
BibTeX
1@misc{zhou2024tinyllava,
2 title={TinyLLaVA: A Framework of Small-scale Large Multimodal Models},
3 author={Baichuan Zhou and Ying Hu and Xi Weng and Junlong Jia and Jie Luo and Xien Liu and Ji Wu and Lei Huang},
4 year={2024},
5 eprint={2402.14289},
6 archivePrefix={arXiv},
7 primaryClass={cs.LG}
8}
❤️ Community efforts
Our codebase is built upon the LLaVA project. Great work!
Our project uses data from the ShareGPT4V project. Great work!