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

YorkieOH10/granite-8b-code-instruct-Q4_K_M-GGUF

This model was converted to GGUF format from ibm-granite/granite-8b-code-instruct using llama.cpp via the ggml.ai's GGUF-my-repo space. Refer to the original model card for more details on the model.

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 YorkieOH10/granite-8b-code-instruct-Q4_K_M-GGUF --model granite-8b-code-instruct.Q4_K_M.gguf -p "The meaning to life and the universe is"

Server:

llama-server --hf-repo YorkieOH10/granite-8b-code-instruct-Q4_K_M-GGUF --model granite-8b-code-instruct.Q4_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.Q4_K_M.gguf -n 128
Downloads last month
18
GGUF
Model size
8B params
Architecture
llama
Hardware compatibility
Log In to add your hardware

4-bit

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

Model tree for YorkieOH10/granite-8b-code-instruct-Q4_K_M-GGUF

Quantized
(20)
this model

Datasets used to train YorkieOH10/granite-8b-code-instruct-Q4_K_M-GGUF

Evaluation results