Granite Guardian

Granite Guardian 3.1 8B

by IBM watsonx · Legacy/deprecated in IBM watsonx.ai 2.4.0 documentation; open-weight model remains downloadable and usable through the IBM Granite Hugging Face repository.

Granite Guardian 3.1 8B is an IBM open-weight safety model for evaluating harmful content, jailbreaks, bias, RAG quality, and function-calling hallucinations. It uses prescribed scoring prompts, supports English text only, and normally returns binary Yes/No judgments. Its 128,000-token context and 8,192-token maximum output suit moderate-scale guardrail workloads, but it is not a general assistant, coding model, or multimodal system.

Text Reasoning Coding
Granite Guardian 3.1 8B is an open-weight IBM Research model for checking whether language-model inputs, outputs, retrieval results, and agent actions meet defined safety or quality criteria. It can identify risks including harmful content, jailbreak attempts, social bias, RAG hallucinations, and function-calling errors. Its 8-billion-parameter size offers a middle ground for guardrail workloads, but it is a specialist classifier and judge—not a general-purpose assistant.
Outputs

What Granite Guardian 3.1 8B can produce

Text
Inputs

What it can understand

Text
Capabilities

Support features

Streaming
Model profile

Performance characteristics

3/10 Reasoning
1/10 Coding
6/10 Speed
7/10 Cost efficiency
Specifications

Technical details

Family Granite Guardian
Type Other
Context window 128K tokens
Max output tokens 8K tokens
Release date 2024-12-18
Status Legacy/deprecated in IBM watsonx.ai 2.4.0 documentation; open-weight model remains downloadable and usable through the IBM Granite Hugging Face repository.
Knowledge cutoff notes

No authoritative model-specific knowledge-cutoff date was identified. The model is a specialized risk judge and should not be treated as a general-purpose knowledge model.

Model notes

Granite Guardian 3.1 8B is a fine-tuned Granite 3.1 8B Instruct model developed by IBM Research. Its intended interface uses a prescribed guardian scoring template and normally returns Yes or No risk labels; token probabilities can be used to estimate risk confidence. Supported risk areas include general harm, social bias, jailbreaking, violence, profanity, sexual content, unethical behavior, context relevance, groundedness, answer relevance, and function-calling hallucination. IBM describes the model as English-only and intended for moderate cost, latency, and throughput workloads. The model is Apache 2.0 licensed and available as open weights. The model card identifies Granite Guardian 3.3 8B as a newer version. Editorial scores are relative estimates for the model's specialized safety-judging role, not vendor benchmark scores.

Model guide

Granite Guardian 3.1 8B: IBM’s Open-Weight Safety and Guardrail Model

Granite Guardian 3.1 8B is an IBM Research safety model based on Granite 3.1 8B Instruct. It evaluates prompts, model responses, retrieved context, and proposed function calls for risks such as harmful content, jailbreaks, bias, and hallucinations. The English-only, text-based model uses prescribed scoring prompts and is intended as a specialized guardrail rather than a general conversational or coding model.

What is Granite Guardian 3.1 8B?

Granite Guardian 3.1 8B is an IBM Research safety and guardrail model released on December 18, 2024. It is a fine-tuned version of Granite 3.1 8B Instruct, adapted for evaluating risk and quality rather than for ordinary conversational assistance.

In practical terms, the model can sit beside a language-model application and act as a checking layer. It may inspect a user's prompt before generation, review an assistant's response afterward, assess retrieved documents in a retrieval-augmented generation (RAG) pipeline, or examine a proposed function call made by an agent. Its normal output is a binary Yes or No judgment produced through a prescribed scoring template.

The model is distributed as open weights under the Apache 2.0 license through IBM's Granite ecosystem and the IBM Granite Hugging Face organization. IBM's watsonx documentation marks the corresponding Granite Guardian 3.1 foundation-model entries as deprecated, but the open-weight model remains downloadable and usable through compatible inference tools.

What the model is designed to detect

Granite Guardian 3.1 8B supports several safety and reliability checks. General harm detection can be used to identify unsafe material, while more specific categories cover social bias, jailbreaking, violence, profanity, sexual content, and unethical behavior. These checks allow an application to apply different policies to different types of risk instead of relying on one broad moderation decision.

The model also supports checks for RAG workflows. Context relevance asks whether retrieved material is useful for the user's question. Groundedness checks whether an answer is supported by the supplied context. Answer relevance considers whether the response addresses the request. Together, these checks can help identify a response that sounds plausible but is poorly supported by the documents made available to the model.

