FreedomIntelligence/ALLaVA-Phi2-2_7B

Model

ALLaVA: Harnessing GPT4V-synthesized Data for A Lite Vision-Language Model

0

54 commits

1 repos using this model

2 linked in READMEs

updated Jun 25, 2024

See the code

README

ALLaVA: Harnessing GPT4V-synthesized Data for A Lite Vision-Language Model

⚑ALLaVA is a project that provides a large-scale GPT4V-synthesized dataset for training LVLMs.⚑

πŸ“ƒ Paper β€’ 🌐 Demo β€’ πŸ‘¨πŸ»β€πŸ’» Github

πŸ€— ALLaVA-4V Dataset

πŸ€— ALLaVA-Phi3-mini-128k β€’ πŸ€— ALLaVA-StableLM2-1_6B β€’ πŸ€— ALLaVA-Phi2-2_7B

Benchmark Result

Our models ALLaVA-Phi3-mini-128k, ALLaVA-StableLM2-1_6B and ALLaVA-Phi2-2_7B achieve competitive results on 17 benchmarks.

ModelsVicuna-80GQAHallusionBenchMME-PMMVPTouchStoneTextVQAMME-CMathVistaMM-VetMMMU-valSQA (img)LLaVA (In-the-Wild)MLLM-BenchMMB-enMMB-cnSEEDBench (img, v1)
Large VLMs
BLIP-2---------22.434.4--3.0*--49.7
InstructBLIP-49.5-------25.6--58.2-44.0--
Qwen-VL-Chat-57.5-1487.6--61.5360.7-31.1-68.2--60.656.765.4
LLaVA-1.5-7B13.8*62.036.6*1504.4*24.7*594.9*58.2324.6*25.0*31.135.1*66.865.423.0*64.358.366.1
LLaVA-1.5-13B22.563.336.5*1531.338.0*617.7*61.3295.428.3*35.434.4*71.672.5-67.763.668.2
LVIS-7B-62.6----58.7--31.5--67.029.0*66.2--
LVIS-13B-63.6*----62.5*--37.4*--71.3*-68.0*--
ShareGPT4V-7B13.8*63.336.0*1540.1*34.0*637.2*60.4346.1*24.7*37.635.4*68.4*72.630.2*68.861.0*69.7
ShareGPT4V-13B17.5*64.839.0*1576.1*35.3*648.7*62.2309.3*28.8*43.135.6*70.0*79.935.5*71.261.7*70.8
4B-scale Lite VLMs
MobileVLM-v25.0*61.130.8*1440.518.7*541.0*57.5261.8*28.3*26.1*30.8*70.053.2*15.7*63.243.2*64.5*
Mipha-3B16.2*63.934.3*1488.932.0*619.0*56.6285.0*27.8*33.5*35.8*70.964.7*23.1*69.742.9*71.2*
TinyLLaVA15.6*62.137.2*1465.5*33.3*663.5*60.3281.1*30.3*37.538.473.070.8*29.8*69.7*42.8*70.4*
Ours
ALLaVA-Phi249.448.824.81316.236.0632.049.5301.827.432.235.367.669.443.664.040.865.2
ALLaVA-StableLM238.849.825.31311.734.0655.251.7257.927.731.733.364.772.039.364.649.865.7
ALLaVA-Phi356.952.248.11382.332.7667.853.0347.132.937.841.164.068.554.868.155.369.0

* denotes the results of our evaluation. Bold numbers are the best results among all 4B-scale LVLMs.The detailed information of each benchmark is shown in Table 4 of our technical report.

🏭 Inference

All models can be loaded from πŸ€— with .from_pretrained(). Check out the example scripts and make sure you have the same outputs as shown in the scripts.

πŸ‹οΈβ€β™‚οΈ Training

Data

training_datasets

ALLaVA uses 1.0M and 1.5M data for PT. and FT., respectively.

Code

The training code is largely based on LLaVA-v1.5. We wholeheartedly express our gratitude for their invaluable contributions to open-sourcing LVLMs.

Hyperparameters

Global Batch SizeZeRO StageOptimizerMax LRMin LRSchedulerWeight decay
256 (PT) / 128 (FT)1AdamW2e-52e-6CosineAnnealingWarmRestarts0

The LM backbone, projector are trainable, while the vision encoder is kept frozen. The trainabilities of each module are the same for both stages.

πŸ“š ALLaVA-4V Data

The majority part of training data is ALLaVA-4V. See here to prepare it for training.

πŸ™Œ Contributors

πŸ“ Citation

If you find our data useful, please consider citing our work! We are FreedomIntelligence from Shenzhen Research Institute of Big Data and The Chinese University of Hong Kong, Shenzhen

@article{chen2024allava,
  title={ALLaVA: Harnessing GPT4V-synthesized Data for A Lite Vision-Language Model},
  author={Chen, Guiming Hardy and Chen, Shunian and Zhang, Ruifei and Chen, Junying and Wu, Xiangbo and Zhang, Zhiyi and Chen, Zhihong and Li, Jianquan and Wan, Xiang and Wang, Benyou},
  journal={arXiv preprint arXiv:2402.11684},
  year={2024}
}
custom_code
llava_phi
safetensors
text-generation
transformers

