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

granite-rag-3.0-8b-lora

Date: 2026-11-15Commit: 101473bSigned: 2DC28CC7B26A283B ✓

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

granite49.6MBgranite-rag-3.0-8b-lorasafetensorspermissive
FactsParamsnot statedSize49.6 MBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get ibm-granite/granite-rag-3.0-8b-lora
# manifest sha256 ffb6d7989142… · 49.6 MB · 4 files
$ fw verify ./granite-rag-3.0-8b-lora ibm-granite/granite-rag-3.0-8b-lora
From sourceHosted (signed)ibm-granite/granite-rag-3.0-8b-loraLast 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
49.6 MB
Weights
49.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 101473b. Shown as plain text with links; images open at the publisher.

Granite RAG 3.0 8b#

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!

Just a heads-up: Experiments are forever evolving, so we can't commit to ongoing support or guarantee performance.

Model Summary#

Granite RAG 3.0 8b is a RAG specific LoRA adapter for ibm-granite/granite-3.0-8b-instruct, which adds hallucination detection and citation generation capability, in addition to retaining the full abilities of the ibm-granite/granite-3.0-8b-instruct model.

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. Granite RAG 3.0 8b is a LoRA adaptor for ibm-granite/granite-3.0-8b-instruct. This is a RAG specific adaptor which gives the ability to generate an output, detect whether hallucinations exist in the generated output and generate citations for the generate output. The output is generated as a json object, which contains output sentences, hallucination detections and citations.

Model input: The input to the model is a list of conversational turns converted to a string using apply_chat_template function. The first turn of the conversation is a system turn, the content field of which contains a json structure (converted to string). The json structure includes:

  1. instruction : the model is trained with the following system instruction: Respond to the user's latest question based solely on the information provided in the documents. Ensure that your response is strictly aligned with the facts in the provided documents. If the information needed to answer the question is not available in the documents, inform the user that the question cannot be answered based on the available data. Make sure that your response follows the attributes mentioned in the 'meta' field.
  2. documents : list of documents where, each item in the list is a dictionary with fields doc_id and text.
  3. meta: a dictionary where the output features can be controlled by two fields: hallucination_tags and citations

The rest of the turns in the conversation are user and assistant turns, where the content field contain a string.

Model output: The model output is a json structure. The output contains a list, where each entity contains following fields:

  1. sentence: output sentence.
  2. meta: This is a dictionary, which contains two fields hallucination_level and citation. hallucination_level could take values of high or low, where high indicates that the generated sentence likely contain some hallucinated content that is not grounded on the provided documents. citation is a dictionary, which contains fields snippet which indicates the sentences that grounds the response and doc_id which points to the document that contains the snippet.

Granite Rag 3.0 8b is not intended to detect the hallucinations of responses generated by any other models besides itself or ibm-granite/granite-3.0-8b-instruct.

Quickstart Example#

The following code describes how to use the Granite Rag 3.0 8b in a RAG setting to generate answers, detect hallucinations and generate citations.

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

BASE_NAME  =  "ibm-granite/granite-3.0-8b-instruct"
LORA_NAME  =  "ibm-granite/granite-rag-3.0-8b-lora"

device=torch.device('cuda'  if  torch.cuda.is_available() else  'cpu')

