Instructions to use speakleash/Bielik-SPLADE-82M-v1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use speakleash/Bielik-SPLADE-82M-v1.0 with sentence-transformers:
from sentence_transformers import SparseEncoder model = SparseEncoder("speakleash/Bielik-SPLADE-82M-v1.0") queries = ["Which planet is known as the Red Planet?"] documents = [ "Venus is often called Earth's twin because of its similar size and proximity.", "Mars, known for its reddish appearance, is often referred to as the Red Planet.", "Jupiter, the largest planet in our solar system, has a prominent red spot.", ] query_embeddings = model.encode_query(queries) document_embeddings = model.encode_document(documents) similarities = model.similarity(query_embeddings, document_embeddings) print(similarities) - Notebooks
- Google Colab
- Kaggle
Bielik-SPLADE-82M-v1.0
This model is part of the Bielik-SPLADE v1.0 collection on Hugging Face (five repositories: the 82M and 50M models, the static query encoder and two int8 ONNX exports).
A sparse (SPLADE) retrieval model for Polish. It is fine-tuned from sdadas/polish-splade (82M parameters, the
same architecture and tokenizer). Each text becomes a weighted bag of vocabulary terms (50,001 dimensions, mostly
zeros), so you can serve it from an ordinary inverted index (Anserini/Lucene impact index, Qdrant or Elasticsearch
sparse vectors, and others).
Main result
A mean nDCG@10 of 55.01 on the 32 public PIRB tasks, against 51.34 for sdadas/polish-splade and 40.32 for
BM25. It scores higher than sdadas/polish-splade on 31 of the 32 tasks; on the remaining one (poquad) both score 19.57.
All results on this card cover only the publicly available part of PIRB: 32 of its 41 tasks.
Mean nDCG@10 on the 32 public PIRB tasks. sdadas/polish-splade and BM25: official PIRB leaderboard, averaged over the same tasks.
Index cost
378.5 active dimensions per document; 123.0 dimensions and 13,945 postings per query (see Cost). That is cheaper
and better than sdadas/polish-splade (424.5 dimensions per document, 16,807 postings per query).
Quality against query cost. Postings per query = index entries a query reads (mean over a cost sample of 1,350 queries).
Other models of this release. All of them share one tokenizer and one vocabulary with this model:
- speakleash/Bielik-SPLADE-50M-v1.0: a smaller model (50M parameters), 53.81 on the 32 public tasks. It can also encode the queries over this model's index; its card has the details;
- speakleash/Bielik-SPLADE-static-v1.0: an inference-free query encoder (a lookup table, no transformer at query time), 52.37 on the 32 public tasks over this model's index. It also works over the index of Bielik-SPLADE-50M; its card has the details.
int8 ONNX exports for CPU inference without PyTorch: speakleash/Bielik-SPLADE-82M-v1.0-ONNX-INT8 (this model) and speakleash/Bielik-SPLADE-50M-v1.0-ONNX-INT8 (the 50M model).
Usage
Requires sentence-transformers >= 5.0 (SparseEncoder).
from sentence_transformers import SparseEncoder
model = SparseEncoder("speakleash/Bielik-SPLADE-82M-v1.0")
queries = ["jak rozliczyć stratę z inwestycji w PIT"]
documents = [
"Stratę z odpłatnego zbycia papierów wartościowych można odliczyć od dochodu z tego samego źródła "
"w ciągu kolejnych pięciu lat podatkowych.",
]
q = model.encode_query(queries)
d = model.encode_document(documents)
print(model.similarity(q, d)) # dot product
print(model.decode(q[0], top_k=10)) # the strongest (token, weight) pairs of the query
- No query prefix or instruction. The model was trained and evaluated without a prompt for queries and documents.
- The model reads up to 512 tokens.
- Speed on a CPU: on an AMD Ryzen 5 5600X a query takes 44.9 ms (median, batch 1, 6 threads) in PyTorch fp32, and 3.7 ms with the int8 ONNX export. The ONNX repository (speakleash/Bielik-SPLADE-82M-v1.0-ONNX-INT8) has the full table. In PyTorch the query time hardly changes with the number of threads (45.4 ms on one thread): about half of it is the MLM output layer (768 × 50,001), which PyTorch does not speed up with threads on this CPU. The ONNX export does not have this limit. The card of speakleash/Bielik-SPLADE-50M-v1.0 compares the inference cost of the two models.
Results
Main table: 32 public PIRB tasks
These are results on the publicly available part of PIRB only. PIRB has 41 tasks. The 9 tasks of the Web Datasets group are not public, so we could not run them, and the means below are not comparable with the 41-task means of the PIRB leaderboard.
- This model and Bielik-SPLADE-50M encode both the queries and the documents themselves.
- The static query encoder writes the queries; the documents come from this model's index.
sdadas/polish-spladeand BM25 (pyserini) are the per-task scores of the official PIRB leaderboard, averaged by us over the same 32 tasks. We did not run them ourselves.
| group | task | this model | Bielik-SPLADE-50M | static queries over this index | sdadas/polish-splade | BM25 |
|---|---|---|---|---|---|---|
| MaupQA | maupqa-1z10 | 49.60 | 49.07 | 47.56 | 47.39 | 42.32 |
| MaupQA | maupqa-czy-wiesz-v2 | 87.76 | 86.37 | 84.88 | 85.97 | 69.39 |
| MaupQA | maupqa-gpt3-cc | 18.89 | 18.62 | 18.56 | 18.41 | 16.93 |
| MaupQA | maupqa-gpt3.5-cc | 20.57 | 20.33 | 20.21 | 20.12 | 17.86 |
| MaupQA | maupqa-gpt3.5-wiki | 92.95 | 92.06 | 91.49 | 91.22 | 79.38 |
| MaupQA | maupqa-mkqa | 65.71 | 64.75 | 63.41 | 63.88 | 34.36 |
| MaupQA | maupqa-mqa | 20.02 | 19.15 | 18.76 | 18.78 | 11.70 |
| MaupQA | maupqa-multilingual-NLI | 14.88 | 14.55 | 14.16 | 14.15 | 9.56 |
| MaupQA | maupqa-poleval2021-pairs | 84.07 | 82.95 | 79.92 | 82.91 | 57.23 |
| MaupQA | maupqa-poquad | 19.57 | 18.52 | 18.10 | 19.57 | 12.95 |
| MaupQA | maupqa-templates | 76.72 | 75.87 | 74.44 | 75.23 | 60.80 |
| MaupQA | maupqa-wiki-def | 68.05 | 66.83 | 63.43 | 64.96 | 51.19 |
| PolEval-2022 | poleval-2022-dev-0-wiki-trivia | 43.73 | 41.66 | 38.53 | 37.41 | 25.18 |
| PolEval-2022 | poleval-2022-test-A-wiki-trivia | 41.81 | 40.44 | 36.94 | 35.03 | 25.49 |
| PolEval-2022 | poleval-2022-test-A-legal-questions | 84.58 | 82.74 | 81.47 | 80.44 | 67.70 |
| PolEval-2022 | poleval-2022-test-A-allegro-faq | 78.93 | 77.70 | 76.99 | 73.37 | 53.83 |
| PolEval-2022 | poleval-2022-test-B-wiki-trivia | 42.93 | 41.09 | 37.57 | 35.94 | 25.37 |
| PolEval-2022 | poleval-2022-test-B-legal-questions | 84.70 | 82.56 | 81.19 | 78.39 | 69.37 |
| PolEval-2022 | poleval-2022-test-B-allegro-faq | 75.48 | 74.28 | 72.81 | 71.87 | 51.60 |
| BEIR-PL | arguana-pl | 50.09 | 49.11 | 44.69 | 36.44 | 30.59 |
| BEIR-PL | dbpedia-pl | 34.62 | 33.51 | 32.29 | 28.42 | 22.86 |
| BEIR-PL | fiqa-pl | 32.87 | 31.23 | 29.85 | 26.67 | 16.72 |
| BEIR-PL | hotpotqa-pl | 64.79 | 64.16 | 62.59 | 55.17 | 49.72 |
| BEIR-PL | msmarco-pl | 32.07 | 30.57 | 28.74 | 30.69 | 10.16 |
| BEIR-PL | nfcorpus-pl | 32.76 | 32.77 | 33.12 | 29.84 | 41.12 |
| BEIR-PL | nq-pl | 43.17 | 41.59 | 39.25 | 40.42 | 15.74 |
| BEIR-PL | quora-pl | 79.84 | 79.25 | 76.70 | 76.76 | 61.93 |
| BEIR-PL | scidocs-pl | 14.73 | 14.86 | 13.74 | 12.56 | 11.94 |
| BEIR-PL | scifact-pl | 68.86 | 68.27 | 67.66 | 64.70 | 61.49 |
| BEIR-PL | trec-covid-pl | 72.48 | 64.57 | 65.21 | 65.46 | 43.62 |
| Other | mfaq | 63.85 | 63.42 | 62.86 | 62.15 | 49.46 |
| Other | gpt-exams | 99.12 | 99.00 | 98.83 | 98.62 | 92.72 |
| mean | 32 tasks | 55.01 | 53.81 | 52.37 | 51.34 | 40.32 |
Cost
| model | dims/doc | dims/query, mean / median | postings/query, mean / median / p95 |
|---|---|---|---|
| this model | 378.5 | 123.0 / 70 | 13,945 / 9,139 / 44,972 |
| Bielik-SPLADE-50M | 346.4 | 120.7 / 76 | 12,725 / 8,969 / 37,983 |
| Bielik-SPLADE-50M queries over this index | 378.5 (this model's index) | 120.7 / 76 | 13,537 / 9,500 / 41,090 |
| static queries over this index | 378.5 (this model's index) | 71.0 / 41 | 9,046 / 5,899 / 34,197 |
| sdadas/polish-splade | 424.5 | 132.4 / 74 | 16,807 / 10,924 / 54,382 |
All columns come from one fixed cost sample: 1,350 passages and 1,350 queries from 10 of the public PIRB tasks (maupqa-gpt3-cc, maupqa-mkqa, maupqa-poleval2021-pairs, maupqa-templates, both allegro-faq tasks, arguana-pl, nfcorpus-pl, scifact-pl and gpt-exams). A posting is one (term, document) entry that a query visits in the inverted index: the sum, over the query's dimensions, of the number of passages in the sample that have that dimension. The sdadas/polish-splade row is our measurement of the original Hugging Face checkpoint with the same code on the same sample.
How it was trained
Training data. We used public datasets on open licenses, our own translations of datasets into Polish and our own synthetically generated examples. Across all rounds below, the model saw 99,860 distinct queries with their positive passages. Many queries were used in more than one round, each time with other negatives or other teacher scores, so the training rows add up to 221,121.
Start:
sdadas/polish-splade, a Polish SPLADE model.Round 1, contrastive training: five separate fine-tuning runs from the start model, each on a different mix of 2,073 to 10,073 rows (24,584 rows in total). Loss: multiple-negatives ranking with 10 hard negatives per query (mined as described in Data mining for round 1) plus the in-batch negatives; 2 epochs. The five models were averaged weight by weight (a "model soup"). This average is the SPLADE teacher of the next rounds.
Round 2, distillation: one more run from the start model on 18,073 rows, with KL divergence (temperature 2) to the scores of a teacher ensemble: the round-1 average and the dense model
OPI-PIB/PolDense-400M(combined as in step 6); 2 epochs. Its weights were averaged with the round-1 average; the result is the starting point of the final round.Final round: three arms of one recipe. All three arms start from the model of step 3 and differ only in their training rows: three different mixes of 60,385, 40,292 and 77,787 rows.
Recipe of each arm: Sentence Transformers
SparseEncoderwith the following settings:- 2 epochs, learning rate 2e-5, linear schedule, 10 % warm-up;
- loss: KL divergence (temperature 2) to the scores of a teacher ensemble, over 10 negatives per query;
- FLOPS regularization: λ = 0.001 for documents and 0.00005 for queries.
Teacher ensemble: the mean of two scores for each (query, passage) pair:
- the dot product of the round-1 average (step 2);
- the cosine similarity of the dense model
OPI-PIB/PolDense-400M, multiplied by a scale factor.
Scale factor. A cosine lies between −1 and 1, while SPLADE dot products are in the tens, so the cosines are scaled up before averaging. The factor is the one that brings the scaled cosines closest to the SPLADE scores on the training rows. It was computed separately for each training set: 84.19 in the final round and 114.53 in round 2.
Negatives: mined by an earlier student model. For each query: the 5 best and 5 random passages from its top 60, keeping only passages whose length is 0.5–2× the positive's length. No labels beyond the given positives.
Merge: a uniform average of the raw weights of the three arms. In our experiments, adding further rows of other kinds to a single training run (another 17,000 to 20,000 rows on top of the 60,385-row arm) did not raise the mean score; averaging the weights of arms trained on different rows did.
Sparsification: a constant downward shift of the MLM-head output bias. This acts as a soft weight threshold built into the checkpoint, so no inference-time threshold is needed. The shift was set to the first step (in increments of 0.05) that keeps the index at or below 410 dims/doc.
Data mining for round 1
This section applies only to the training rows of round 1 (step 2). The later rounds use negatives mined by an earlier student model (step 7).
- Candidates. The passages of each dataset were indexed in a vector database with a dense and a sparse (SPLADE) retriever. The candidates for each query came from a hybrid search over this index, read further down the ranking until enough negatives were found.
- Scoring. The final scores of the positives and of the candidates came from
BAAI/bge-reranker-v2.5-gemma2-lightweight. The mining tool can also preselect the candidates with a smaller reranker first and score only that pool with the final one. - Positive-aware negatives. A candidate became a hard negative only if its final score stayed far below the query's own positives: as a percentile of the scores of all positives in the dataset, it had to be below a small fraction of the percentile of the query's weakest positive. This keeps hard negatives while rejecting passages that are likely relevant but unlabelled.
- Mined positives. A small number of candidates that scored as high as the given positives were added as extra positives; we used them conservatively.
Limitations
- Polish only. Inputs longer than 512 tokens are truncated.
- Part of the training data is machine-translated into Polish.
- BM25 is still better on nfcorpus-pl (41.12 against 32.76).
License
License: Gemma Terms of Use. Part of the training signal comes from models built on Google's Gemma 2:
- The teacher. One of the two teachers,
OPI-PIB/PolDense-400M, is distributed under the Gemma license. It was distilled fromBAAI/bge-multilingual-gemma2. This model was trained to match that teacher's scores. - The training data. The positive passages of several training sets were filtered by the scores of
BAAI/bge-reranker-v2.5-gemma2-lightweight, and the same reranker scored the hard negatives and the mined positives of round 1 (see Data mining for round 1).
We therefore treat this model as a Gemma Model Derivative:
- it is distributed under the Gemma Terms of Use;
- its use is subject to the Gemma Prohibited Use Policy;
- the repository contains a
NOTICEfile: "Gemma is provided under and subject to the Gemma Terms of Use found at gemma.ai/resources/terms".
This repository contains the NOTICE file and copies of the Gemma Terms of Use (GEMMA_TERMS_OF_USE.md) and of the Gemma Prohibited Use Policy (GEMMA_PROHIBITED_USE_POLICY.md), retrieved 2026-11-24.
The base model sdadas/polish-splade is licensed under Apache-2.0.
Contributors
- Jan SowaSpeakLeash - team lead, training methodology (stages, distillation, static query encoder), data preparation (filtering, negative mining)
- Karol JezierskiSpeakLeash - conceptualization, synthetic data generation, negative mining, coordination and supervision of HPC workloads
- Marcin BorzymowskiSpeakLeash - data curation and the translation pipeline
Data Protection and Copyright Requests
For removal requests of personally identifiable information (PII) or of copyrighted content, please contact the respective dataset owners or us directly: biuro@speakleash.org.pl.
Citation
Please cite this model using the following format:
@misc{BielikSPLADE82Mv10,
title = {Bielik-SPLADE-82M-v1.0 model card},
author = {Sowa, Jan and Borzymowski, Marcin and Jezierski, Karol},
year = {2026},
url = {https://huggingface.co/speakleash/Bielik-SPLADE-82M-v1.0},
note = {Accessed: 2026-11-26}, % change this date
urldate = {2026-11-26} % change this date
}
The evaluation uses PIRB:
@article{dadas2024pirb,
title={{PIRB}: A Comprehensive Benchmark of Polish Dense and Hybrid Text Retrieval Methods},
author={Sławomir Dadas and Michał Perełkiewicz and Rafał Poświata},
year={2024},
eprint={2402.13350},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
Contact Us
If you have any questions or suggestions, please use the discussion tab. If you want to contact us directly, join our Discord SpeakLeash.
Acknowledgements
We gratefully acknowledge Polish high-performance computing infrastructure PLGrid (HPC Center: ACC Cyfronet AGH) for providing computer facilities and support within computational grant no. [PLG/2026/019559].
This work was supported by the Gaia AI Factory project, funded by the European Union under Grant Agreement No. 101314359 through the EuroHPC Joint Undertaking (EuroHPC JU).
- Downloads last month
- 122