Instructions to use liuhaotian/llava-v1.5-7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use liuhaotian/llava-v1.5-7b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="liuhaotian/llava-v1.5-7b")# Load model directly from transformers import AutoProcessor, AutoModelForCausalLM processor = AutoProcessor.from_pretrained("liuhaotian/llava-v1.5-7b") model = AutoModelForCausalLM.from_pretrained("liuhaotian/llava-v1.5-7b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use liuhaotian/llava-v1.5-7b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "liuhaotian/llava-v1.5-7b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "liuhaotian/llava-v1.5-7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/liuhaotian/llava-v1.5-7b
- SGLang
How to use liuhaotian/llava-v1.5-7b with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "liuhaotian/llava-v1.5-7b" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "liuhaotian/llava-v1.5-7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "liuhaotian/llava-v1.5-7b" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "liuhaotian/llava-v1.5-7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use liuhaotian/llava-v1.5-7b with Docker Model Runner:
docker model run hf.co/liuhaotian/llava-v1.5-7b
please
#32 opened 10 months ago
by
zhixing0824
Please
#31 opened 10 months ago
by
zhixing0824
llava test
#30 opened 11 months ago
by
omeriko1
llava
#29 opened about 1 year ago
by
yoppasamurai
Upload Alina na zabore2.jpg
#28 opened over 1 year ago
by
Prazis
Update config.json
#27 opened over 1 year ago
by
sherlockjjkj
FileNotFoundError: [Errno 2] No such file or directory: 'mm_projector.bin'
#26 opened over 1 year ago
by
TessWOfficial
Create preprocessor_config.json
#25 opened over 1 year ago
by
naziap
Cannot use model with automodel and autoprocessor
#24 opened over 1 year ago
by
Rajarshi-Roy-research
Cannot use the model with vllm
1
#23 opened over 1 year ago
by
NahuelCosta
Adding license metadata
#22 opened over 1 year ago
by
robertwebbmodular
Create preprocessor_config.json
3
#20 opened over 1 year ago
by
Ruthw1k
Unable to run the model on Colab
2
#19 opened almost 2 years ago
by
Abdulrahman1989
Error loading model due to ValueError: 'device_map' had weights offloaded to disk
#18 opened almost 2 years ago
by
csmith-enpro
Unable to deploy
1
#17 opened almost 2 years ago
by
harry1874
Leaderboard
#16 opened about 2 years ago
by
Stark2008
OSError: liuhaotian/llava-v1.5-7b does not appear to have a file named preprocessor_config.json. Checkout 'https://huggingface.co/liuhaotian/llava-v1.5-7b/tree/main' for available files.
๐ 29
7
#15 opened about 2 years ago
by
ghLcd9dG
Adding `safetensors` variant of this model
#14 opened over 2 years ago
by
SFconvertbot
Why can't I generate public access URL
#10 opened over 2 years ago
by
jiehushi
ElasticSearch KQL syntax generation
#9 opened over 2 years ago
by
sanujen
Adding `safetensors` variant of this model
#8 opened over 2 years ago
by
SFconvertbot
How could I deploy liuhaotian/llava-v1.5-7b on a server?
1
#7 opened over 2 years ago
by
andreydmitr20
Not genrating response on HuggingFace Spaces
1
#6 opened almost 3 years ago
by
catworld1212
A Fork Supporting SageMaker Deployment
#5 opened almost 3 years ago
by
liltom-eth
gguf variant availability
๐ 3
1
#4 opened almost 3 years ago
by
scrawnyether
Gptq version? Thanks!
๐ 4
4
#3 opened almost 3 years ago
by
YaTharThShaRma999
Demo as a space?
โค๏ธ 4
10
#2 opened almost 3 years ago
by
clem
comparison with GPT4V
๐ 4
1
#1 opened almost 3 years ago
by
clem