Back to Llava

Model Zoo

docs/MODEL_ZOO.md

1.2.211.8 KB
Original Source

Model Zoo

To Use LLaVA-1.6 checkpoints, your llava package version must be newer than 1.2.0. Instructions on how to upgrade.

If you are interested in including any other details in Model Zoo, please open an issue :)

The model weights below are merged weights. You do not need to apply delta. The usage of LLaVA checkpoints should comply with the base LLM's model license.

LLaVA-v1.6

VersionLLMScheduleCheckpointMMMUMathVistaVQAv2GQAVizWizSQATextVQAPOPEMMEMM-BenchMM-Bench-CNSEED-IMGLLaVA-Bench-WildMM-Vet
LLaVA-1.6Vicuna-7Bfull_ft-1eliuhaotian/llava-v1.6-vicuna-7b35.834.681.864.257.670.164.986.51519/33267.460.670.281.643.9
LLaVA-1.6Vicuna-13Bfull_ft-1eliuhaotian/llava-v1.6-vicuna-13b36.235.382.865.460.573.667.186.21575/3267064.471.987.348.4
LLaVA-1.6Mistral-7Bfull_ft-1eliuhaotian/llava-v1.6-mistral-7b35.337.782.264.860.072.865.786.71498/32168.761.272.283.247.3
LLaVA-1.6Hermes-Yi-34Bfull_ft-1eliuhaotian/llava-v1.6-34b51.146.583.767.163.881.869.587.71631/39779.37975.989.657.4

LLaVA-1.6-34B outperforms Gemini Pro on benchmarks like MMMU and MathVista.

LLaVA-v1.5

VersionSizeScheduleCheckpointVQAv2GQAVizWizSQATextVQAPOPEMMEMM-BenchMM-Bench-CNSEEDLLaVA-Bench-WildMM-Vet
LLaVA-1.57Bfull_ft-1eliuhaotian/llava-v1.5-7b78.562.050.066.858.285.91510.764.358.358.665.431.1
LLaVA-1.513Bfull_ft-1eliuhaotian/llava-v1.5-13b80.063.353.671.661.385.91531.367.763.661.672.536.1
LLaVA-1.57Blora-1eliuhaotian/llava-v1.5-7b-lora79.163.047.868.458.286.41476.966.158.960.167.930.2
LLaVA-1.513Blora-1eliuhaotian/llava-v1.5-13b-lora80.063.358.971.260.286.71541.768.561.561.369.538.3

Base model: Vicuna v1.5. Training logs: wandb.

<p align="center">

LLaVA-1.5 achieves SoTA performance across 11 benchmarks.

</p>

LLaVA-v1

Note: We recommend using the most capable LLaVA-v1.6 series above for the best performance.

Base LLMVision EncoderPretrain DataPretraining scheduleFinetuning DataFinetuning scheduleLLaVA-Bench-ConvLLaVA-Bench-DetailLLaVA-Bench-ComplexLLaVA-Bench-OverallDownload
Vicuna-13B-v1.3CLIP-L-336pxLCS-558K1eLLaVA-Instruct-80Kproj-1e, lora-1e64.355.981.770.1LoRA LoRA-Merged
LLaMA-2-13B-ChatCLIP-LLCS-558K1eLLaVA-Instruct-80Kfull_ft-1e56.758.680.067.9ckpt
LLaMA-2-7B-ChatCLIP-LLCS-558K1eLLaVA-Instruct-80Klora-1e51.258.971.662.8LoRA

Projector weights

These are projector weights we have pretrained. You can use these projector weights for visual instruction tuning. They are just pretrained on image-text pairs and are NOT instruction-tuned, which means they do NOT follow instructions as well as our official models and can output repetitive, lengthy, and garbled outputs. If you want to have nice conversations with LLaVA, use the checkpoints above (LLaVA v1.6).

NOTE: These projector weights are only compatible with llava>=1.0.0. Please check out the latest codebase if your local code version is below v1.0.0.

NOTE: When you use our pretrained projector for visual instruction tuning, it is very important to use the same base LLM and vision encoder as the one we used for pretraining the projector. Otherwise, the performance will be very poor.

When using these projector weights to instruction-tune your LMM, please make sure that these options are correctly set as follows,

