Chopper for Polish

A chopper reads a question and the retrieved passages together and keeps only the sentences needed to answer (exact quotes, "chops"), plus an ANSWER / SEARCH decision. These are the Polish choppers, one per base encoder. The multilingual choppers live in wiiiktor/chopper_mmbert.

pip install chopper-rag
from chopper_rag import Chopper
ch = Chopper.from_pretrained("wiiiktor/chopper-pl", variant="base-pl")   # pl-ModernBERT-base, recommended
r = ch.run("W którym roku urodził się Mikołaj Kopernik?",
           ["Mikołaj Kopernik urodził się 19 lutego 1473 roku w Toruniu. Był astronomem.",
            "Warszawa jest stolicą Polski od końca XVI wieku."])
print(r.texts, r.decision)   # ['Mikołaj Kopernik urodził się 19 lutego 1473 roku w Toruniu.'] ANSWER

Other variants: variant="mmbert-base-pl", variant="small-pl". The two folders without a built-in variant name load with

from chopper_rag import core
core.VARIANTS.update({"large-pl": "plmodernbert-large", "roberta-pl": "polish-roberta-base-8k"})
ch = core.Chopper.from_pretrained("wiiiktor/chopper-pl", variant="large-pl")

Variants

folder base (license) params which to use
plmodernbert-base/ OPI-PIB/pl-ModernBERT-base (Apache 2.0) 0.15B Polish documents: the default. Best KEEP F1, fewest tokens
mmbert-base-pl/ jhu-clsp/mmBERT-base (MIT) 0.31B mixed-language text; best on Polish 2-hop questions
plmodernbert-large/ OPI-PIB/pl-ModernBERT-large (Apache 2.0) 0.45B no gain over base; for comparison
polish-roberta-base-8k/ sdadas/polish-roberta-base-8k (Apache 2.0) 0.18B weakest; under-confident at p > 0.5 (try threshold=0.3)
mmbert-small-pl/ jhu-clsp/mmBERT-small (MIT) 0.14B small and fast; no multi-hop stage

Results

All on held-out data. Answers by Qwen3-14B reading only the chops; 2-hop answers graded by a judge model.

KEEP F1 PoQuAD / PolQA correct of 856 Polish questions correct of 100 Polish 2-hop questions HotpotQA-PL rerank nDCG@10
plmodernbert-base 0.694 / 0.731 738 51 0.704
mmbert-base-pl 0.562 / 0.677 732 56 0.674
plmodernbert-large 0.590 / 0.636 742 52 0.707
polish-roberta-base-8k 0.533 / 0.578 716 43 0.680
universal mmbert-base (no Polish training) 0.375 / 0.474 638 40 0.728
no chopper (all passages, ~3,900 tokens) – 728 33 –
  • KEEP F1: overlap between the kept text and the human-marked answer evidence (PoQuAD, PolQA validation).
  • 856 questions: 16 retrieved snippets per question; the chopper keeps 6% of the tokens (250 vs ~3,900) and the answers are as good or better.
  • 2-hop: 100 MuSiQue dev questions translated to Polish, 20 paragraphs each.
  • HotpotQA-PL: the MTEB HotpotQA-PL task as reranking of the top 100 from multilingual-e5-large. For reranking alone, a reranker such as bge-reranker-v2-m3 (0.778) or the universal chopper is better; these models are tuned for keeping evidence.

Training

Each Polish-base chopper (pl-ModernBERT base/large, polish-roberta) runs the full chopper recipe from scratch with every row fitted to its tokenizer, one epoch per stage at lr 3e-5: (1) multilingual mix, (2) rerank set, (3) final mix, (4) PoQuAD + PolQA + replay, (5) Polish multi-hop: 12,753 MuSiQue train rows with span labels, translated to Polish (spans carried by markers), plus Polish one-hop replay and 5,000 English multi-hop rows. mmbert-base-pl is the multilingual chopper with stage 4 and stage 5; mmbert-small-pl with stage 4 only. Every MuSiQue row that shares a paragraph with the 100 2-hop test questions was removed from training.

License and credits

Weights: Apache 2.0 (the mmBERT-based folders derive from MIT-licensed bases). Base models by OPI PIB, JHU CLSP and Sławomir Dadas. Training data: PoQuAD (CC BY 4.0), PolQA (CC BY-SA 4.0), MuSiQue (CC BY 4.0).

Downloads last month
12
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for wiiiktor/chopper-pl

Finetuned
(2)
this model

Datasets used to train wiiiktor/chopper-pl