A distinctive capability is function-calling hallucination detection. The model can inspect a proposed call to a tool or function for issues such as invalid syntax, incorrect arguments, fabricated information flows, a mismatch with the user request, or inconsistency with the available tool definition. This does not mean that Granite Guardian executes tools or acts as an agent. Rather, it evaluates an agent's proposed action before the surrounding application decides whether to execute it.

How scoring and output work

Granite Guardian 3.1 8B is intended to be used with IBM's prescribed guardian scoring prompts. The scoring template gives the model the criterion and the material to evaluate, such as a prompt, response, retrieved context, or function call. In its standard configuration, the result is a binary Yes or No label indicating whether the specified risk or condition is present.

Token probabilities can also be used to estimate confidence in the risk decision. This can be useful when an application needs a threshold rather than a strict binary rule—for example, sending borderline cases to human review. The probability should not be treated as a perfectly calibrated real-world risk score without testing it on the application's own data.

Using the model outside the prescribed scoring mode may produce unexpected or unsafe behavior, according to the model guidance. It should therefore be integrated as a purpose-built evaluator rather than prompted like a general assistant. Developers should validate the exact prompt format, labels, thresholds, and failure handling before relying on it in production.

Technical specifications and limits

SpecificationVerified detail
ProviderIBM Research / IBM Granite
Model familyGranite Guardian
ParametersApproximately 8 billion
Release dateDecember 18, 2024
Context window128,000 tokens
Maximum newly generated tokens8,192
Primary languageEnglish
LicenseApache 2.0
Typical outputText classification, normally Yes or No
PricingNo provider price is supplied for the open-weight model

The 128,000-token context limit is useful for evaluating long prompts, responses, retrieved passages, and agent traces, although the practical limit depends on the selected runtime and the amount of output requested. IBM's watsonx documentation reports up to 8,192 newly generated tokens for the 8B Guardian model. A guardrail decision normally needs far fewer output tokens than that maximum.

The model accepts English text and returns text. It does not natively accept images, audio, or video, and it does not generate non-text media. Applications that need multimodal moderation must use an upstream modality-specific system or convert the material into text before submitting it to Granite Guardian, with the resulting loss of direct access to the original media taken into account.

Reasoning, coding, tools, speed, and cost

Granite Guardian 3.1 8B can analyze relationships between a request, an answer, supporting context, and a proposed action, but it is not presented as a general reasoning model. Its reasoning capability is directed toward the supplied safety or quality criterion. It should not be selected to solve open-ended problems, carry on a conversation, or provide detailed explanations as its primary job.

Similarly, the model is not a coding assistant. It can inspect function-call syntax and arguments as part of hallucination detection, but that is different from generating, debugging, or maintaining software. The supplied editorial assessment rates its coding usefulness at 1 out of 10 and its specialized reasoning usefulness at 3 out of 10. These are editorial, relative scores—not IBM benchmark results—and reflect the model's narrow guardrail role.

Granite Guardian does not independently use external tools. Its function-calling-related capability is evaluative: an application supplies the proposed call and relevant tool definition for inspection. Streaming may be supported by compatible serving infrastructure, but the model itself should still be treated as a classifier whose result must be interpreted by application code.

The 8-billion-parameter size is intended for moderate cost, latency, and throughput requirements. The supplied editorial assessment rates its speed at 6 out of 10 and cost efficiency at 7 out of 10 relative to the broader model market. These ratings are subjective estimates, not published provider measurements. A smaller Guardian variant may be more appropriate when every millisecond matters or when very high-volume guardrailing is required, while a larger or more capable evaluator may be preferable for difficult, ambiguous, or domain-specific judgments.

Best use cases

  • Prompt screening: Check user requests for harmful, unethical, biased, or jailbreak-oriented content before passing them to a generative model.
  • Response monitoring: Review generated answers for policy violations or unsafe categories before displaying them.
  • RAG validation: Assess whether retrieved context is relevant, whether the answer is grounded in that context, and whether it actually answers the question.
  • Agent safety: Inspect proposed function calls for malformed arguments, unsupported actions, or inconsistencies with the user's request and tool definitions.
  • Observability and spot checks: Apply a consistent scoring prompt to samples from a production system and route uncertain cases to a human reviewer.

Because the model produces a focused classification, it can be useful as one component in a larger policy pipeline. A robust implementation may combine its result with application rules, access controls, tool permissions, logging, adversarial testing, and human escalation.

