Model guide
IBM Granite 4.1 8B
Granite 4.1 8B is an instruction model to try for source-grounded answers and applications that need tool calls. Make the first comparison a question with a known answer in a supplied document. Test tool calling through your actual client separately, because the model does not provide the tool service itself.
At a glance
- Parameters
- 8.79B
- Accepts
- Text
- Returns
- Text, including code
- Published context limit
- 131,072 tokens
- Model format
- Safetensors · GGUF
- Software and download hosts
- Ollama. Follow the exact setup below; this list does not establish support for every format, input type or software version.
- Suggested compression
- Q4_K_M
- Model-weight download
- Q4_K_M weights · 5.35 GBibm-granite (model publisher)granite-4.1-8b-Q4_K_M.gguf
- Languages
- Arabic · Chinese · Czech · Dutch · English · French · German · Italian · Japanese · Korean · Portuguese · Spanish
- License
- Apache-2.0
Will it fit?
IBM Granite 4.1 8B · Q4_K_M download. Fit depends on your computer, the app you run it in and the conversation length you need.
Check on your computerBest for
- Ask which of two dated records supports a claim. Score Granite on source attribution and its handling of the missing decision-maker.
Choose something else when
- If you need the model to take action, run a separate test through the tool-enabled host you plan to use.
First setup
Check a representative task
Test a grounded answer that must keep two records and a missing fact separate.
Use only the two records below. Answer: (1) What is the shipping date in each record? (2) Can you establish a single final date? (3) Which fact is not in either record? Keep the answer under 80 words.
Record A, dated 3 November: shipping is planned for 11 November, subject to supplier confirmation.
Record B, undated: shipping is planned for 13 November. It does not identify an approval or supersede another record.
Requested missing fact: the name of the approving manager.
Check the result: Identify 11 November with its condition in A and 13 November in B. Do not decide that the undated record supersedes A. State that neither record names an approving manager. Record which date and condition belong to A, which date belongs to B, and whether the model invents an approver.
This creates a 4,096-token copy of ibm/granite4.1:8b named granite-4-1-8b-short-context. Save the following as a file named Modelfile in your working folder:
FROM ibm/granite4.1:8b
PARAMETER num_ctx 4096
Then run these commands from that folder:
ollama pull ibm/granite4.1:8b
ollama create granite-4-1-8b-short-context -f ./Modelfile
ollama run granite-4-1-8b-short-context
Run the task check. While the model is loaded, run ollama ps in another terminal and check CONTEXT and PROCESSOR.
The recorded Ollama package is Q4_K_M: 5.35 GB of model weights. Use Ollama 0.40.18 or a supporting newer release. A Hugging Face GGUF or MLX checkpoint is a separate representation; choose the matching source and runner in the memory calculator.
See Ollama context settings and the Modelfile instructions.
Open LM Studio’s Discover tab, search for ibm-granite/granite-4.1-8b-GGUF, and download granite-4.1-8b-Q4_K_M.gguf (Q4_K_M, 5.35 GB). See the download files. Select the file in Chat, set context to 4,096, then load it. Run the task check. If it will not load, open LM Studio Model Will Not Load.
Open a terminal in the extracted llama.cpp release folder. On Windows, replace ./llama-server below with .\llama-server.exe:
./llama-server -hf ibm-granite/granite-4.1-8b-GGUF -hff granite-4.1-8b-Q4_K_M.gguf -c 4096 --host 127.0.0.1 --port 8080
The server downloads the selected model. Wait for the model to load, then open http://127.0.0.1:8080 in your browser. Run the task check and inspect the result against its acceptance criteria. Keep the server terminal open; press Ctrl+C there to stop the server. The file list identifies the exact download. If the command fails: Unknown architecture? Update the runner. Allocation failed? Retry with less context or a smaller weight file.
Load the model, start a fresh chat and time your usual prompt. Record time until the first useful word and time until the full answer. Note the processor, context and output length when comparing another run.
