Instructions to use cjpais/llava-v1.6-34B-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use cjpais/llava-v1.6-34B-gguf with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf cjpais/llava-v1.6-34B-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf cjpais/llava-v1.6-34B-gguf:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf cjpais/llava-v1.6-34B-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf cjpais/llava-v1.6-34B-gguf:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf cjpais/llava-v1.6-34B-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf cjpais/llava-v1.6-34B-gguf:Q4_K_M
Use Docker
docker model run hf.co/cjpais/llava-v1.6-34B-gguf:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use cjpais/llava-v1.6-34B-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cjpais/llava-v1.6-34B-gguf" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cjpais/llava-v1.6-34B-gguf", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/cjpais/llava-v1.6-34B-gguf:Q4_K_M
- Ollama
How to use cjpais/llava-v1.6-34B-gguf with Ollama:
ollama run hf.co/cjpais/llava-v1.6-34B-gguf:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use cjpais/llava-v1.6-34B-gguf with Docker Model Runner:
docker model run hf.co/cjpais/llava-v1.6-34B-gguf:Q4_K_M
- Lemonade
How to use cjpais/llava-v1.6-34B-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull cjpais/llava-v1.6-34B-gguf:Q4_K_M
Run and chat with the model
lemonade run user.llava-v1.6-34B-gguf-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Some things that struck me as odd.
I was even able to move this mmproj to the gguf folder of a fine-tuned YI-34B-based model, then treat it as a vision model, and it worked normally.
This is mysterious to me and I don't know how it was done. Maybe I should look for and read the relevant materials.
Anyway, thanks for everything you have done!
I believe this is as expected! There could be some issues, but I believe that since it's a finetune of the same base model, the projector maps the embedding space of the image onto the embedding space of the model. I don't believe with finetunes the embedding space changes much. From my limited understanding, conceptually we can create this embedding space that the LLM and the Vision part of the model both speak. Now that they speak the same language we basically just use that language everywhere. So when the model receives an image, it gets converted into this 'language' and take tokens just like putting text in does.
I don't 100% know this to be the case, but have read it a few places. I'm certainly not an expert, but conceptually it makes sense to me. Either reading the LLaVA paper itself, or maybe the CLIP paper/relevant docs would be most helpful here. I've had someone explain me something like this in the past, but I've not done too much digging independently other than just trying to make things work hahah
Thanks for your explanation. I roughly understand it.