Run this model with HF Jobs

Run enricollen/setaccio-reranker-base on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/enricollen/setaccio-reranker-base. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/enricollen/setaccio-reranker-base on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Setaccio: Italian reranker (base, 135M)

Setaccio banner

Setaccio ("sieve" in Italian) is a cross-encoder reranker for Italian. It reorders the candidates of a first-stage retriever (BM25, a dense embedding model, or both) in search and retrieval-augmented generation (RAG) pipelines.

  • Monolingual Italian, native data. It is built on Italian-ModernBERT-base and trained only on Nostrano, our Italian retrieval dataset. Nostrano is generated from texts originally written in Italian (Wikipedia and national legislation from Normattiva), not translated from English.
  • Distilled from an 8B teacher. It learns the full ranking of Nemotron-3.5-Rerank-8B over each query's positive passage and 10 hard negatives (listwise distillation).
  • Small and fast. With 135M parameters it matches the best multilingual reranker up to ~300M parameters on public Italian benchmarks. It is 2.3Γ— faster than bge-reranker-v2-m3 on CPU.
  • Strongest on legal text and on reasoning questions. On EU-law retrieval in Italian (NanoMuPLeR-it) it is on par with most 0.6–1.7B rerankers; only Nemotron-3.5-Rerank-1B is significantly better. On our test of reasoning questions it ties the best model we evaluated.
  • Not state of the art overall. Rerankers 4–13Γ— larger stay ahead, especially on general-domain benchmarks (NanoBEIR-it) and on JuriFindIT. See Limitations.

Usage

Try Setaccio in the browser: edit the Italian passages, compare input and reranked order, and inspect tokenization and scores. The demo runs a quantized INT8 version locally in the browser, so its scores can differ from the original checkpoint.

Sentence Transformers

from sentence_transformers import CrossEncoder

model = CrossEncoder("enricollen/setaccio-reranker-base", max_length=512)

query = "Entro quanti giorni si puΓ² recedere da un contratto concluso online?"
documents = [
    "Il consumatore dispone di un periodo di quattordici giorni per recedere da un contratto a distanza "
    "o negoziato fuori dei locali commerciali senza dover fornire alcuna motivazione.",
    "Il contratto Γ¨ l'accordo di due o piΓΉ parti per costituire, regolare o estinguere tra loro "
    "un rapporto giuridico patrimoniale.",
    "La Torre di Pisa Γ¨ il campanile della cattedrale di Santa Maria Assunta, nella piazza del Duomo di Pisa.",
]

scores = model.predict([(query, doc) for doc in documents])
print(scores)  # [0.93 0.33 0.14]

for hit in model.rank(query, documents):
    print(hit["corpus_id"], round(hit["score"], 3))

Transformers

import torch
from transformers import AutoModelForSequenceClassification, AutoTokenizer

tokenizer = AutoTokenizer.from_pretrained("enricollen/setaccio-reranker-base")
model = AutoModelForSequenceClassification.from_pretrained(
    "enricollen/setaccio-reranker-base", dtype=torch.bfloat16).eval()

with torch.no_grad():
    inputs = tokenizer([query] * len(documents), documents, padding=True, truncation=True,
                       max_length=512, return_tensors="pt")
    logits = model(**inputs).logits.squeeze(-1)  # higher = more relevant

Notes:

  • Inputs are a (query, passage) pair, with no prefix or instruction.
  • Use passages of up to ~400 words. The model was trained and evaluated with pairs truncated to 512 tokens. The base model accepts 8,192, but longer inputs are untested.
  • Scores are only meant to order passages for the same query. With Sentence Transformers they go through a sigmoid; with Transformers they are raw logits. They are not calibrated probabilities, so do not use a fixed threshold across queries without checking it on your data.
  • On GPU, bf16 gives the same quality as float32 (mean nDCG@10 differs by 0.001) and is about 2.5Γ— faster.

Evaluation

Setup

Every reranker reorders the same 50 candidates per query, so differences come only from the reranker.

  • Candidates: the top 100 of BM25 (Italian stemmer) and the top 100 of bge-m3, fused with reciprocal rank fusion; the top 50 are kept.
  • Input: truncated to 512 tokens for every model; weights in bf16.
  • Metric: nDCG@10 with binary relevance.
Benchmark Domain Queries Notes
NanoBEIR-it general (13 BEIR tasks, translated) 649 mean of the 13 task scores
NanoMuPLeR-it EU law 200
JuriFindIT Italian law 179 questions are mostly practical cases ("my landlord did X: which rule applies?")
MLDR-it Wikipedia, long documents 200 documents truncated to 512 tokens
Nostrano test A Wikipedia and Italian law 300 in domain for Setaccio and for its teacher
Nostrano test B reasoning questions on the same sources 364 in domain for Setaccio and for its teacher

