alt.freeweights.granite / granite-3.3-8b-rag-agent-lib
From: ibm-granite <huggingface.co/ibm-granite>Newsgroups: alt.freeweights.graniteSubject:

granite-3.3-8b-rag-agent-lib

Date: 2026-11-15Commit: 0a3d5bdSigned: 2DC28CC7B26A283B ✓

Model. Safetensors weights, 514 MB in all. Published by ibm-granite under Apache-2.0.

granite514MBgranite-3.3-8b-rag-agent-libsafetensorspermissive
FactsParamsnot statedSize514 MBFormatssafetensorsTasknot taggedLicenseApache-2.0From sourcepermissive
$ fw get ibm-granite/granite-3.3-8b-rag-agent-lib
# manifest sha256 fd6fb23ab9e3… · 514 MB · 33 files
$ fw verify ./granite-3.3-8b-rag-agent-lib ibm-granite/granite-3.3-8b-rag-agent-lib
From sourceHosted (signed)ibm-granite/granite-3.3-8b-rag-agent-libLast check: 2026-11-15 04:31 UTC

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

Fine-tune of granite-3.3-8b-instruct.

Works with

Runs with

Ranked by fit to this model (safetensors), then by GitHub stars.

Overview

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

Original release from the publisher.

Base model: ibm-granite/granite-3.3-8b-instruct

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 0a3d5bd. Shown as plain text with links; images open at the publisher.

Granite 3.3 RAG Agent Library#

The LLM Intrinsics RAG Library includes six intrinsics implemented as LoRA adapters for ibm-granite/granite-3.3-8b-instruct, each of which expects as input a (single-turn or multi-turn) conversation between a user and an AI assistant, and most of which also expect a set of grounding passages. Each intrinsic has been developed for a specific task that is likely to be useful in Agentic RAG pipelines. We give a brief overview of the functionality of each intrinsic, as the details can be found in each individual intrinsic readme.

Intrinsics implemented as LoRA adapters#

The six intrinsics that have been implemented as LoRA adapters for ibm-granite/granite-3.3-8b-instruct and made available in this HF repository are:

Query Rewrite (QR): Given a conversation ending with a user query, QR will decontextualize that last user query by rewriting it (whenever necessary) into an equivalent version that is standalone and can be understood by itself. While this adapter is general purpose for any multi-turn conversation, it is especially effective in RAG settings where its ability to rewrite a user query into a standalone version directly improves the retriever performance, which in turn improves the answer generation performance. This is a pre-retrieval intrinsic since its suggested use is before invoking retrieval.

Context Relevance (CR): Given a conversation ending with a user query, and an individual passage, CR classifies whether the passage is relevant, partially relevant, or irrelevant for answering the last user query - or if the passage may instead mislead or harm the downstream generator model’s response quality. This is a pre-generation intrinsic.

Answerability Determination (AD): Given a conversation ending with a user query, and a set of passages, AD classifies whether that final user query is answerable or unanswerable based on the available information in the passages. It is valuable for restraining over-eager models by identifying unanswerable queries and preventing the generation of hallucinated responses. It can also be used to indicate that the system should re-query the retriever with alternate formulations, to fetch more relevant passages. This is a pre-generation intrinsic.

Uncertainty Quantification (UQ): Given a conversation ending with an assistant response, UQ calculates a certainty percentage to reflect how certain it is about the answer generated to the previous user query. UQ can also take as input a conversation ending with an user query and predicting the certainty score based solely on the query, prior to generating an answer. UQ is also calibrated on document-based question answering datasets, and hence can be applied to give certainty scores for RAG responses created using grounding passages. This intrinsic could be used in a post-generation or pre-generation step.

Hallucination Detection (HD): Given a conversation ending with an assistant response, and a set of passages, HD outputs a hallucination risk range for each sentence in the last assistant response, with respect to the set of passages. This could be used in concert with sampling techniques that yield multiple generated responses, some of which could then be filtered according to their HD scores. This is a post-generation intrinsic since its expected use is after invoking the LLM to create the response.

Citation Generation (CG): Given a conversation ending with an assistant response, and a set of passages, CG generates citations for that last assistant response from the provided passages. Citations are generated for each sentence in the response (when available), where each citation consists of a set of sentences from the supporting passages. This is a post-generation intrinsic since its expected use is after invoking the LLM, and therefore can be used to create citations for responses generated by any model.

The recommended use of these LoRA adapters is through Granite IO Processing, a framework which enables transforming how a user calls or infers an IBM Granite model and how the output from the model is returned to the user. In other words, the framework allows extended functionality of calling the model. This is particularly valuable as the downstream use of intrinsics relies on correctly structured output. Although we have made the individual LoRAs available, we strongly suggest that everyone use the implementations in Granite IO and we have made example notebooks available. Two additional intrinsics, Query Expansion and Passage Reranking, are pure software-based implementations and are only available through Granite IO.