tokenizer =  AutoTokenizer.from_pretrained(BASE_NAME,  padding_side='left',  trust_remote_code=True)
model_base =  AutoModelForCausalLM.from_pretrained(BASE_NAME,  device_map="auto")
model_rag =  PeftModel.from_pretrained(model_base,  LORA_NAME)
question_chat = [
{
    "role":  "system",
    "content":  "{\"instruction\": \"Respond to the user's latest question based solely on the information provided in the documents. Ensure that your response is strictly aligned with the facts in the provided documents. If the information needed to answer the question is not available in the documents, inform the user that the question cannot be answered based on the available data. Make sure that your response follows the attributes mentioned in the 'meta' field.\", \"documents\": [{\"doc_id\": 1, \"text\": \"Audrey Faith McGraw (born September 21, 1967) is an American singer and record producer. She is one of the most successful country artists of all time, having sold more than 40 million albums worldwide. Hill is married to American singer Tim McGraw, with whom she has recorded several duets. Hill's first two albums, Take Me as I Am (1993) and It Matters to Me (1995), were major successes and placed a combined three number ones on Billboard's country charts. Hill's debut album was Take Me as I Am (1993); sales were strong, buoyed by the chart success of \\\"Wild One\\\". Hill became the first female country singer in 30 years to hold Billboard's number one position for four consecutive weeks when \\\"Wild One\\\" managed the feat in 1994. Her version of \\\"Piece of My Heart\\\", also went to the top of the country charts in 1994. The album sold a total of 3 million copies. Other singles from the album include \\\"Take Me as I Am\\\". The recording of Faith's second album was delayed by surgery to repair a ruptured blood vessel on her vocal cords. It Matters to Me finally appeared in 1995 and was another success, with the title track becoming her third number-one country single. Several other top 10 singles followed, and more than 3 million copies of the album were sold. The fifth single from the album, \\\"I Can't Do That Anymore\\\", was written by country music artist Alan Jackson. Other singles from the album include \\\"You Can't Lose Me\\\", \\\"Someone Else's Dream\\\", and \\\"Let's Go to Vegas\\\". During this period, Hill appeared on the acclaimed PBS music program Austin City Limits. In spring 1996, Hill began the Spontaneous Combustion Tour with country singer Tim McGraw. At that time, Hill had recently become engaged to her former producer, Scott Hendricks, and McGraw had recently broken an engagement. McGraw and Hill were quickly attracted to each other and began an affair. After discovering that Hill was pregnant with their first child, the couple married on October 6, 1996. The couple have three daughters together: Gracie Katherine (born 1997), Maggie Elizabeth (born 1998) and Audrey Caroline (born 2001). Since their marriage, Hill and McGraw have endeavored never to be apart for more than three consecutive days. After the release of It Matters to Me, Hill took a three-year break from recording to give herself a rest from four years of touring and to begin a family with McGraw. During her break, she joined forces with her husband for their first duet, \\\"It's Your Love\\\". The song stayed at number one for six weeks, and won awards from both the Academy of Country Music and the Country Music Association. Hill has remarked that sometimes when they perform the song together, \\\"it [doesn't] feel like anybody else was really watching.\\\"\"}], \"meta\": {\"hallucination_tags\": true, \"citations\": true}}"
},
{
    "role":  "user",
    "content":  "Did Faith Hill take a break from recording after releasing her second album, It Matters to Me?"
}
]
# Generate answer
input_text = tokenizer.apply_chat_template(question_chat,  tokenize=False,  add_generation_prompt=True)
inputs =  tokenizer(input_text,  return_tensors="pt")
output = model_rag.generate(inputs["input_ids"].to(device),  attention_mask=inputs["attention_mask"].to(device),  max_new_tokens=500)
output_text = tokenizer.decode(output[0][inputs["input_ids"].shape[1]:],  skip_special_tokens=True)
print("Output: "  + output_text)

Training Details#

The Granite RAG 3.0 8b model is a LoRA adapter fine-tuned to generate responses, detect hallucinations and generate citations. The details of data creation for RAG response generation is available at Granite Technical Report. For creating the hallucination labels for responses, the technique available at Achintalwar, et al. was used. Citations were created by identifying the best overlapping snippets of the documents with the responses by using the ROUGE-L metric.

Training Data#

The following public datasets were used for finetuning the RAG model.

Evaluation#

  1. Evaluation of RAG response generation on the test sets of the RAGBench benchmark using RAGAS evaluation framework.

Note: All the evaluations are done using Azure OpenAI Service.

