alt.freeweights.granite / granite-3.2-8b-lora-uncertainty
From: ibm-granite <huggingface.co/ibm-granite>Newsgroups: alt.freeweights.graniteSubject:

granite-3.2-8b-lora-uncertainty

Date: 2026-11-15Commit: 1308611Signed: 2DC28CC7B26A283B ✓

Text generation model. Safetensors weights, 23.6 MB in all. Published by ibm-granite under Apache-2.0.

granite23.6MBgranite-3.2-8b-lora-uncertaintysafetensorspermissive
FactsParamsnot statedSize23.6 MBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get ibm-granite/granite-3.2-8b-lora-uncertainty
# manifest sha256 f09e72c4767b… · 23.6 MB · 4 files
$ fw verify ./granite-3.2-8b-lora-uncertainty ibm-granite/granite-3.2-8b-lora-uncertainty
From sourceHosted (signed)ibm-granite/granite-3.2-8b-lora-uncertaintyLast check: 2026-11-15 04:31 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Overview

Size
23.6 MB
Weights
23.6 MB (safetensors)
Parameters
not stated
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
4, each with a sha256
Publisher
ibm-granite
Added
2026-11-15
Section
alt.freeweights.granite
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 04:31 UTCpassed

Model card

From the publisher at commit 1308611. Shown as plain text with links; images open at the publisher.

Granite 3.2 8B Instruct - Uncertainty LoRA#

Welcome to Granite Experiments!

Think of Experiments as a preview of what's to come. These projects are still under development, but we wanted to let the open-source community take them for spin! Use them, break them, and help us build what's next for Granite – we'll keep an eye out for feedback and questions in the Community section. Happy exploring!

Model Summary#

Granite 3.2 8b Instruct - Uncertainty is a LoRA adapter for ibm-granite/granite-3.2-8b-instruct, adding the capability to provide calibrated certainty scores when answering questions when prompted, in addition to retaining the full abilities of the ibm-granite/granite-3.2-8b-instruct model.

