liuhaotian/LLaVA-Instruct-150K
Preview • Updated • 7.25k • 600
How to use marianna13/llava-phi-2-3b-GGUF with Transformers:
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("marianna13/llava-phi-2-3b-GGUF", dtype="auto")How to use marianna13/llava-phi-2-3b-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="marianna13/llava-phi-2-3b-GGUF", filename="ggml-model-f16.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
How to use marianna13/llava-phi-2-3b-GGUF with llama.cpp:
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf marianna13/llava-phi-2-3b-GGUF:F16 # Run inference directly in the terminal: llama-cli -hf marianna13/llava-phi-2-3b-GGUF:F16
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf marianna13/llava-phi-2-3b-GGUF:F16 # Run inference directly in the terminal: llama-cli -hf marianna13/llava-phi-2-3b-GGUF:F16
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf marianna13/llava-phi-2-3b-GGUF:F16 # Run inference directly in the terminal: ./llama-cli -hf marianna13/llava-phi-2-3b-GGUF:F16
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf marianna13/llava-phi-2-3b-GGUF:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf marianna13/llava-phi-2-3b-GGUF:F16
docker model run hf.co/marianna13/llava-phi-2-3b-GGUF:F16
How to use marianna13/llava-phi-2-3b-GGUF with Ollama:
ollama run hf.co/marianna13/llava-phi-2-3b-GGUF:F16
How to use marianna13/llava-phi-2-3b-GGUF with Unsloth Studio:
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for marianna13/llava-phi-2-3b-GGUF to start chatting
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for marianna13/llava-phi-2-3b-GGUF to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for marianna13/llava-phi-2-3b-GGUF to start chatting
How to use marianna13/llava-phi-2-3b-GGUF with Docker Model Runner:
docker model run hf.co/marianna13/llava-phi-2-3b-GGUF:F16
How to use marianna13/llava-phi-2-3b-GGUF with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull marianna13/llava-phi-2-3b-GGUF:F16
lemonade run user.llava-phi-2-3b-GGUF-F16
lemonade list
Quantized version of llava-phi-2-3b. Quantization was done using llama.cpp
make & ./llava-cli -m ../ggml-model-f16.gguf --mmproj ../mmproj-model-f16.gguf --image /path/to/image.jpg
| Model | Parameters | SQA | GQA | TextVQA | POPE |
|---|---|---|---|---|---|
| LLaVA-1.5 | 7.3B | 68.0 | 62.0 | 58.3 | 85.3 |
| MC-LLaVA-3B | 3B | - | 49.6 | 38.59 | - |
| LLaVA-Phi | 3B | 68.4 | - | 48.6 | 85.0 |
| moondream1 | 1.6B | - | 56.3 | 39.8 | - |
| llava-phi-2-3b | 3B | 69.0 | 51.2 | 47.0 | 86.0 |
| Model | BLEU_1 | BLEU_2 | BLEU_3 | BLEU_4 | METEOR | ROUGE_L | CIDEr | SPICE |
|---|---|---|---|---|---|---|---|---|
| llava-1.5-7b | 75.8 | 59.8 | 45 | 33.3 | 29.4 | 57.7 | 108.8 | 23.5 |
| llava-phi-2-3b | 67.7 | 50.5 | 35.7 | 24.2 | 27.0 | 52.4 | 85.0 | 20.7 |
16-bit