Model Zoo

Huggingface

All weights are converted into Huggingface format and totally compatible with the base repositories (LLaVA, mPLUG-Owl, InternLM-XComposer). See our quick start on how to use them.

Released:

ModelScope

If your server is facing poor connection to Huggingface, we provide an alternative way to download weights from ModelScope. Different from direct Huggingface weights, you need to use the two following steps to load them:

Step 1: Download Weights

The links are as follows:

Released:

To use them, you need to install Git LFS and then clone the repositories directly from ModelScope, under the main directory of Q-Instruct.

git clone https://www.modelscope.cn/qfuture/$MODEL_NAME_qinstruct_preview_v0.1.git

Step 2: Redirect the Model Paths to Your Local Directory

After that, modify the model_path in quick start to the local path (i.e. $MODEL_NAME_qinstruct_preview_v0.1) to smoothly load the weights downloaded from ModelScope.

See the Example Code for Single Query on LLaVA-v1.5-7B below:

from llava.mm_utils import get_model_name_from_path
from llava.eval.run_llava import eval_model
model_path = "llava_v1.5_7b_qinstruct_preview_v0.1/" ## Modify Here to Your Local Relative Path ##
prompt = "Rate the quality of the image. Think step by step."
image_file = "fig/sausage.jpg"
args = type('Args', (), {
    "model_path": model_path,
    "model_base": None,
    "model_name": get_model_name_from_path(model_path),
    "query": prompt,
    "conv_mode": None,
    "image_file": image_file,
    "sep": ",",
})()
eval_model(args)