Intrinsics implemented as functions#

Query Expansion (QE): Given a conversation ending with a user query, QE is designed to probe the retriever from multiple angles by generating a set of semantically diverse versions of that last user query. This expanded set of queries provides diverse retrieval paths, and thus this intrinsic is particularly effective in RAG settings, especially with terse, general, or underspecified queries. Like Query Rewrite, this is a pre-retrieval intrinsic.

Quickstart Example#

As explained above, it is highly recommended to use these LoRA adapters through Granite IO Processing.

However, if you prefer to invoke the LoRA adapters directly, you can follow the following process.

  1. Select the LoRA adapter that you want to experiment with from here.
  2. Download the LoRA adapter to a local directory. Following example shows how to download the "hallucination_detection_lora" intrinsic to the local directory intrinsics/hallucination_detection
from huggingface_hub import HfApi, hf_hub_download
import os
from tqdm import tqdm

def download_intrinsic(
    repo_id: str,
    intrinsic: str,
    local_dir: str,
    token: str = None,
):
    api = HfApi(token=token)
    files = api.list_repo_files(repo_id=repo_id, token=token)

    # Keep only files under your desired subfolder
    files = [f for f in files if f.startswith(intrinsic.rstrip("/") + "/")]

    os.makedirs(local_dir, exist_ok=True)

    for file_path in tqdm(files, desc="Downloading files"):
        rel_path = os.path.relpath(file_path, intrinsic)
        dest_path = os.path.join(local_dir, rel_path)
        os.makedirs(os.path.dirname(dest_path), exist_ok=True)

        hf_hub_download(
            repo_id=repo_id,
            filename=file_path,
            local_dir=local_dir,
            token=token,
        )


download_intrinsic(
    repo_id="ibm-granite/granite-3.3-8b-rag-agent-lib",
    intrinsic="hallucination_detection_lora",
    local_dir="intrinsics/hallucination_detection",
    token="YOUR_HUGGINGFACE_TOKEN",  # omit if not needed
)
  1. Load the LoRA adapter from the downloaded local directory and run the intrinsic model. Each intrinsic contains a README file inside the LoRA adapter directory which explains how to run the model. Here is an example.

Files

