---
license: apache-2.0
base_model:
- lmms-lab/LLaVA-Video-7B-Qwen2
---
## Installation
Clone the repository and navigate to the RRPO directory:
```sh
git clone https://github.com/pritamqu/RRPO
cd RRPO
conda create -n llava python=3.10 -y
conda activate llava
pip install -r llavavideo.txt
```
## Download weights
```
# base model
git clone git@hf.co:lmms-lab/LLaVA-Video-7B-Qwen2
# RRPO weights
git clone git@hf.co:pritamqu/LLaVA-Video-7B-Qwen2-RRPO-32f-LORA
```
## Inference
```
conda activate llava
BASE_WEIGHTS="./LLaVA-Video-7B-Qwen2"
WEIGHTS_ROOT="./"
## using lora weights
python inference.py \
--base_model_name "llavavideo_qwen_7b" \
--model-path ${BASE_WEIGHTS} \
--model-path2 ${WEIGHTS_ROOT}"/LLaVA-Video-7B-Qwen2-RRPO-32f-LORA" \
--video_path "sample_video.mp4" \
--question "Describe this video." \
--model_max_length 1024
```