[!NOTE] 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-4.0-350m-base
The examples below use the BF16 quantization (granite-4.0-350m-base-BF16.gguf). Other quantizations in this repository work the same way; only the file name changes. See the llama.cpp documentation for complete usage and options, including the llama cli and llama serve flag references.
example: llama cli
Start an interactive chat:
llama cli -m granite-4.0-350m-base-BF16.gguf
Or run a single prompt and exit:
llama cli -m granite-4.0-350m-base-BF16.gguf -p "Explain what a GGUF file is in two sentences." --single-turn
example: llama serve using OpenAI API
llama serve -m granite-4.0-350m-base-BF16.gguf \
--port 8080
curl http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"messages": [
{ "role": "user", "content": "Explain what a GGUF file is in two sentences." }
]
}'
The response is a JSON message with the generated text in the choices[0].message.content field.
b117985.20.2