Views
No views yet
[!Note] LLaVA-Mini only requires 1 token to represent each image, which improves the efficiency of image and video understanding, including:
- Computational effort: 77% FLOPs reduction
- Response latency: reduce from 100 milliseconds to 40 milliseconds
- VRAM memory usage: reduce from 360 MB/image to 0.6 MB/image, support 3-hour video processing


1# Launch a controller
2python -m llavamini.serve.controller --host 0.0.0.0 --port 10000 &
3
4# Build the API of LLaVA-Mini
5CUDA_VISIBLE_DEVICES=0 python -m llavamini.serve.model_worker --host 0.0.0.0 --controller http://localhost:10000 --port 40000 --worker http://localhost:40000 --model-path ICTNLP/llava-mini-llama-3.1-8b --model-name llava-mini &
6
7# Start the interactive interface
8python -m llavamini.serve.gradio_web_server --controller http://localhost:10000 --model-list-mode reload --port 78601conda create -n llavamini python=3.10 -y
2conda activate llavamini
3pip install -e .
4pip install -e ".[train]"
5pip install flash-attn --no-build-isolation--image-file :1# Image Understanding
2CUDA_VISIBLE_DEVICES=0 python llavamini/eval/run_llava_mini.py \
3 --model-path ICTNLP/llava-mini-llama-3.1-8b \
4 --image-file llavamini/serve/examples/baby_cake.png \
5 --conv-mode llava_llama_3_1 --model-name "llava-mini" \
6 --query "What's the text on the cake?"--video-file :1# Video Understanding
2CUDA_VISIBLE_DEVICES=0 python llavamini/eval/run_llava_mini.py \
3 --model-path ICTNLP/llava-mini-llama-3.1-8b \
4 --video-file llavamini/serve/examples/fifa.mp4 \
5 --conv-mode llava_llama_3_1 --model-name "llava-mini" \
6 --query "What happened in this video?"




@misc{llavamini,
title={LLaVA-Mini: Efficient Image and Video Large Multimodal Models with One Vision Token},
author={Shaolei Zhang and Qingkai Fang and Zhe Yang and Yang Feng},
year={2025},
eprint={2501.03895},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2501.03895},
}zhangshaolei20z@ict.ac.cn.