Granite Quantized Models
Collection
Quantized versions of IBM Granite models. • 62 items • Updated • 36
How to use ibm-granite/granite-vision-4.1-4b-GGUF with llama.cpp:
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf ibm-granite/granite-vision-4.1-4b-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf ibm-granite/granite-vision-4.1-4b-GGUF:Q4_K_M
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf ibm-granite/granite-vision-4.1-4b-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf ibm-granite/granite-vision-4.1-4b-GGUF:Q4_K_M
# 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 ibm-granite/granite-vision-4.1-4b-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf ibm-granite/granite-vision-4.1-4b-GGUF:Q4_K_M
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 ibm-granite/granite-vision-4.1-4b-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf ibm-granite/granite-vision-4.1-4b-GGUF:Q4_K_M
docker model run hf.co/ibm-granite/granite-vision-4.1-4b-GGUF:Q4_K_M
How to use ibm-granite/granite-vision-4.1-4b-GGUF with Ollama:
ollama run hf.co/ibm-granite/granite-vision-4.1-4b-GGUF:Q4_K_M
How to use ibm-granite/granite-vision-4.1-4b-GGUF with Pi:
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ibm-granite/granite-vision-4.1-4b-GGUF:Q4_K_M
# Install Pi:
npm install -g @earendil-works/pi-coding-agent
# Add to ~/.pi/agent/models.json:
{
"providers": {
"llama-cpp": {
"baseUrl": "http://localhost:8080/v1",
"api": "openai-completions",
"apiKey": "none",
"models": [
{
"id": "ibm-granite/granite-vision-4.1-4b-GGUF:Q4_K_M"
}
]
}
}
}# Start Pi in your project directory: pi
How to use ibm-granite/granite-vision-4.1-4b-GGUF with Docker Model Runner:
docker model run hf.co/ibm-granite/granite-vision-4.1-4b-GGUF:Q4_K_M
How to use ibm-granite/granite-vision-4.1-4b-GGUF with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ibm-granite/granite-vision-4.1-4b-GGUF:Q4_K_M
lemonade run user.granite-vision-4.1-4b-GGUF-Q4_K_M
lemonade list
How to use ibm-granite/granite-vision-4.1-4b-GGUF with Hermes Agent:
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ibm-granite/granite-vision-4.1-4b-GGUF:Q4_K_M
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default ibm-granite/granite-vision-4.1-4b-GGUF:Q4_K_M
hermes
How to use ibm-granite/granite-vision-4.1-4b-GGUF with OpenClaw:
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ibm-granite/granite-vision-4.1-4b-GGUF:Q4_K_M
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "ibm-granite/granite-vision-4.1-4b-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
openclaw agent --local --agent main --message "Hello from Hugging Face"
# Install OpenClaw:
npm install -g openclaw@latest# Register the local server and set it as the default model:
openclaw onboard --non-interactive --mode local \
--auth-choice custom-api-key \
--custom-base-url http://127.0.0.1:8080/v1 \
--custom-model-id "ibm-granite/granite-vision-4.1-4b-GGUF:" \
--custom-provider-id llama-cpp \
--custom-compatibility openai \
--custom-text-input \
--accept-risk \
--skip-healthopenclaw agent --local --agent main --message "Hello from Hugging Face"This repository contains models that have been converted to the GGUF format with various quantizations from an IBM Granite base model.
Please reference the base model's full model card here: https://huggingface.co/ibm-granite/granite-vision-4.1-4b
4-bit
5-bit
6-bit
8-bit
16-bit
Base model
ibm-granite/granite-vision-4.1-4b
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp# Start a local OpenAI-compatible server: llama serve -hf ibm-granite/granite-vision-4.1-4b-GGUF: