Skip to content
Other

setaccio-reranker-base

компактный и быстрый реранкер для итальянского языка

2 min readupdated

Модель setaccio-reranker-base (от итальянского слова «сито») представляет собой кросс-энкодерный реранкер (инструмент для переупорядочивания результатов поиска) на 135M параметров, обученный специально для итальянского языка. Она создана на базе Italian-ModernBERT-base и оптимизирована для улучшения поисковой выдачи в поисковых системах и RAG-пайплайнах (системах генерации с привлечением внешних данных). Новинка дистиллирована (обучена повторять поведение более крупной модели) на базе мощного учителя Nemotron-3.5-Rerank-8B с использованием датасета Nostrano, собранного из текстов на чистом итальянском языке. Модель пригодится разработчикам, создающим качественный поиск по документам или базам знаний на итальянском языке.

Ключевые особенности

  • Нативные данные: Обучена исключительно на оригинальных итальянских текстах из Википедии и законодательства Normattiva без машинного перевода с английского.
  • Высокая скорость: Модель на 135M параметров работает в 2.3 раза быстрее на CPU по сравнению с bge-reranker-v2-m3, потребляя всего 0.6 ГБ VRAM на GPU при размере батча 32.
  • Сильна в праве и логике: Демонстрирует результаты на уровне гораздо более крупных моделей в задачах поиска по европейскому праву на итальянском языке.
  • Узкая специализация: Модель поддерживает только итальянский язык и тексты длиной до 512 токенов.

Что можно сделать

  • Улучшить поиск: Встроить модель в качестве второго этапа (реранкера) после BM25 или плотного эмбеддинг-поиска для точной сортировки документов.
  • Обработка юридических текстов: Использовать для эффективного поиска по нормативным актам, законам и официальной документации на итальянском языке.
  • Оптимизировать RAG: Повысить релевантность контекста, передаваемого языковой модели в приложениях вопрос-ответ.
  • Запуск на слабом железе: Развернуть эффективный поисковый пайплайн на обычных серверах без мощных видеокарт благодаря скромному размеру в 135M параметров.

Пример

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.",
    "Il contratto è l'accordo di due o più parti per costituire un rapporto giuridico patrimoniale."
]

hits = model.rank(query, documents)
for hit in hits:
    print(hit["corpus_id"], round(hit["score"], 3))
ПодробнееБенчмарки: средний показатель на публичных тестах составляет 0.678 (сопоставимо с моделями вдвое крупнее).
Требования к железу: 135M параметров, пиковое потребление VRAM на GPU при батче 32 составляет 0.6 ГБ.
Детали обучения: Loss ListNetLoss, learning rate 5e-5 с линейным затуханием, 1 эпоха на 1 GPU RTX 3090 за 3.2 часа.
Ограничения: поддерживается только итальянский язык; максимальная длина входа при обучении — 512 токенов.
Discuss Telegram 1 17

Will it run?

Runs in F32

Fits without quantisation.

  • F32weights 0.5 GB · ready files1.1 GB
  • BF16weights 0.3 GB0.8 GB
  • FP8 / INT8recommendedweights 0.1 GB0.6 GB
  • 4-bitweights 0.1 GB0.6 GB

Tip: go 8-bit.FP8 / INT8 is within about a percent of full precision in quality, takes half the memory and runs faster on RTX 40/50 and H100. Full precision only pays off for fine-tuning.

What to get for this model

Massed ComputeOpen Massed Compute

Your own GPU: FP8 / INT8 — from RTX 2060 · F32 — from RTX 2060

Massed Compute hourly prices, November 2026. The discounted price applies with the coupon at checkout.

Estimate: weights plus working memory. Long videos, high resolutions and long contexts need more.

Run it on Massed Compute

The script downloads the model to the rented machine. How to run it is in the model card.

  1. 1. Rent a machine with a fitting GPU

    Open Massed Compute
  2. 2. Paste the script into the machine's terminal

    Connect over SSH (the Massed Compute panel shows the command) or open a terminal on the machine's desktop.

    HF_TOKEN / CIVITAI_TOKENThe script starts with token lines: paste yours between the quotes. The Hugging Face token is for gated models, the Civitai one for Civitai models.

    # enricollen/setaccio-reranker-base
    mkdir -p ~/models
    curl -LsSf https://astral.sh/uv/install.sh | sh
    source "$HOME/.local/bin/env"
    uv tool install "huggingface_hub[cli]"
    hf download enricollen/setaccio-reranker-base --local-dir ~/models/setaccio-reranker-base
    # The model is in ~/models. How to run it is in the model card (link above).
    Add more LoRAs to setaccio-reranker-base
  3. 3. Use it

    The model is in ~/models. How to run it is in the model card (link above).

Stop the machine in the panel when you are done: it bills by the minute while it runs.

How to speed it up

Picked for this model type. Choose your hardware above to see what fits you exactly.

  • FlashAttention 44.0.0b42from December 2, 2026new release

    fastest exact attention on B200

    Kernels for Blackwell (beta). Exact attention without quantisation — fine for everything, LLMs included.

    How to enable: pip install flash-attn-4; vLLM and SGLang pick it up themselves.

    Earlier generations (2)
    • FlashAttention 3 — The Hopper (H100/H200) version with FP8.
    • FlashAttention 2 — The standard for RTX 30/40/50 and A100: exact attention without the memory cost of long contexts.
  • torch.compile2.15.0from October 28, 2026

    10–30% for free

    Compiles the model for your GPU. Slower first run, faster afterwards.

    How to enable: model = torch.compile(model); in ComfyUI the TorchCompileModel node.

Model family

New posts about versions of Italian-ModernBERT-base (quants, finetunes, LoRAs) will show up under the bell.

Quantised versions 4All on Hugging Face
Fine-tunes 4All on Hugging Face

About the model

enricollen/setaccio-reranker-base
Author
enricollen
Category
Other
Released
Posted

On NeyroLearn

Hugging Face

171

Ask AI about this model

Answered by Gemini 4 · the chat is kept only in this tab

Comments