CoolFace
Modelpublic

RaviNaik/Llava-Phi2

sourceHugging Facemitupdated 2y agoView on Hugging Face
5likes26downloads
Model Card

Model Card for Model ID

This is a multimodal implementation of Phi2 model inspired by LlaVA-Phi.

Model Details

  1. 1.LLM Backbone: Phi2
  2. 2.Vision Tower: clip-vit-large-patch14-336
  3. 3.Pretraining Dataset: LAION-CC-SBU dataset with BLIP captions(200k samples)
  4. 4.Finetuning Dataset: Instruct 150k dataset based on COCO
  5. 5.Finetuned Model: RaviNaik/Llava-Phi2

Model Sources

<!-- Provide the basic links for the model. -->

How to Get Started with the Model

Use the code below to get started with the model.

  1. 1.Clone this repository and navigate to llava-phi folder
bash
git clone https://github.com/zhuyiche/llava-phi.git
cd llava-phi
  1. 1.Install Package
bash
conda create -n llava_phi python=3.10 -y
conda activate llava_phi
pip install --upgrade pip  # enable PEP 660 support
pip install -e .
  1. 1.Run the Model
bash
python llava_phi/eval/run_llava_phi.py --model-path="RaviNaik/Llava-Phi2" \
    --image-file="https://huggingface.co/RaviNaik/Llava-Phi2/resolve/main/people.jpg?download=true" \
    --query="How many people are there in the image?"

Acknowledgement

This implementation is based on wonderful work done by: \ LlaVA-Phi \ Llava \ Phi2