Instructions to use speakleash/Bielik-SPLADE-static-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-static-v1.0 with sentence-transformers:
from sentence_transformers import SparseEncoder model = SparseEncoder("speakleash/Bielik-SPLADE-static-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-static-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).
An inference-free query encoder for the full Polish SPLADE model of this release, speakleash/Bielik-SPLADE-82M-v1.0. The query side is a lookup table, not a neural network. Each query token maps to at most 6 weighted vocabulary dimensions. The table also has rows for whole words and for pairs of adjacent words. The query vector is the maximum over the rows the query hits. Documents are encoded by the full model, so retrieval runs over the full model's index. The table also works over an index built by speakleash/Bielik-SPLADE-50M-v1.0 (see Over the index of Bielik-SPLADE-50M).
Encoding a query is a tokenizer pass plus a table lookup. It needs no GPU and no transformer. On one CPU thread (AMD Ryzen 5 5600X, batch 1) a query takes 0.56 ms (median; mean 0.64 ms) through Sentence Transformers: 0.19 ms of tokenization and 0.05 ms of table lookup, the rest is library overhead. More threads do not help.
Main result
Over the full model's index, the static query side scores a mean nDCG@10 of 52.37 on the 32 public PIRB tasks.
That is above sdadas/polish-splade (51.34) and 2.64 points below the full model (55.01). 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.
Query cost
71.0 dimensions and 9,046 postings per query, the cheapest query side of this release (full model: 123.0 and 13,945; see Cost).
Quality against query cost. Postings per query = index entries a query reads (mean over a cost sample of 1,350 queries).
What is in this repository
One Sentence Transformers SparseEncoder with two routes (about 335 MB):
โโโ modules.json, router_config.json, config_sentence_transformers.json
โโโ static_query_expansion.py # the table module (remote code)
โโโ query_0_SparseStaticExpansion/ # query route: the table and the tokenizer (about 20 MB)
โโโ document_0_MLMTransformer/ # document route: the full 82M model
โโโ document_1_SpladePooling/
- The query route is the table in the
static-sparse-query/1format (static_query.safetensors,static_query.json) plus the tokenizer. The table has 250,001 rows: 50,001 token rows and 200,000 rows for words and word pairs. Each row has 6 slots, and 1,346,293 slots are active in total. - The document route holds the same weight file as speakleash/Bielik-SPLADE-82M-v1.0 (identical SHA-256). An index built with this repository is the same as an index built with the 82M repository, so you can change the query encoder later without re-indexing.
If you only need the query side, for example in a search service over an existing index, download just the query route (about 20 MB, see the second example in Usage).
Usage
Requires sentence-transformers >= 5.0 and trust_remote_code=True. The table module ships as
static_query_expansion.py in the repository. The built-in SparseStaticEmbedding holds one weight per token on
its own dimension, so it cannot carry the expansion slots. Read that file before you enable remote code.
from sentence_transformers import SparseEncoder
model = SparseEncoder("speakleash/Bielik-SPLADE-static-v1.0", trust_remote_code=True)
q = model.encode_query(["jak rozliczyฤ stratฤ z inwestycji w PIT"]) # table lookup, no transformer
d = model.encode_document(["Stratฤ z odpลatnego zbycia papierรณw wartoลciowych moลผna odliczyฤ ..."]) # full SPLADE model
print(model.similarity(q, d))
Query side only (about 20 MB instead of 335 MB), when the documents were already indexed with speakleash/Bielik-SPLADE-82M-v1.0 or speakleash/Bielik-SPLADE-50M-v1.0:
import sys
from huggingface_hub import snapshot_download
from sentence_transformers import SparseEncoder
repo_dir = snapshot_download(
"speakleash/Bielik-SPLADE-static-v1.0",
allow_patterns=["static_query_expansion.py", "query_0_SparseStaticExpansion/*"],
)
sys.path.insert(0, repo_dir) # runs code from this repository, as trust_remote_code does
from static_query_expansion import SparseStaticExpansion
query_encoder = SparseEncoder(modules=[SparseStaticExpansion.from_table_dir(f"{repo_dir}/query_0_SparseStaticExpansion")])
q = query_encoder.encode(["jak rozliczyฤ stratฤ z inwestycji w PIT"]) # same vectors as the query route above
The download is small, but the module still needs torch, transformers and sentence-transformers.
Requirements and limits:
- The index must be built by Bielik-SPLADE-82M-v1.0 or Bielik-SPLADE-50M-v1.0. The table was trained against the document vectors of the full model; it is not meant for other indexes and was not evaluated with them.
- The table reads only the first 128 tokens of a query. Longer queries are truncated. In PIRB this matters for arguana-pl, whose queries are whole arguments: 91 % of them are cut at 128 tokens.
- No query prefix.
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.
nDCG@10, asymmetric setup: static queries over the full model's index. The full model, sdadas/polish-splade and
BM25 encode both queries and documents with their own encoders. sdadas/polish-splade and BM25 (pyserini) are the
per-task scores of the official PIRB leaderboard, averaged by us over the
same 32 tasks. We did not run sdadas/polish-splade and BM25 ourselves.
| group | task | static queries (this model) | full model | sdadas/polish-splade | BM25 |
|---|---|---|---|---|---|
| MaupQA | maupqa-1z10 | 47.56 | 49.60 | 47.39 | 42.32 |
| MaupQA | maupqa-czy-wiesz-v2 | 84.88 | 87.76 | 85.97 | 69.39 |
| MaupQA | maupqa-gpt3-cc | 18.56 | 18.89 | 18.41 | 16.93 |
| MaupQA | maupqa-gpt3.5-cc | 20.21 | 20.57 | 20.12 | 17.86 |
| MaupQA | maupqa-gpt3.5-wiki | 91.49 | 92.95 | 91.22 | 79.38 |
| MaupQA | maupqa-mkqa | 63.41 | 65.71 | 63.88 | 34.36 |
| MaupQA | maupqa-mqa | 18.76 | 20.02 | 18.78 | 11.70 |
| MaupQA | maupqa-multilingual-NLI | 14.16 | 14.88 | 14.15 | 9.56 |
| MaupQA | maupqa-poleval2021-pairs | 79.92 | 84.07 | 82.91 | 57.23 |
| MaupQA | maupqa-poquad | 18.10 | 19.57 | 19.57 | 12.95 |
| MaupQA | maupqa-templates | 74.44 | 76.72 | 75.23 | 60.80 |
| MaupQA | maupqa-wiki-def | 63.43 | 68.05 | 64.96 | 51.19 |
| PolEval-2022 | poleval-2022-dev-0-wiki-trivia | 38.53 | 43.73 | 37.41 | 25.18 |
| PolEval-2022 | poleval-2022-test-A-wiki-trivia | 36.94 | 41.81 | 35.03 | 25.49 |
| PolEval-2022 | poleval-2022-test-A-legal-questions | 81.47 | 84.58 | 80.44 | 67.70 |
| PolEval-2022 | poleval-2022-test-A-allegro-faq | 76.99 | 78.93 | 73.37 | 53.83 |
| PolEval-2022 | poleval-2022-test-B-wiki-trivia | 37.57 | 42.93 | 35.94 | 25.37 |
| PolEval-2022 | poleval-2022-test-B-legal-questions | 81.19 | 84.70 | 78.39 | 69.37 |
| PolEval-2022 | poleval-2022-test-B-allegro-faq | 72.81 | 75.48 | 71.87 | 51.60 |
| BEIR-PL | arguana-pl | 44.69 | 50.09 | 36.44 | 30.59 |
| BEIR-PL | dbpedia-pl | 32.29 | 34.62 | 28.42 | 22.86 |
| BEIR-PL | fiqa-pl | 29.85 | 32.87 | 26.67 | 16.72 |
| BEIR-PL | hotpotqa-pl | 62.59 | 64.79 | 55.17 | 49.72 |
| BEIR-PL | msmarco-pl | 28.74 | 32.07 | 30.69 | 10.16 |
| BEIR-PL | nfcorpus-pl | 33.12 | 32.76 | 29.84 | 41.12 |
| BEIR-PL | nq-pl | 39.25 | 43.17 | 40.42 | 15.74 |
| BEIR-PL | quora-pl | 76.70 | 79.84 | 76.76 | 61.93 |
| BEIR-PL | scidocs-pl | 13.74 | 14.73 | 12.56 | 11.94 |
| BEIR-PL | scifact-pl | 67.66 | 68.86 | 64.70 | 61.49 |
| BEIR-PL | trec-covid-pl | 65.21 | 72.48 | 65.46 | 43.62 |
| Other | mfaq | 62.86 | 63.85 | 62.15 | 49.46 |
| Other | gpt-exams | 98.83 | 99.12 | 98.62 | 92.72 |
| mean | 32 tasks | 52.37 | 55.01 | 51.34 | 40.32 |
The static query side beats sdadas/polish-splade on 21 of the 32 tasks.
Over the index of Bielik-SPLADE-50M
The table also works over an index built by the smaller model of this release. This setup was measured on 31 of the 32 public tasks (all except nq-pl):
| setup | mean nDCG@10, 31 tasks |
|---|---|
| static queries over the index of Bielik-SPLADE-50M | 52.33 |
| static queries over the full model's index | 52.80 |
| Bielik-SPLADE-50M on its own | 54.20 |
| full model | 55.39 |
Cost
| query side (index: full model) | dims/doc (index) | dims/query, mean / median | postings/query, mean / median / p95 | query encoding, CPU |
|---|---|---|---|---|
| static table (this model) | 378.5 | 71.0 / 41 | 9,046 / 5,899 / 34,197 | 0.56 ms (1 thread) |
| full model | 378.5 | 123.0 / 70 | 13,945 / 9,139 / 44,972 | 10.5 ms (ONNX int8, 1 thread); 3.7 ms (6 threads) |
| sdadas/polish-splade (its own index) | 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 (listed on the full model's card); that sample contains the long arguana-pl queries. 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. Both CPU times are medians at batch 1 on the same AMD Ryzen 5
5600X. The full model's times were measured on a different set of 300 short queries from a corpus of Polish queries and passages outside PIRB.
How it was built
The document side (the full model) stayed frozen throughout. No labels were used: the full model's own query vectors and scores were the teacher. The texts come from public datasets on open licenses, our own translations of datasets into Polish and our own synthetically generated examples.
Queries. A bank of 1,847,256 unique Polish queries, deduplicated and decontaminated against PIRB. It contains 90 % of the 359,618 queries of the distillation corpus, an unlabeled corpus of Polish queries and passages that was also used to distill speakleash/Bielik-SPLADE-50M-v1.0.
Rows. Token rows were credited from the full model on the queries of the bank. Each dimension of the pooled query vector is credited to the token where its maximum was reached. A row is the mean credit over the queries that contain the token, with the top 8 dimensions kept. Tokens seen in fewer than 3 queries take their row from the token alone. 200,000 extra rows for whole words and adjacent word pairs (seen at least 5 times) were credited the same way.
First training pool. 250,000 passages of the distillation corpus and 600,000 queries sampled from the bank, with exact search by the full model. The candidates were the teacher's top passages plus the table's own top passages.
First training. KL between the table's scores and the full model's scores. Only the table weights were trained.
Second pool and training. A second pool of 600,000 queries used candidates from the trained table, followed by 3 more epochs.
Pruning, without further training:
- weights below 0.20 were dropped;
- two masks: the generic dimensions (the same few dimensions with high weights that the full model writes for any token on its own) were removed from the 4,047 rows of rare tokens, and the punctuation and special-token dimensions from the rows of the special tokens, which every query hits;
- only the 6 strongest weights of every row were kept.
The masks and the 6-slot limit cut the query cost by 9 % (from 9,903 to 9,046 postings per query) without lowering the quality.
Limitations
- It reads 128 query tokens (see Usage).
- It works only over an index built by Bielik-SPLADE-82M-v1.0 or Bielik-SPLADE-50M-v1.0.
- A static table has no context. The same word always expands the same way, whatever the rest of the query says. We expect this to be the main source of the gap to a contextual query encoder. If a small transformer at query time is acceptable, speakleash/Bielik-SPLADE-50M-v1.0 can also encode the queries over the same index. On the 18 public tasks where both were measured, it scores 55.31 against 53.54 for this table.
- Polish only.
License
License: Gemma Terms of Use. The table was trained to reproduce the scores of the full model of
this release. This repository also contains the full model's weights as its document route. It is therefore
distributed under the Gemma Terms of Use, with the same NOTICE file, copies of the Gemma terms and use
restrictions as the full model (speakleash/Bielik-SPLADE-82M-v1.0, whose card explains the license).
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{BielikSPLADEstaticv10,
title = {Bielik-SPLADE-static-v1.0 model card},
author = {Sowa, Jan and Borzymowski, Marcin and Jezierski, Karol},
year = {2026},
url = {https://huggingface.co/speakleash/Bielik-SPLADE-static-v1.0},
note = {Accessed: 2026-11-26}, % change this date
urldate = {2026-11-26} % change this date
}
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).
Model tree for speakleash/Bielik-SPLADE-static-v1.0
Base model
sdadas/polish-splade