"Public mean" is the mean over the four public benchmarks. Models of 4B parameters and more are out of the scope of this comparison.

Results

Model Params NanoBEIR-it NanoMuPLeR-it JuriFindIT MLDR-it Public mean Test A Test B
first stage (BM25 + bge-m3) 0.565 0.893 0.564 0.619 0.660 0.933 0.692
Nemotron-3.5-Rerank-1B 1.6B 0.651 0.983 0.712 0.584 0.733 0.980 0.914
llama-nemotron-rerank-1b-v2 1.2B 0.637 0.977 0.710 0.570 0.723 0.970 0.870
zerank-1-small 1.7B 0.621 0.954 0.725 0.569 0.717 0.978 0.871
bge-reranker-v2-m3 568M 0.636 0.958 0.661 0.593 0.712 0.980 0.826
bge-reranker-v2-m3-italian 568M 0.636 0.965 0.656 0.590 0.712 0.981 0.837
jina-reranker-v3 597M 0.625 0.939 0.680 0.581 0.706 0.978 0.864
mxbai-rerank-large-v2 1.5B 0.628 0.952 0.683 0.534 0.699 0.930 0.787
Setaccio (ours) 135M 0.567 0.968 0.624 0.551 0.678 0.979 0.914
Horizon multilingual-reranker-base 308M 0.588 0.966 0.630 0.524 0.677 0.973 0.850
Qwen3-Reranker-0.6B 596M 0.601 0.950 0.651 0.472 0.669 0.930 0.775
same recipe on LightOn data (control) 135M 0.574 0.937 0.622 0.529 0.665 0.960 0.806
Horizon multilingual-reranker-small 141M 0.565 0.935 0.616 0.517 0.658 0.966 0.806
mxbai-rerank-base-v2 494M 0.561 0.927 0.622 0.516 0.657 0.904 0.679
gte-multilingual-reranker-base 306M 0.593 0.852 0.565 0.469 0.620 0.951 0.800
jina-reranker-v2-base-multilingual 278M 0.611 0.703 0.602 0.505 0.605 0.935 0.783
osiria/minilm-l12-h384-italian-cross-encoder 33M 0.559 0.927 0.457 0.386 0.582 0.943 0.668
vincolle/reranker-bert-italian-uncased-mmarco-mnrl 135M 0.485 0.925 0.482 0.363 0.564 0.791 0.678

The full table has 21 rerankers. It is in the repository, together with paired bootstrap tests against each model (10,000 resamples, 95% intervals).

What the bootstrap says:

  • Against the other models up to ~300M parameters (Horizon small, gte, jina-v2, the Italian MiniLM and BERT rerankers): Setaccio has the higher public mean against every one of them, and is significantly better on most benchmarks. gte and jina-v2 are better on NanoBEIR-it.
  • Against Horizon base (2.3Γ— larger): on par on the public benchmarks. Setaccio is worse on NanoBEIR-it (βˆ’0.021) and better on test B (+0.064), both significant. The other differences are not significant.
  • Against bge-reranker-v2-m3 (4.2Γ— larger): on par on NanoMuPLeR-it. Setaccio is worse on NanoBEIR-it, JuriFindIT and MLDR-it and better on test B.
  • Data versus recipe: the control uses the same base model, recipe and number of queries, with LightOn's Italian fine-tuning data instead of Nostrano. That data is machine-translated from English and scored by an mxbai reranker; its MLDR split is left out because MLDR-it is a benchmark here. Its teacher temperature is matched to the data (median probability of the positive 0.57), so the fair comparison is with Setaccio trained at the same setting (v1, T = 0.525). That model is significantly better than the control on NanoMuPLeR-it (+0.029), test A (+0.018) and test B (+0.104), and on par on NanoBEIR-it, JuriFindIT and MLDR-it. The gains come from the data, not from the recipe.

Robustness to the first stage. We repeated the comparison with BM25 + jina-embeddings-v5-text-small as the first stage, for the five best models, Setaccio and the control. The order is unchanged, and Setaccio's public mean is 0.682.

Contamination check. We searched the benchmark documents and queries in Nostrano's corpus and training queries, using 13-gram and 8-gram word overlap:

  • NanoBEIR-it, NanoMuPLeR-it and MLDR-it: at most 1 query and 1 document touched.
  • JuriFindIT: 6 of 179 queries share an 8-gram with our training queries. 295 of its 20,144 articles come from the same codes that are in our corpus.