When to choose Granite Guardian 3.1 8B

Choose Granite Guardian 3.1 8B when you need an open-weight, text-based evaluator for English safety and reliability checks and can integrate IBM's scoring format. It is especially suitable when one model must cover both conventional content risks and more specialized checks such as RAG groundedness or function-calling hallucinations. Its moderate parameter count can be a reasonable compromise between a very small, low-latency guardrail and a larger evaluator with higher infrastructure requirements.

Its open-weight Apache 2.0 distribution may also suit teams that need to run the model in their own compatible environment rather than depend on a separately priced hosted endpoint. However, no hosted or per-token price is provided in the supplied research, so a total-cost comparison must include the team's own hardware, hosting, storage, and operations.

Another option may be more appropriate when the task is general conversation, code generation, complex reasoning, multilingual safety classification, or direct image, audio, or video analysis. Smaller Guardian models may offer better throughput for simple high-volume checks. A newer Granite Guardian release may be worth evaluating when the model card or deployment environment supports it; the supplied notes identify Granite Guardian 3.3 8B as a newer version, but do not provide enough comparative benchmark data to state that it is better for a particular workload.

Limitations and deployment cautions

The model was trained and tested on English data, so performance in other languages is not established by the supplied model information. Organizations handling multilingual content should test each target language independently rather than assume that English performance transfers.

Safety categories and thresholds are also application-dependent. A model judgment may not match an organization's legal, cultural, or domain-specific policy. Before production deployment, test representative examples, adversarial prompts, borderline cases, and false-positive scenarios. High-impact decisions should not be delegated to this model without human review and additional controls.

Granite Guardian 3.1 8B is specialized and should not replace the underlying language model, a permission system, or application-level enforcement. It can flag a proposed tool call, for example, but the application must still decide whether the tool is available, whether the user is authorized, and whether the action should be executed. Likewise, a groundedness judgment does not prove that the retrieved source itself is accurate.

The model's related watsonx foundation-model entries are documented as deprecated, while the open-weight repository remains available. Teams should verify the status of their chosen distribution, runtime, and serving stack before committing to a long-term deployment. The model's intended scoring interface and known language limitations make local evaluation particularly important.

Bottom line

Granite Guardian 3.1 8B is best understood as an open-weight inspection layer for language-model systems. Its value lies in focused judgments about safety, RAG quality, and proposed function calls—not in general conversation, coding, or multimodal generation. For English applications that need a configurable guardrail and can support its prescribed scoring workflow, it offers broad coverage in an 8-billion-parameter model. Its specialist design, English-only scope, lack of direct media support, and need for surrounding application controls should shape any production decision.


Answers to Frequently Asked Questions

What are the limitations of Granite Guardian 3.1 8B?
Granite Guardian 3.1 8B is specialized for English safety and reliability evaluation and is not a general assistant, coding model, multilingual safety system, or multimodal moderator. Its decisions require application-specific testing, thresholds, and surrounding controls, including permissions, logging, adversarial testing, and human review for high-impact or uncertain cases.
Can Granite Guardian 3.1 8B validate RAG responses and function calls?
Yes. It can evaluate RAG context relevance, answer groundedness, and answer relevance. It can also inspect proposed function calls for invalid syntax, incorrect arguments, fabricated information flows, mismatches with the user request, and inconsistencies with tool definitions. It evaluates these calls but does not execute tools or make authorization decisions.
What are the main technical specifications of Granite Guardian 3.1 8B?
Granite Guardian 3.1 8B has approximately 8 billion parameters, a 128,000-token context window, and a maximum of 8,192 newly generated tokens. It primarily supports English text, is distributed under the Apache 2.0 license, and is intended for text classification rather than general conversation.
What is Granite Guardian 3.1 8B used for?
Granite Guardian 3.1 8B is an IBM Research safety and guardrail model used to evaluate prompts, generated responses, retrieved documents, and proposed function calls. It can detect harmful content, jailbreaks, bias, violence, profanity, sexual content, unethical behavior, RAG quality issues, and function-calling hallucinations.
How does Granite Guardian 3.1 8B produce safety decisions?
The model is designed to use IBM's prescribed guardian scoring prompts and normally returns a binary Yes or No judgment indicating whether a specified risk or condition is present. Token probabilities can also help applications estimate confidence and route borderline cases for human review.


Sources 5
AI Provider

About IBM watsonx