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
Card: Table 9 equal-budget and base-reranker controls; install with uv tool install --python 3.12 llavrag
Browse files
README.md
CHANGED
|
@@ -90,7 +90,7 @@ Already retrieved evidence (context only): {title 1}: {text 1, first 300 charact
|
|
| 90 |
## How to use
|
| 91 |
|
| 92 |
**With llavRAG (recommended).** llavRAG downloads this model, indexes your documents and runs the multi-round search
|
| 93 |
-
(`
|
| 94 |
machines are an Apple M5 Max 128 GB (about 13 s per question, median, measured with the reference implementation of
|
| 95 |
the same core, not the package) and an NVIDIA RTX 3060 12 GB (about 65 s per question, with the embedder and this
|
| 96 |
model taking turns on the GPU). See the
|
|
@@ -194,9 +194,10 @@ The set was built before any result of llavRAG v0.3 existed, and the frozen syst
|
|
| 194 |
- **R@10:** share of a question's gold supporting passages among the first 10 distinct documents, averaged over questions.
|
| 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.
|
| 198 |
-
one
|
| 199 |
-
|
|
|
|
| 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.
|
|
|
|
| 90 |
## How to use
|
| 91 |
|
| 92 |
**With llavRAG (recommended).** llavRAG downloads this model, indexes your documents and runs the multi-round search
|
| 93 |
+
(`uv tool install --python 3.12 llavrag`, then `llavrag download`). It runs on Apple silicon (MLX) or an NVIDIA GPU; the verified
|
| 94 |
machines are an Apple M5 Max 128 GB (about 13 s per question, median, measured with the reference implementation of
|
| 95 |
the same core, not the package) and an NVIDIA RTX 3060 12 GB (about 65 s per question, with the embedder and this
|
| 96 |
model taking turns on the GPU). See the
|
|
|
|
| 194 |
- **R@10:** share of a question's gold supporting passages among the first 10 distinct documents, averaged over questions.
|
| 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. With
|
| 198 |
+
the same budget spent on one pass over a deeper hybrid pool, R@10 reaches 79.4 on MuSiQue-f2 and 79.3 on
|
| 199 |
+
2WikiMultiHopQA-f2; the same loop with the untuned base Qwen3-Reranker-4B as judge reaches 77.3 on MuSiQue-f2
|
| 200 |
+
(paper, Table 9). Other off-the-shelf rerankers were not compared.
|
| 201 |
- llav 4B is fine-tuned on the training splits of these three datasets. The test questions were excluded from all
|
| 202 |
training data, but passages overlap; see [Limitations](#limitations).
|
| 203 |
- On 2WikiMultiHopQA and HotpotQA the system is close to 100%, so MuSiQue carries most of the information.
|