33 files · 514 MBWeights 505 MB (safetensors). Sizes and sha256 from the signed manifest.
Show all 33 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md7.43 KB14cb2494af103758cce527dac50164a306ea6d5829fdb52c096fa092c24bf8c7
answerability_prediction_lora/README.md14.5 KB122c082a542cc624ae2a12b94bf858350e9257baacab3e33df4bea1d494a5a68
answerability_prediction_lora/adapter_config.json746 B304cd2a74957b482f861a4902cedc5a86fdfe204a4e5b84914f498d43c0bf373
answerability_prediction_lora/adapter_model.safetensors94.4 MBb890ef280208ccedec44e5b94a6290c24d726d5c4f2f513714aed5afbc5fd244
certainty_lora/README.md12.2 KB71297ac550c5378d640375814332cfae84f160461ec263dc77729547207ac25a
certainty_lora/adapter_config.json804 B40009d76a97d09d659afe73f33bf3669450d65ae04da001916c03ec8b9b34984
certainty_lora/adapter_model.safetensors23.6 MBbd1230bee33bdc780b3ac3eeea669ad1ebc400bcb3ef208d87ca60af5ad29af1
citation_generation_lora/README.md20.6 KB870bbd74d1ac4a2fd0b0fd56f19d2c4d138e87bf7682d2ea3727d3c8f8ceb4c4
citation_generation_lora/adapter_config.json737 B41471de674c1ebc0eff3e790dd4f6097d6cb0f69ed7bddcc6e24fe27c526218c
citation_generation_lora/adapter_model.safetensors99.0 MB3069aac1eccbaa522e921319a016a63a5d86370ce227f5bbe9912b7e74c45e2d
citation_generation_lora/added_tokens.json207 Bbb33d55934aa82d29cc62f3d19cdbc60f315763f6ccee21bdfd8b3bde2f33d3b
citation_generation_lora/merges.txt442 KB303127a244b0078878156c17229f36d11b7a3a3f8e47b7cfdbb304ff46be5030
citation_generation_lora/special_tokens_map.json801 B21ce694081bb9ae1bd4bc64549e72e0799ebb74705e6b650e3585d85b71ebdc1
citation_generation_lora/tokenizer.json3.48 MB91168e938f05796aa6dcca7e485e4b30ab52785320c7a6391ecef86e6c84681e
citation_generation_lora/tokenizer_config.json9.93 KB779e67b59a86d0b8d2aeb98eaa6867b054b0270a0ea58db228162333c13610ea
citation_generation_lora/training_config.json2.70 KB2510eb7471010a2ac5609b466d03e47fadaab602dfd7f7ecc2c74925237d3214
citation_generation_lora/vocab.json777 KB80ab859339a2525fdfbda14bc39df02dffb824aefdaf86426217bbb146d17e01
context_relevancy_lora/README.md18.4 KBa8e1075d81141c93160fac5baa9a6898e957b7d029da9a16bf326ddc41a27c90
context_relevancy_lora/adapter_config.json745 B27308af6eff4338b07b59f8cbffb1acd67a1ac2fb2966a685e897c645cf275b7
context_relevancy_lora/adapter_model.safetensors94.4 MBb902e58d656fee78f407b8c543c4f5084186cf89d9cbf5a37b79f47d2ecf9ed8
hallucination_detection_lora/README.md15.0 KB0b21c49b4a56db92f1ac7ed060dcbc1d575b9112dcd5680b47530fb7685d43c5
hallucination_detection_lora/adapter_config.json737 B41471de674c1ebc0eff3e790dd4f6097d6cb0f69ed7bddcc6e24fe27c526218c
hallucination_detection_lora/adapter_model.safetensors99.0 MBd997d816729ac77aa938501016e22eff2d0b266fe9eb09b32fed4f5c5e3d70ee
hallucination_detection_lora/added_tokens.json207 Bbb33d55934aa82d29cc62f3d19cdbc60f315763f6ccee21bdfd8b3bde2f33d3b
hallucination_detection_lora/merges.txt442 KB303127a244b0078878156c17229f36d11b7a3a3f8e47b7cfdbb304ff46be5030
hallucination_detection_lora/special_tokens_map.json801 B21ce694081bb9ae1bd4bc64549e72e0799ebb74705e6b650e3585d85b71ebdc1
hallucination_detection_lora/tokenizer.json3.48 MB91168e938f05796aa6dcca7e485e4b30ab52785320c7a6391ecef86e6c84681e
hallucination_detection_lora/tokenizer_config.json9.93 KB779e67b59a86d0b8d2aeb98eaa6867b054b0270a0ea58db228162333c13610ea
hallucination_detection_lora/vocab.json777 KB80ab859339a2525fdfbda14bc39df02dffb824aefdaf86426217bbb146d17e01
query_rewrite_lora/README.md20.5 KB587d06eb084c2083508b92955660906a82d182b54ac3c6446710d93246ffe146
query_rewrite_lora/adapter_config.json745 Bb9e24e86a728e7a6b4594d220e34623b579d27c5e244199444ecd0d1b9592d0d
query_rewrite_lora/adapter_model.safetensors94.4 MBa96c53d4f01c0f7198fa1d9c6d11bec5f540004652f97f0c6577091bd3e4ee9a
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
0a3d5bd860 pinned now2026-11-15 04:31 UTC33 files · 514 MB

Use it

$ fw get ibm-granite/granite-3.3-8b-rag-agent-lib
# manifest sha256 fd6fb23ab9e3… · 514 MB · 33 files
$ fw verify ./granite-3.3-8b-rag-agent-lib ibm-granite/granite-3.3-8b-rag-agent-lib
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.3-8b-rag-agent-lib.json --dir ./granite-3.3-8b-rag-agent-lib $ python3 fw.py verify ./granite-3.3-8b-rag-agent-lib ./ibm-granite__granite-3.3-8b-rag-agent-lib.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download ibm-granite/granite-3.3-8b-rag-agent-lib --revision 0a3d5bd860543db5881222498bf1a3899548f8e6 --local-dir ./granite-3.3-8b-rag-agent-lib

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
14cb2494af103758cce527dac50164a306ea6d5829fdb52c096fa092c24bf8c7
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.3-8b-rag-agent-libDate: 2026-11-15Commit: 0a3d5bdSigned: 2DC28CC7B26A283B ✓
Upstream
ibm-granite/granite-3.3-8b-rag-agent-lib
Pinned commit
0a3d5bd860543db5881222498bf1a3899548f8e6
Manifest
granite-3.3-8b-rag-agent-lib.json · .minisig
Manifest sha256
fd6fb23ab9e3c473131a0ab26f1586d109eece2ee36be6e5effa0f801c93f223
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.3-8b-rag-agent-lib.json $ curl -O https://freeweights.allternit.com/manifests/ibm-granite/granite-3.3-8b-rag-agent-lib.json.minisig $ minisign -Vm granite-3.3-8b-rag-agent-lib.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

Parent

ibm-granite/granite-3.3-8b-instruct · this model is a finetune of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download ibm-granite/granite-3.3-8b-rag-agent-lib
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.3-8b-rag-agent-lib.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