Bielik-SPLADE-static-v1.0 - A static query encoder for fast Polish-language search
2 min readupdated
This model from Speakleash turns query encoding into a lookup table instead of using a heavy AI model. Each query token is mapped to up to 6 weight dimensions, requiring no GPUs or Transformers (Transformer - an AI model architecture for text processing) to process text. On a single CPU thread, query encoding takes a fraction of a millisecond. Created as a faster alternative to full-sized Bielik-SPLADE search indexes, this model is useful for search engine developers.
Key features
- Fast query encoding in 0.56 ms on a single CPU thread without a GPU.
- Average nDCG@10 (a metric for ranking quality) of 52.37 on public PIRB tasks.
- Compact query module size (about 20 MB) while remaining compatible with existing base model indexes.
- Powered by Sentence Transformers using a substitution table.
What you can do
- Set up a Polish-language search service with instant text query processing.
- Integrate the static query encoder into an existing Bielik-SPLADE-82M or 50M search index.
- Save disk space and memory by loading only the lightweight table part instead of the entire AI model.
Example
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"])
d = model.encode_document(["Stratę z odpłatnego zbycia papierów wartościowych można odliczyć ..."])
print(model.similarity(q, d))
Read more
DetailsMetrics: Average nDCG@10 is 52.37 across 32 public PIRB tasks.
Hardware: Runs on a CPU; query encoding takes 0.56 ms.
Limitations: Processes only the first 128 query tokens and supports Polish only.
License: Gemma Terms of Use.










Comments