GitHub · Base model · Benchmarks · Files · Citation
OCC-RAG-2B answers questions from retrieved documents and cites the passages that support each answer. This GGUF release brings the 2B-parameter model to local inference, starting at 1.29 GB. Give it a question and a set of passages. It reasons across them, returns a JSON answer with source IDs, and reports UNANSWERABLE when the evidence is insufficient.
OCC-RAG-2B was trained from OCC’s Qwen3.5-2B-Unloop. The original model outperforms Qwen3.5-4B and Qwen3.5-9B on average across seven tasks covering multi-hop reasoning, financial QA, and faithfulness to context. Training base · Original model results
Each file includes the tokenizer and the document-aware chat template. Download one file to run the model.
| File | Format | Size | When to choose it |
|---|---|---|---|
| OCC-RAG-2B-Q4_K_M.gguf | Q4_K_M | 1.29 GB | Recommended for local inference |
| OCC-RAG-2B-Q5_K_M.gguf | Q5_K_M | 1.42 GB | 5-bit K-quant for about 130 MB more than Q4_K_M |
| OCC-RAG-2B-Q8_0.gguf | Q8_0 | 2.01 GB | 8-bit weights at about half the BF16 file size |
| OCC-RAG-2B-BF16.gguf | BF16 | 3.78 GB | Reference for comparing quantizations |
Use a llama.cpp build with Qwen3.5 support. Download the compact variant and start the local server with its embedded chat template.
hf download occ-ai/OCC-RAG-2B-GGUF OCC-RAG-2B-Q4_K_M.gguf --local-dir .
llama-server -m OCC-RAG-2B-Q4_K_M.gguf --alias occ-rag-2b --jinja --port 8080
Send the question as a user message and pass the retrieved passages through chat_template_kwargs.documents. The template numbers them starting at 1.
curl -sS http://localhost:8080/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{
"model": "occ-rag-2b",
"messages": [{"role": "user", "content": "In which year did the archive open to the public?"}],
"chat_template_kwargs": {
"documents": [
{"text": "The archive was founded in 1987 as a private collection."},
{"text": "The archive opened its doors to the public in 1994."}
]
},
"temperature": 0
}'
Recommended sampling parameters
Use thinking mode with greedy decoding (temperature=0). The model generates its own opening<think>tag and returns the final JSON after</think>.
With Ollama running locally, import the downloaded file from the same directory.
printf 'FROM ./OCC-RAG-2B-Q4_K_M.gguf\nPARAMETER temperature 0\n' > Modelfile
ollama create occ-rag-2b -f Modelfile
For the same question, send the rendered OCC prompt with raw: true. This preserves the source boundaries and their IDs. Ollama GGUF import · Generate API
curl -sS http://localhost:11434/api/generate -d '{
"model": "occ-rag-2b",
"raw": true,
"stream": false,
"prompt": "<|im_start|>user\n<|query_start|>In which year did the archive open to the public?<|query_end|>\n<|source_start|><|source_id|>1 The archive was founded in 1987 as a private collection.<|source_end|>\n<|source_start|><|source_id|>2 The archive opened its doors to the public in 1994.<|source_end|>\n<|im_end|>\n<|im_start|>assistant\n"
}'
Each document has a text field. In this example the first passage gives the founding year. Only the second passage gives the public opening year, so the citation is [2]. An illustrative final answer is shown below.
{
"status": "ANSWERABLE",
"sources": [2],
"answer": "1994",
"full_answer": "The archive opened to the public in 1994."
}
Answer quality depends on the evidence available in the retrieved passages. The published benchmarks measure the original OCC-RAG-2B checkpoint. Accuracy for individual GGUF variants has yet to be measured.
OCC-RAG-2B-GGUF uses the same Apache License 2.0 as OCC-RAG-2B. License
@misc{occrag2b2026,
title = {{OCC-RAG-2B}},
author = {{OCC AI}},
month = nov,
year = {2026},
url = {https://huggingface.co/occ-ai/OCC-RAG-2B}
}
occ-ai/OCC-RAG-2B