Downloads · 30 days
8
18% of all-time downloads
TitanML/tinyllava-1.1b-v0.1
tinyllava-1.1b-v0.1 is a visual question answering model from TitanML. Use it for the visual question answering task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
This was trained by using TinyLlama as the base model using the BakLlava repo.
Downloads · 30 days
8
18% of all-time downloads
All-time downloads
45
Public
Repo size
5.6 GB
Likes
0
Public
Click a slice to open those files.
.bin2.8 GB · 100%
From the Hugging Face model README
This was trained by using TinyLlama as the base model using the BakLlava repo.
Prompt for both was, "What is shown in the given image?"
<img src="berserk.png" width="50%"> <br> <img src="sd.png" width="50%">If you are not using Linux, do NOT proceed, see instructions for macOS and Windows.
git clone https://github.com/haotian-liu/LLaVA.git
cd LLaVA
conda create -n llava python=3.10 -y
conda activate llava
pip install --upgrade pip # enable PEP 660 support
pip install -e .
pip install -e ".[train]"
pip install flash-attn --no-build-isolation
git pull
pip install -e .
python -m llava.serve.controller --host 0.0.0.0 --port 10000
python -m llava.serve.gradio_web_server --controller http://localhost:10000 --model-list-mode reload
You just launched the Gradio web interface. Now, you can open the web interface with the URL printed on the screen. You may notice that there is no model in the model list. Do not worry, as we have not launched any model worker yet. It will be automatically updated when you launch a model worker.
This is the actual worker that performs the inference on the GPU. Each worker is responsible for a single model specified in --model-path.
python -m llava.serve.model_worker --host 0.0.0.0 --controller http://localhost:10000 --port 40000 --worker http://localhost:40000 --model-path ameywtf/tinyllava-1.1b-v0.1
Wait until the process finishes loading the model and you see "Uvicorn running on ...". Now, refresh your Gradio web UI, and you will see the model you just launched in the model list.
You can launch as many workers as you want, and compare between different model checkpoints in the same Gradio interface. Please keep the --controller the same, and modify the --port and --worker to a different port number for each worker.
python -m llava.serve.model_worker --host 0.0.0.0 --controller http://localhost:10000 --port <different from 40000, say 40001> --worker http://localhost:<change accordingly, i.e. 40001> --model-path <ckpt2>
If you are using an Apple device with an M1 or M2 chip, you can specify the mps device by using the --device flag: --device mps.