Instructions to use abetlen/paligemma-3b-mix-224-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 abetlen/paligemma-3b-mix-224-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 abetlen/paligemma-3b-mix-224-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf abetlen/paligemma-3b-mix-224-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 abetlen/paligemma-3b-mix-224-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf abetlen/paligemma-3b-mix-224-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 abetlen/paligemma-3b-mix-224-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf abetlen/paligemma-3b-mix-224-gguf:Q4_K_M
Use Docker
docker model run hf.co/abetlen/paligemma-3b-mix-224-gguf:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use abetlen/paligemma-3b-mix-224-gguf with Ollama:
ollama run hf.co/abetlen/paligemma-3b-mix-224-gguf:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use abetlen/paligemma-3b-mix-224-gguf with Docker Model Runner:
docker model run hf.co/abetlen/paligemma-3b-mix-224-gguf:Q4_K_M
- Lemonade
How to use abetlen/paligemma-3b-mix-224-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull abetlen/paligemma-3b-mix-224-gguf:Q4_K_M
Run and chat with the model
lemonade run user.paligemma-3b-mix-224-gguf-Q4_K_M
List all available models
lemonade list
- Atomic Chat
GGUFs of Google's Paligemma 3b 224 mix model. Currently in development so you'll need to use it with https://github.com/ggerganov/llama.cpp/pull/7553 or https://github.com/abetlen/llama-cpp-python/pull/1777
Installation
pip install git+https://github.com/abetlen/llama-cpp-python.git@add-paligemma-support
Usage
from llama_cpp import Llama
from llama_cpp.llama_chat_format import PaliGemmaChatHandler
chat_handler = PaliGemmaChatHandler.from_pretrained(
repo_id="abetlen/paligemma-3b-mix-224-gguf",
filename="*mmproj*",
)
llm = Llama.from_pretrained(
repo_id="abetlen/paligemma-3b-mix-224-gguf",
filename="*text-model-q4_k_m.gguf",
chat_handler=chat_handler,
n_gpu_layers=-1,
n_ctx=2048, # n_ctx should be increased to accommodate the image embedding
n_ubatch=512, # must be large enough to fit image embeddings and text input in a single batch
n_batch=512
)
response = llm.create_chat_completion(
messages = [
{
"role": "user",
"content": [
{"type" : "text", "text": "What's in this image?"},
{"type": "image_url", "image_url": {"url": "https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg" } }
]
}
]
)
- Downloads last month
- 503
Hardware compatibility
Log In to add your hardware
4-bit
8-bit
16-bit
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support