Those 6 queries are hard for every model, and Setaccio does not do better on them than the others (0.29, against 0.29–0.40 for the other rerankers we checked). Removing them raises every model by about 0.011 and does not change the ranking.

Speed

Measured on the same 5,000 (query, passage) pairs drawn from the benchmarks, with a batch size of 32 for every model.

  • GPU: RTX 3090, bf16, pairs per second.
  • CPU: float32, 8 threads, seconds to rerank the 50 candidates of one query (median of 10 queries).
Model Params GPU pairs/s CPU s/query
Setaccio 135M 304 7.6
Horizon multilingual-reranker-base 308M 294 7.9
bge-reranker-v2-m3 568M 208 17.4
mxbai-rerank-base-v2 494M 131 23.5
Qwen3-Reranker-0.6B 596M 83 35.8
Nemotron-3.5-Rerank-1B 1.6B 70 –
zerank-1-small 1.7B 18 –

Peak GPU memory for Setaccio at batch 32 is 0.6 GB.

Quality against CPU cost of Italian rerankers

Quality against CPU cost for the rerankers above (mean nDCG@10 on the four public benchmarks). The dashed line is the best quality reachable within each CPU budget, and Setaccio lies on it. Models above 650M parameters were not timed on CPU and are shown on the right by quality only.

Training

Data. The train split of Nostrano subsets A (retrieval) and B (reasoning): 65,787 queries, each with at least 10 hard negatives.

  • Queries: generated by Qwen 3.8 27B from Italian Wikipedia and Normattiva passages.
  • Negatives: mined with BM25 + Qwen3-Embedding-8B, with false negatives removed by a teacher margin.
  • Teacher scores: logits of Nemotron-3.5-Rerank-8B for the positive and the 10 hardest negatives.

Nostrano's documents are split by source document, and no test document is used for training. See the dataset card for details.

Objective. ListNet over 11 passages per query: cross-entropy between the model's softmax and the softmax of the teacher logits divided by a temperature T = 0.36. With this temperature the median teacher probability of the positive is 0.80. A softer target (T = 0.525, median 0.57) gave the same results within noise (public mean 0.676).

Hyperparameters:

Base model DeepMount00/Italian-ModernBERT-base (22 layers, hidden size 768)
Loss ListNetLoss (Sentence Transformers)
Queries per step 16 (4 queries Γ— 11 passages, gradient accumulation 4)
Learning rate 5e-5, linear decay, 10% warmup
Epochs 1 (4,112 steps)
Max length 512 tokens
Precision bf16 mixed precision
Hardware 1 Γ— RTX 3090, about 3.2 hours

Limitations

  • General domain. Setaccio is weaker than larger multilingual rerankers on NanoBEIR-it. That benchmark covers tasks that are absent from Nostrano: argument retrieval, duplicate questions, web search queries.
  • Practical legal questions. On JuriFindIT it trails the 0.6–1.7B models. Its questions describe a concrete situation and ask for the applicable rule, a query type that Nostrano does not contain yet.
  • Long documents. Inputs beyond 512 tokens were never seen in training. Split long documents into passages.
  • In-domain tests. Test A and test B come from the same distribution as the training data and the same teacher. Read them as in-domain results, not as general quality.
  • Teacher errors. Setaccio inherits the judgments of its teacher, including its mistakes.
  • Italian only. The base model and the training data are Italian. Other languages are not supported.

License

Apache-2.0, the license of the base model.

  • Teacher logits: Nemotron-3.5-Rerank-8B's license (OpenMDW-1.1) puts no restrictions on its outputs.
  • Queries: generated by Qwen 3.8 27B (Apache-2.0).
  • Passages: from Italian Wikipedia (CC BY-SA 4.0) and from Normattiva (CC BY 4.0; source: Normattiva, Istituto Poligrafico e Zecca dello Stato).

The weights do not contain the dataset.

Citation

@misc{nello2026setaccio,
  author       = {Nello, Enrico},
  title        = {Setaccio: an Italian reranker distilled on native Italian data},
  year         = {2026},
  publisher    = {Hugging Face},
  howpublished = {\url{https://huggingface.co/enricollen/setaccio-reranker-base}}
}
Downloads last month
17
Safetensors
Model size
0.1B params
Tensor type
F32
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for enricollen/setaccio-reranker-base

Finetuned
(4)
this model

Dataset used to train enricollen/setaccio-reranker-base

Space using enricollen/setaccio-reranker-base 1