How to use from
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 Sagicc/granite-8b-code-instruct-Q5_K_M-GGUF:Q5_K_M
# Run inference directly in the terminal:
llama cli -hf Sagicc/granite-8b-code-instruct-Q5_K_M-GGUF:Q5_K_M
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf Sagicc/granite-8b-code-instruct-Q5_K_M-GGUF:Q5_K_M
# Run inference directly in the terminal:
llama cli -hf Sagicc/granite-8b-code-instruct-Q5_K_M-GGUF:Q5_K_M
Use pre-built binary
# 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 Sagicc/granite-8b-code-instruct-Q5_K_M-GGUF:Q5_K_M
# Run inference directly in the terminal:
./llama-cli -hf Sagicc/granite-8b-code-instruct-Q5_K_M-GGUF:Q5_K_M
Build from source code
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 Sagicc/granite-8b-code-instruct-Q5_K_M-GGUF:Q5_K_M
# Run inference directly in the terminal:
./build/bin/llama-cli -hf Sagicc/granite-8b-code-instruct-Q5_K_M-GGUF:Q5_K_M
Use Docker
docker model run hf.co/Sagicc/granite-8b-code-instruct-Q5_K_M-GGUF:Q5_K_M
Quick Links

Sagicc/granite-8b-code-instruct-Q5_K_M-GGUF

This model was converted to GGUF format from ibm-granite/granite-8b-code-instruct using llama.cpp after addded support for small Granite Code models in b3026 'llama.cpp release'. Refer to the original model card for more details on the model.

For now only works with llama.cpp

Use with llama.cpp

Install llama.cpp through brew.

brew install ggerganov/ggerganov/llama.cpp

Invoke the llama.cpp server or the CLI.

CLI:

llama-cli --hf-repo Sagicc/granite-8b-code-instruct-Q5_K_M-GGUF --model granite-8b-code-instruct.Q5_K_M.gguf -p "You are an AI assistant"

Server:

llama-server --hf-repo Sagicc/granite-8b-code-instruct-Q5_K_M-GGUF --model granite-8b-code-instruct.Q5_K_M.gguf -c 2048

Note: You can also use this checkpoint directly through the usage steps listed in the Llama.cpp repo as well.

git clone https://github.com/ggerganov/llama.cpp &&             cd llama.cpp &&             make &&             ./main -m granite-8b-code-instruct.Q5_K_M.gguf -n 128
Downloads last month
32
GGUF
Model size
8B params
Architecture
llama
Hardware compatibility
Log In to add your hardware

5-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Sagicc/granite-8b-code-instruct-Q5_K_M-GGUF

Quantized
(20)
this model

Datasets used to train Sagicc/granite-8b-code-instruct-Q5_K_M-GGUF

Evaluation results