Text Ranking
Transformers
Safetensors
English
qwen3
text-generation
decision-model
retrieval
reranker
multi-hop
rag
llavrag
coding-agents
command-approval
llav-gate
Instructions to use llavapp/llav-4b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use llavapp/llav-4b with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("llavapp/llav-4b") model = AutoModelForCausalLM.from_pretrained("llavapp/llav-4b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model card: match paper v0.3.1 (title, DOI, fresh-2 wording, overlap, data record licence)
Browse files
README.md
CHANGED
|
@@ -51,7 +51,7 @@ patch-review decisions.
|
|
| 51 |
| Extra file | `calib.json`: Platt parameters `round0` (no evidence) and `rounds` (with evidence) |
|
| 52 |
| Language | English |
|
| 53 |
| Licence | Apache-2.0 |
|
| 54 |
-
| Paper | *
|
| 55 |
|
| 56 |
## Input and output
|
| 57 |
|
|
@@ -178,7 +178,7 @@ All numbers come from the paper. They are retrieval results of the frozen llavRA
|
|
| 178 |
judge (the *standard tier*), so they measure the whole system with this model inside, not the model alone.
|
| 179 |
llav 4B ran in fp16 with MLX on one Apple M5 Max laptop.
|
| 180 |
|
| 181 |
-
**Test set: fresh-2.** 1,200 multi-hop test questions
|
| 182 |
questions from the MuSiQue training split, plus 300 2WikiMultiHopQA and 300 HotpotQA questions from the development
|
| 183 |
splits. Any
|
| 184 |
question whose identifier, normalised text or any word 13-gram occurs in any of our training or evaluation files was
|
|
@@ -195,7 +195,8 @@ The set was built before any result of llavRAG v0.3 existed, and the frozen syst
|
|
| 195 |
- **AE@10:** share of questions with all gold supporting passages in the top 10.
|
| 196 |
- The one-pass row comes from the same run's logged decisions (no new model calls). It is the question-weighted mean
|
| 197 |
over the three datasets. It costs 100 judgments per question; llavRAG costs about 318 (243-390), about 3× as many. A
|
| 198 |
-
one-pass baseline with the same budget
|
|
|
|
| 199 |
- llav 4B is fine-tuned on the training splits of these three datasets. The test questions were excluded from all
|
| 200 |
training data, but passages overlap; see [Limitations](#limitations).
|
| 201 |
- On 2WikiMultiHopQA and HotpotQA the system is close to 100%, so MuSiQue carries most of the information.
|
|
@@ -231,7 +232,10 @@ question matches 0, word 13-gram question matches 0.
|
|
| 231 |
| Banking77 (Casanueva et al., 2020) | CC BY 4.0 | 3 |
|
| 232 |
|
| 233 |
Several sources are ShareAlike, and MuSiQue, HotpotQA, 2WikiMultiHopQA, BoolQ and FEVER reuse Wikipedia text
|
| 234 |
-
(CC BY-SA). The licence audit, with per-source notes, is published with llavRAG (`LICENSE-AUDIT.md`).
|
|
|
|
|
|
|
|
|
|
| 235 |
|
| 236 |
## Limitations
|
| 237 |
|
|
@@ -239,9 +243,9 @@ Several sources are ShareAlike, and MuSiQue, HotpotQA, 2WikiMultiHopQA, BoolQ an
|
|
| 239 |
questions are public multi-hop benchmark questions. We have not measured the model on large or non-Wikipedia
|
| 240 |
collections or on business documents.
|
| 241 |
- **In-domain fine-tuning and passage overlap.** The model is fine-tuned on the training splits of MuSiQue, HotpotQA
|
| 242 |
-
and 2WikiMultiHopQA. MuSiQue
|
| 243 |
-
|
| 244 |
-
|
| 245 |
- **Public benchmarks and pretraining.** The pretraining data of the base model is not public and was not audited.
|
| 246 |
Public benchmark data may be part of it.
|
| 247 |
- **Training states.** Stage 5 used states from an earlier prototype of the retrieval loop, not from llavRAG v0.3.
|
|
@@ -258,11 +262,12 @@ Several sources are ShareAlike, and MuSiQue, HotpotQA, 2WikiMultiHopQA, BoolQ an
|
|
| 258 |
|
| 259 |
```bibtex
|
| 260 |
@misc{sing2026llavrag,
|
| 261 |
-
title = {
|
| 262 |
author = {Sing, Mengyi},
|
| 263 |
year = {2026},
|
| 264 |
-
note = {LLav Lab. Preprint},
|
| 265 |
-
|
|
|
|
| 266 |
}
|
| 267 |
```
|
| 268 |
|
|
|
|
| 51 |
| Extra file | `calib.json`: Platt parameters `round0` (no evidence) and `rounds` (with evidence) |
|
| 52 |
| Language | English |
|
| 53 |
| Licence | Apache-2.0 |
|
| 54 |
+
| Paper | *llavRAG: Evidence-Conditioned Multi-Hop Retrieval with an Open 4B Decision Model* (Mengyi Sing, LLav Lab, preprint v0.3.1), [DOI 10.5281/zenodo.24687037](https://doi.org/10.5281/zenodo.24687037), [llav.app/llavrag#paper](https://llav.app/llavrag#paper) |
|
| 55 |
|
| 56 |
## Input and output
|
| 57 |
|
|
|
|
| 178 |
judge (the *standard tier*), so they measure the whole system with this model inside, not the model alone.
|
| 179 |
llav 4B ran in fp16 with MLX on one Apple M5 Max laptop.
|
| 180 |
|
| 181 |
+
**Test set: fresh-2.** 1,200 multi-hop test questions that none of our runs or training files had used: 600 MuSiQue
|
| 182 |
questions from the MuSiQue training split, plus 300 2WikiMultiHopQA and 300 HotpotQA questions from the development
|
| 183 |
splits. Any
|
| 184 |
question whose identifier, normalised text or any word 13-gram occurs in any of our training or evaluation files was
|
|
|
|
| 195 |
- **AE@10:** share of questions with all gold supporting passages in the top 10.
|
| 196 |
- The one-pass row comes from the same run's logged decisions (no new model calls). It is the question-weighted mean
|
| 197 |
over the three datasets. It costs 100 judgments per question; llavRAG costs about 318 (243-390), about 3× as many. A
|
| 198 |
+
one-pass baseline with the same budget, an off-the-shelf reranker and the base Qwen3-Reranker-4B in the same loop
|
| 199 |
+
were not measured.
|
| 200 |
- llav 4B is fine-tuned on the training splits of these three datasets. The test questions were excluded from all
|
| 201 |
training data, but passages overlap; see [Limitations](#limitations).
|
| 202 |
- On 2WikiMultiHopQA and HotpotQA the system is close to 100%, so MuSiQue carries most of the information.
|
|
|
|
| 232 |
| Banking77 (Casanueva et al., 2020) | CC BY 4.0 | 3 |
|
| 233 |
|
| 234 |
Several sources are ShareAlike, and MuSiQue, HotpotQA, 2WikiMultiHopQA, BoolQ and FEVER reuse Wikipedia text
|
| 235 |
+
(CC BY-SA). The licence audit, with per-source notes, is published with llavRAG (`LICENSE-AUDIT.md`). fresh-2 data
|
| 236 |
+
record released with the paper (identifiers and scores, no text): CC BY 4.0
|
| 237 |
+
([DOI 10.5281/zenodo.24687039](https://doi.org/10.5281/zenodo.24687039)); full per-question decision traces are not yet
|
| 238 |
+
released (CC BY-SA 4.0 if released).
|
| 239 |
|
| 240 |
## Limitations
|
| 241 |
|
|
|
|
| 243 |
questions are public multi-hop benchmark questions. We have not measured the model on large or non-Wikipedia
|
| 244 |
collections or on business documents.
|
| 245 |
- **In-domain fine-tuning and passage overlap.** The model is fine-tuned on the training splits of MuSiQue, HotpotQA
|
| 246 |
+
and 2WikiMultiHopQA. The MuSiQue part of fresh-2 comes from MuSiQue's training split: 597 of its 600 questions have
|
| 247 |
+
a gold passage in the fine-tuning data, even though the questions themselves are not in it. The paper's overlap
|
| 248 |
+
analyses are inconclusive, and MuSiQue-f2 is not independent of the judge's training data.
|
| 249 |
- **Public benchmarks and pretraining.** The pretraining data of the base model is not public and was not audited.
|
| 250 |
Public benchmark data may be part of it.
|
| 251 |
- **Training states.** Stage 5 used states from an earlier prototype of the retrieval loop, not from llavRAG v0.3.
|
|
|
|
| 262 |
|
| 263 |
```bibtex
|
| 264 |
@misc{sing2026llavrag,
|
| 265 |
+
title = {llavRAG: Evidence-Conditioned Multi-Hop Retrieval with an Open 4B Decision Model},
|
| 266 |
author = {Sing, Mengyi},
|
| 267 |
year = {2026},
|
| 268 |
+
note = {LLav Lab. Preprint v0.3.1},
|
| 269 |
+
doi = {10.5281/zenodo.24687037},
|
| 270 |
+
url = {https://doi.org/10.5281/zenodo.24687037}
|
| 271 |
}
|
| 272 |
```
|
| 273 |
|