Shell
--mm_use_im_start_end False
--mm_use_im_patch_token False
Base LLMVision EncoderProjectionPretrain DataPretraining scheduleDownload
Vicuna-13B-v1.5CLIP-L-336pxMLP-2xLCS-558K1eprojector
Vicuna-7B-v1.5CLIP-L-336pxMLP-2xLCS-558K1eprojector
LLaMA-2-13B-ChatCLIP-L-336pxLinearLCS-558K1eprojector
LLaMA-2-7B-ChatCLIP-L-336pxLinearLCS-558K1eprojector
LLaMA-2-13B-ChatCLIP-LLinearLCS-558K1eprojector
LLaMA-2-7B-ChatCLIP-LLinearLCS-558K1eprojector
Vicuna-13B-v1.3CLIP-L-336pxLinearLCS-558K1eprojector
Vicuna-7B-v1.3CLIP-L-336pxLinearLCS-558K1eprojector
Vicuna-13B-v1.3CLIP-LLinearLCS-558K1eprojector
Vicuna-7B-v1.3CLIP-LLinearLCS-558K1eprojector

Science QA Checkpoints

Base LLMVision EncoderPretrain DataPretraining scheduleFinetuning DataFinetuning scheduleDownload
Vicuna-13B-v1.3CLIP-LLCS-558K1eScienceQAfull_ft-12eckpt

Legacy Models (merged weights)

The model weights below are merged weights. You do not need to apply delta. The usage of LLaVA checkpoints should comply with the base LLM's model license.

Base LLMVision EncoderPretrain DataPretraining scheduleFinetuning DataFinetuning scheduleDownload
MPT-7B-ChatCLIP-LLCS-558K1eLLaVA-Instruct-80Kfull_ft-1epreview

Legacy Models (delta weights)

The model weights below are delta weights. The usage of LLaVA checkpoints should comply with the base LLM's model license: LLaMA.

You can add our delta to the original LLaMA weights to obtain the LLaVA weights.

Instructions:

  1. Get the original LLaMA weights in the huggingface format by following the instructions here.
  2. Use the following scripts to get LLaVA weights by applying our delta. It will automatically download delta weights from our Hugging Face account. In the script below, we use the delta weights of liuhaotian/LLaVA-7b-delta-v0 as an example. It can be adapted for other delta weights by changing the --delta argument (and base/target accordingly).
bash
python3 -m llava.model.apply_delta \
    --base /path/to/llama-7b \
    --target /output/path/to/LLaVA-7B-v0 \
    --delta liuhaotian/LLaVA-7b-delta-v0
Base LLMVision EncoderPretrain DataPretraining scheduleFinetuning DataFinetuning scheduleDownload
Vicuna-13B-v1.1CLIP-LCC-595K1eLLaVA-Instruct-158Kfull_ft-3edelta-weights
Vicuna-7B-v1.1CLIP-LLCS-558K1eLLaVA-Instruct-80Kfull_ft-1edelta-weights
Vicuna-13B-v0CLIP-LCC-595K1eLLaVA-Instruct-158Kfull_ft-3edelta-weights
Vicuna-13B-v0CLIP-LCC-595K1eScienceQAfull_ft-12edelta-weights
Vicuna-7B-v0CLIP-LCC-595K1eLLaVA-Instruct-158Kfull_ft-3edelta-weights

Legacy Projector weights

The following projector weights are deprecated, and the support for them may be removed in the future. They do not support zero-shot inference. Please use the projector weights in the table above if possible.

NOTE: When you use our pretrained projector for visual instruction tuning, it is very important to use the same base LLM and vision encoder as the one we used for pretraining the projector. Otherwise, the performance will be very bad.

When using these projector weights to instruction tune your LMM, please make sure that these options are correctly set as follows,

Shell
--mm_use_im_start_end True
--mm_use_im_patch_token False
Base LLMVision EncoderPretrain DataPretraining scheduleDownload
Vicuna-7B-v1.1CLIP-LLCS-558K1eprojector
Vicuna-13B-v0CLIP-LCC-595K1eprojector
Vicuna-7B-v0CLIP-LCC-595K1eprojector

When using these projector weights to instruction tune your LMM, please make sure that these options are correctly set as follows,

Shell
--mm_use_im_start_end False
--mm_use_im_patch_token False
Base LLMVision EncoderPretrain DataPretraining scheduleDownload
Vicuna-13B-v0CLIP-LCC-595K1eprojector