FreedomIntelligence/ALLaVA-Phi2-2_7B

Model

ALLaVA: Harnessing GPT4V-synthesized Data for A Lite Vision-Language Model

0

54 commits

1 repos using this model

2 linked in READMEs

updated Jun 25, 2024

See the code

README

ALLaVA: Harnessing GPT4V-synthesized Data for A Lite Vision-Language Model

⚑ALLaVA is a project that provides a large-scale GPT4V-synthesized dataset for training LVLMs.⚑

πŸ“ƒ Paper β€’ 🌐 Demo β€’ πŸ‘¨πŸ»β€πŸ’» Github

πŸ€— ALLaVA-4V Dataset

πŸ€— ALLaVA-Phi3-mini-128k β€’ πŸ€— ALLaVA-StableLM2-1_6B β€’ πŸ€— ALLaVA-Phi2-2_7B

Benchmark Result

Our models ALLaVA-Phi3-mini-128k, ALLaVA-StableLM2-1_6B and ALLaVA-Phi2-2_7B achieve competitive results on 17 benchmarks.

ModelsVicuna-80GQAHallusionBenchMME-PMMVPTouchStoneTextVQAMME-CMathVistaMM-VetMMMU-valSQA (img)LLaVA (In-the-Wild)MLLM-BenchMMB-enMMB-cnSEEDBench (img, v1)
Large VLMs
BLIP-2---------22.434.4--3.0*--49.7
InstructBLIP-49.5-------25.6--58.2-44.0--
Qwen-VL-Chat-57.5-1487.6--61.5360.7-31.1-68.2--60.656.765.4
LLaVA-1.5-7B13.8*62.036.6*1504.4*24.7*594.9*58.2324.6*25.0*31.135.1*66.865.423.0*64.358.366.1
LLaVA-1.5-13B22.563.336.5*1531.338.0*617.7*61.3295.428.3*35.434.4*71.672.5-67.763.668.2
LVIS-7B-62.6----58.7--31.5--67.029.0*66.2--
LVIS-13B-63.6*----62.5*--37.4*--71.3*-68.0*--
ShareGPT4V-7B13.8*63.336.0*1540.1*34.0*637.2*60.4346.1*24.7*37.635.4*68.4*72.630.2*68.861.0*69.7
ShareGPT4V-13B17.5*64.839.0*1576.1*35.3*648.7*62.2309.3*28.8*43.135.6*70.0*79.935.5*71.261.7*70.8
4B-scale Lite VLMs
MobileVLM-v25.0*61.130.8*1440.518.7*541.0*57.5261.8*28.3*26.1*30.8*70.053.2*15.7*63.243.2*64.5*
Mipha-3B16.2*63.934.3*1488.932.0*619.0*56.6285.0*27.8*33.5*35.8*70.964.7*23.1*69.742.9*71.2*
TinyLLaVA15.6*62.137.2*1465.5*33.3*663.5*60.3281.1*30.3*37.538.473.070.8*29.8*69.7*42.8*70.4*
Ours
ALLaVA-Phi249.448.824.81316.236.0632.049.5301.827.432.235.367.669.443.664.040.865.2
ALLaVA-StableLM238.849.825.31311.734.0655.251.7257.927.731.733.364.772.039.364.649.865.7
ALLaVA-Phi356.952.248.11382.332.7667.853.0347.132.937.841.164.068.554.868.155.369.0

* denotes the results of our evaluation. Bold numbers are the best results among all 4B-scale LVLMs.The detailed information of each benchmark is shown in Table 4 of our technical report.

🏭 Inference

All models can be loaded from πŸ€— with .from_pretrained(). Check out the example scripts and make sure you have the same outputs as shown in the scripts.

πŸ‹οΈβ€β™‚οΈ Training

Data

training_datasets

ALLaVA uses 1.0M and 1.5M data for PT. and FT., respectively.

Code

The training code is largely based on LLaVA-v1.5. We wholeheartedly express our gratitude for their invaluable contributions to open-sourcing LVLMs.

Hyperparameters

Global Batch SizeZeRO StageOptimizerMax LRMin LRSchedulerWeight decay
256 (PT) / 128 (FT)1AdamW2e-52e-6CosineAnnealingWarmRestarts0

The LM backbone, projector are trainable, while the vision encoder is kept frozen. The trainabilities of each module are the same for both stages.

πŸ“š ALLaVA-4V Data

The majority part of training data is ALLaVA-4V. See here to prepare it for training.

πŸ™Œ Contributors

πŸ“ Citation

If you find our data useful, please consider citing our work! We are FreedomIntelligence from Shenzhen Research Institute of Big Data and The Chinese University of Hong Kong, Shenzhen

@article{chen2024allava,
  title={ALLaVA: Harnessing GPT4V-synthesized Data for A Lite Vision-Language Model},
  author={Chen, Guiming Hardy and Chen, Shunian and Zhang, Ruifei and Chen, Junying and Wu, Xiangbo and Zhang, Zhiyi and Chen, Zhihong and Li, Jianquan and Wan, Xiang and Wang, Benyou},
  journal={arXiv preprint arXiv:2402.11684},
  year={2024}
}
custom_code
llava_phi
safetensors
text-generation
transformers