Model Sources#
  • Paper: The Granite Uncertainty 3.2 8b model is finetuned to provide certainty scores mimicking the output of a calibrator trained via the method in [[Shen et al. ICML 2024] Thermometer: Towards Universal Calibration for Large Language Models](https://arxiv.org/abs/2403.08819)

Usage#

Intended use#

This is an experimental LoRA testing new functionality being developed for IBM's Granite LLM family. We are welcoming the community to test it out and give us feedback, but we are NOT recommending this model be used for real deployments at this time. Stay tuned for more updates on the Granite roadmap.

Certainty score definition The model will respond with a certainty percentage, quantized to 10 possible values (i.e. 5%, 15%, 25%,...95%). This percentage is calibrated in the following sense: given a set of answers assigned a certainty score of X%, approximately X% of these answers should be correct. See the eval experiment below for out-of-distribution verification of this behavior.

Certainty score interpretation Certainty scores calibrated as defined above may at times seem biased towards moderate certainty scores for the following reasons. Firstly, as humans we tend to be overconfident in our evaluation of what we know and don't know - in contrast, a calibrated model is less likely to output very high or very low confidence scores, as these imply certainty of correctness or incorrectness. Examples where you might see very low confidence scores might be on answers where the model's response was something to the effect of "I don't know", which is easy to evaluate as not being the correct answer to the question (though it is the appropriate one). Secondly, remember that the model is evaluating itself - correctness/incorrectness that may be obvious to us or to larger models may be less obvious to an 8b model. Finally, teaching a model every fact it knows and doesn't know is not possible, hence it must generalize to questions of wildly varying difficulty (some of which may be trick questions!) and to settings where it has not had its outputs judged. Intuitively, it does this by extrapolating based on related questions it has been evaluated on in training - this is an inherently inexact process and leads to some hedging.

Possible downstream use cases (not implemented)

  • Human usage: Certainty scores give human users an indication of when to trust answers from the model (which should be augmented by their own knowledge).
  • Model routing/guards: If the model has low certainty (below a chosen threshold), it may be worth sending the request to a larger, more capable model or simply choosing not to show the response to the user.
  • RAG: Granite Uncertainty 3.2 8b is calibrated on document-based question answering datasets, hence it can be applied to giving certainty scores for answers created using RAG. This certainty will be a prediction of overall correctness based on both the documents given and the model's own knowledge (e.g. if the model is correct but the answer is not in the documents, the certainty can still be high).

Important note Certainty is inherently an intrinsic property of a model and its abilitities. Granite Uncertainty 3.2 8b is not intended to predict the certainty of responses generated by any other models besides itself or ibm-granite/granite-3.2-8b-instruct. Additionally, certainty scores are distributional quantities, and so will do well on realistic questions in aggregate, but in principle may have surprising scores on individual red-teamed examples.

Usage steps There are two supported usage scenarios.

Scenario 1. Answering a question and obtaining a certainty score proceeds as follows. Given a user query written in the user role:

  1. Use the base model to generate a response as normal (via the assistant role).
  2. Prompt the model to generate a certainty score by generating in the certainty role (use "certainty" as the role in the chat template, or simply append <|start_of_role|>certainty<|end_of_role|> and continue generating), see examples below.
  3. The model will respond with a certainty percentage, quantized with steps of 10% (i.e. 05%, 15%, 25%,...95%). Note, any additional text after the score and % can be ignored. You can curb additional generation by setting "max token length" = 3 when using this role.

Scenario 2. Predicting the certainty score from the question only, prior to generating an answer. Given a user query written in the user role:

  1. Prompt the model to generate a certainty score by generating in the certainty role (use "certainty" as the role in the chat template, or simply append <|start_of_role|>certainty<|end_of_role|> and continue generating), see examples below.
  2. The model will respond with a certainty percentage, quantized with steps of 10% (i.e. 05%, 15%, 25%,...95%). Note, any additional text after the score and % can be ignored. You can curb additional generation by setting "max token length" = 3 when using this role.
  3. Remove the generated certainty string, and if desired, use the base model to generate a response as normal (via the assistant role).
Quickstart Example#

The following code describes how to use the Granite Uncertainty model to answer questions and obtain intrinsic calibrated certainty scores. Note that a generic system prompt is included, this is not necessary and can be modified as needed.

import torch,os
from transformers import AutoTokenizer,  AutoModelForCausalLM
from peft import PeftModel, PeftConfig

token = os.getenv("HF_MISTRAL_TOKEN")
BASE_NAME = "ibm-granite/granite-3.2-8b-instruct"
LORA_NAME = "ibm-granite/granite-uncertainty-3.2-8b-lora"
device=torch.device('cuda' if torch.cuda.is_available() else 'cpu')

# Load model
tokenizer = AutoTokenizer.from_pretrained(BASE_NAME,padding_side='left',trust_remote_code=True, token=token)
model_base = AutoModelForCausalLM.from_pretrained(BASE_NAME,device_map="auto")
model_UQ = PeftModel.from_pretrained(model_base, LORA_NAME)

question = "What is IBM Research?"
print("Question:" + question)
question_chat = [
	{
		"role": "user",
		"content": question
	},
]

# Generate answer with base model
input_text = tokenizer.apply_chat_template(question_chat,tokenize=False,add_generation_prompt=True)


#tokenize
inputs = tokenizer(input_text, return_tensors="pt")
output = model_base.generate(inputs["input_ids"].to(device), attention_mask=inputs["attention_mask"].to(device), max_new_tokens=600)
output_text = tokenizer.decode(output[0])
answer = output_text.split("assistant<|end_of_role|>")[1]
print("Answer: " + answer)

# Generate certainty score
uq_generation_prompt = "<|start_of_role|>certainty<|end_of_role|>"
uq_chat = [
    {
		"role": "system",
		"content": ""
	},
	{
		"role": "user",
		"content": question
	},
    {
        "role": "assistant",
        "content": answer
    },
]

uq_text = tokenizer.apply_chat_template(uq_chat,tokenize=False) + uq_generation_prompt
# remove automatic system prompt
string_to_remove = tokenizer.apply_chat_template(uq_chat[0:1], tokenize=False,add_generation_prompt=False)
input_text = input_text[len(string_to_remove):]
uq_text = uq_text[len(string_to_remove):]

# tokenize and generate
inputs = tokenizer(uq_text, return_tensors="pt")
output = model_UQ.generate(inputs["input_ids"].to(device), attention_mask=inputs["attention_mask"].to(device), max_new_tokens=1)
output_text = tokenizer.decode(output[0])
uq_score = int(output_text[-1])
print("Certainty: " + str(5 + uq_score * 10) + "%")

Evaluation#

The model was evaluated on the MMLU datasets (not used in training). Shown are the Expected Calibration Error (ECE) for each task, for the base model (Granite-3.2-8b-instruct) and Granite-Uncertainty-3.2-8b. The average ECE across tasks for our method is 0.064 (out of 1) and is consistently low across tasks (maximum task ECE 0.10), compared to the base model average ECE of 0.20 and maximum task ECE of 0.60. Note that our ECE of 0.064 is smaller than the gap between the quantized certainty outputs (10% quantization steps). Additionally, the zero-shot performance on the MMLU tasks does not degrade, averaging at 89%.

Image: image/png

Training Details#

The Granite Uncertainty 3.2 8b model is a LoRA adapter finetuned to provide certainty scores mimicking the output of a calibrator trained via the method in [[Shen et al. ICML 2024] Thermometer: Towards Universal Calibration for Large Language Models](https://arxiv.org/abs/2403.08819).

Training Data#

The following datasets were used for calibration and/or finetuning.

Model Card Authors#

Kristjan Greenewald

Files

4 files · 23.6 MBWeights 23.6 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 4 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md11.9 KB84e0d13c428a10db31fc4e1dddff2fb12e0725460493e8b9c2e0910d4c838fbf
adapter_config.json745 Ba4269991b9abc415a581a085734aa550d224ee39495c1e5dec2288bf63d30a29
adapter_model.safetensors23.6 MB748a6b578d2e3b5f61f75c84ff826c28df1421a13ace56ca87f4552e29cb28e5
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
1308611859 pinned now2026-11-15 04:31 UTC4 files · 23.6 MB

Use it

$ fw get ibm-granite/granite-3.2-8b-lora-uncertainty
# manifest sha256 f09e72c4767b… · 23.6 MB · 4 files
$ fw verify ./granite-3.2-8b-lora-uncertainty ibm-granite/granite-3.2-8b-lora-uncertainty
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/ibm-granite/granite-3.2-8b-lora-uncertainty.json --dir ./granite-3.2-8b-lora-uncertainty $ python3 fw.py verify ./granite-3.2-8b-lora-uncertainty ./ibm-granite__granite-3.2-8b-lora-uncertainty.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download ibm-granite/granite-3.2-8b-lora-uncertainty --revision 130861185984dda94b20e80c5e8f8cde96d0dd6a --local-dir ./granite-3.2-8b-lora-uncertainty

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
84e0d13c428a10db31fc4e1dddff2fb12e0725460493e8b9c2e0910d4c838fbf
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: ibm-granite <huggingface.co/ibm-granite>Newsgroups: alt.freeweights.graniteSubject: granite-3.2-8b-lora-uncertaintyDate: 2026-11-15Commit: 1308611Signed: 2DC28CC7B26A283B ✓
Upstream
ibm-granite/granite-3.2-8b-lora-uncertainty
Pinned commit
130861185984dda94b20e80c5e8f8cde96d0dd6a
Manifest
granite-3.2-8b-lora-uncertainty.json · .minisig
Manifest sha256
f09e72c4767b0fcc5b77e09a018c5fb497684bdd0b5634e3403cfbf0fb922c44
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 04:31 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/ibm-granite/granite-3.2-8b-lora-uncertainty.json $ curl -O https://freeweights.allternit.com/manifests/ibm-granite/granite-3.2-8b-lora-uncertainty.json.minisig $ minisign -Vm granite-3.2-8b-lora-uncertainty.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

No related models in this catalog.Nothing here lists this model as its parent, and it names no parent.
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download ibm-granite/granite-3.2-8b-lora-uncertainty
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. granite-3.2-8b-lora-uncertainty.json. Provenance. Takedown history: none.
From: ibm-granite <huggingface.co/ibm-granite>Subject: GneissWeb.7B_ablation_model_on_350B_FineWeb.Edu.seed1
From: ibm-granite <huggingface.co/ibm-granite>Subject: GneissWeb.7B_ablation_model_on_350B_FineWeb.Edu.seed2
From: ibm-granite <huggingface.co/ibm-granite>Subject: GneissWeb.7B_ablation_model_on_350B_FineWeb.Edu.seed3
From: ibm-granite <huggingface.co/ibm-granite>Subject: GneissWeb.7B_ablation_model_on_350B_FineWeb.seed1
From: ibm-granite <huggingface.co/ibm-granite>Subject: GneissWeb.7B_ablation_model_on_350B_FineWeb.seed2
From: ibm-granite <huggingface.co/ibm-granite>Subject: GneissWeb.7B_ablation_model_on_350B_FineWeb.seed3