a. Evaluation using RAGAS Faithfulness metric.

DatasetGranite 3.0 8B InstructGranite RAG 3.0 8b
CovidQA87.0884.00
DelucionQA87.9789.85
EManual83.8387.74
ExpertQA61.0163.36
HAGRID85.5185.44
HotpotQA88.3486.99
MS Marco88.8590.52
PubMedQA81.2580.67
TAT-QA81.2876.12
TechQA31.6954.76
FinQA63.3447.79
Average76.3877.02

b. Evaluation using RAGAS Answer Correctness metric.

DatasetGranite 3.0 8B InstructGranite RAG 3.0 8b
CovidQA63.2365.70
DelucionQA66.9571.05
EManual66.3067.85
ExpertQA55.7152.00
HAGRID64.0669.10
HotpotQA75.8776.24
MS Marco65.1365.62
PubMedQA65.1566.36
TAT-QA73.0571.67
TechQA38.1941.68
FinQA55.7873.25
Average62.6865.50
  1. Evaluation of the hallucination detection accuracy of the model.

The hallucination detection of the model was evaluated using the BEGIN dataset of the TRUE Factual Consistency Evaluation framework. The following table shows the Class-wise F1 score of the Granite RAG 3.0 8b compared with the teacher model Achintalwar, et al.

DatasetAchintalwar et al. (Deberta)Granite RAG 3.0 8b
BEGINHallucination (0.823)Hallucination (0.811)
No Hallucination (0.531)No Hallucination (0.493)

Disclaimer: The citation generation capability of the Granite RAG 3.0 8b LoRA model is a work in progress and has not been formally evaluated against established baselines for quality.

Model Card Authors#

Chulaka Gunasekara

Files

4 files · 49.6 MBWeights 49.6 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 4 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md12.9 KBa42f27f5dee9fa34154112039e61ab83fd451b22d72f9ab209ff055623237b02
adapter_config.json763 B26238a23e83c79a1c3b8aa4783e8edf1fcc51a0e6dbd57392e7740af1f999edb
adapter_model.safetensors49.6 MB2c970abebc0a4f6e970b8cce4980f3762dd702d48238476b4164ffe541ef9f05
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
101473be47 pinned now2026-11-15 04:31 UTC4 files · 49.6 MB

Use it

$ fw get ibm-granite/granite-rag-3.0-8b-lora
# manifest sha256 ffb6d7989142… · 49.6 MB · 4 files
$ fw verify ./granite-rag-3.0-8b-lora ibm-granite/granite-rag-3.0-8b-lora
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-rag-3.0-8b-lora.json --dir ./granite-rag-3.0-8b-lora $ python3 fw.py verify ./granite-rag-3.0-8b-lora ./ibm-granite__granite-rag-3.0-8b-lora.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download ibm-granite/granite-rag-3.0-8b-lora --revision 101473be471731a8a61f83e2c1d45164b97d848f --local-dir ./granite-rag-3.0-8b-lora

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
a42f27f5dee9fa34154112039e61ab83fd451b22d72f9ab209ff055623237b02
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-rag-3.0-8b-loraDate: 2026-11-15Commit: 101473bSigned: 2DC28CC7B26A283B ✓
Upstream
ibm-granite/granite-rag-3.0-8b-lora
Pinned commit
101473be471731a8a61f83e2c1d45164b97d848f
Manifest
granite-rag-3.0-8b-lora.json · .minisig
Manifest sha256
ffb6d798914248b50510ed802c6e1502576044ea53aa9ad8c05c03d811e25f82
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-rag-3.0-8b-lora.json $ curl -O https://freeweights.allternit.com/manifests/ibm-granite/granite-rag-3.0-8b-lora.json.minisig $ minisign -Vm granite-rag-3.0-8b-lora.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-rag-3.0-8b-lora
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. granite-rag-3.0-8b-lora.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