Run this model with HF Jobs
Run minishlab/shimmer on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/minishlab/shimmer. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/minishlab/shimmer on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use minishlab/shimmer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Model2Vec
How to use minishlab/shimmer with Model2Vec:
from model2vec import StaticModel model = StaticModel.from_pretrained("minishlab/shimmer") embeddings = model.encode(["It's dangerous to go alone!", "It's a secret to everybody."]) print(embeddings.shape) - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files16 unmodified lines1718192021222343 unmodified lines676869707172737475767778798081828384858610 unmodified lines97989910010110210336 unmodified lines14014114214314414514619 unmodified lines16616716816917017117216 unmodified lines<img src="figures/shimmer-logo.svg" alt="shimmer logo" width="482"></div>shimmer is a sparse retrieval model built from the static embeddings of [minishlab/blink-8M](https://huggingface.co/minishlab/blink-8M), meant to replace BM25. Documents are indexed with a tokenizer and a sparse lookup. Queries are weighted with a per-token constant, which means that querying is encoding-free. All weights are part of the model's own 30,000-token vocabulary, so they can be stored as impacts in any inverted index, but require no corpus or index to function; a document's representation only depends on the document text, nothing else.The entire model is 76k parameters, and is only 851KB on disk. The whole repo, including the tokenizer and README, is about 1.5MB.43 unmodified lines- **blink-8M** is the dense static model shimmer is built from: mean pooling with cosine similarity.- **BM25** is bm25s Lucene BM25 with k1 = 0.9 and b = 0.4, over stemmed English words without stopwords, which are Pyserini's defaults.A "–" means the model hasn't been evaluated on that benchmark. The best score in each row is bold.### Main results| Dataset | Metric | blink-8M | BM25 | shimmer ||---|---|---:|---:|---:|| BEIR-15 | nDCG@10 | 37.7 | 41.3 | **42.3** || Decon-BEIR (12) | nDCG@10 | 46.7 | 49.8 | **51.6** || RTEB(eng, beta) | nDCG@10 | 30.8 | 32.2 | **39.4** |How the suites are built:- **BEIR-15** is BEIR with CQADupStack (the mean over its 12 subforums) and MS MARCO dev.- **Decon-BEIR** is LightOn's decontaminated BEIR. 12 datasets, excluding Climate-FEVER and FEVER.- **RTEB** is the main RTEB set.### Other benchmarks10 unmodified lines### Compared to learned sparse and dense modelsThese are the numbers of Table 2 of the SparseUP paper, next to shimmer. Those models are 150M-parameter transformers trained on retrieval data. shimmer runs no model at all.| Dataset | Metric | DenseOn | LateOn | SlideOn | SparseUP | SparseUP-v2 | shimmer ||---|---|---:|---:|---:|---:|---:|---:|36 unmodified lines| TREC-COVID | 62.43 | 58.89 | **66.85** || Touché-2020 | 20.25 | **44.24** | 40.69 || **Mean (15)** | 37.73 | 41.30 | **42.30** || **Mean (13, without CQADupStack and MS MARCO)** | 39.92 | 43.58 | **44.49** |</details>19 unmodified lines| TREC-COVID | 68.17 | 65.29 | **71.57** || Touché-2020 | 22.07 | **50.51** | 45.93 || **Mean (14)** | 45.03 | 48.48 | **50.02** || **Mean (12, without Climate-FEVER and FEVER)** | 46.71 | 49.79 | **51.59** |</details>16 unmodified lines1718192021222324252643 unmodified lines70717273747576777879808182838485868710 unmodified lines989910010110210310436 unmodified lines14114214314414514619 unmodified lines16616716816917017116 unmodified lines<img src="figures/shimmer-logo.svg" alt="shimmer logo" width="482"></div>shimmer is a sparse retrieval model built from the static embeddings of [minishlab/blink-8M](https://huggingface.co/minishlab/blink-8M), meant to replace BM25.Documents are indexed with a tokenizer and a sparse lookup, which runs at hundreds of thousands of documents per second.Queries are weighted with a per-token constant, which means that querying is encoding-free.All weights are part of the model's own 30,000-token vocabulary, so they can be stored as impacts in any inverted index, but require no corpus or index to function; a document's representation only depends on the document text, nothing else.The entire model is 76k parameters, and is only 851KB on disk. The whole repo, including the tokenizer and README, is about 1.5MB.43 unmodified lines- **blink-8M** is the dense static model shimmer is built from: mean pooling with cosine similarity.- **BM25** is bm25s Lucene BM25 with k1 = 0.9 and b = 0.4, over stemmed English words without stopwords, which are Pyserini's defaults.### Main results| Dataset | Metric | blink-8M | BM25 | shimmer ||---|---|---:|---:|---:|| BEIR-15 | nDCG@10 | 37.7 | 41.3 | **42.3** || Decon-BEIR | nDCG@10 | 46.7 | 49.8 | **50.0** || RTEB(eng, beta) | nDCG@10 | 30.8 | 32.2 | **39.4** |How the suites are built:- **BEIR-15** is BEIR with CQADupStack (the mean over its 12 subforums) and MS MARCO dev.- **Decon-BEIR** is LightOn's decontaminated BEIR.- **RTEB** is the main RTEB set.### Other benchmarks10 unmodified lines### Compared to learned sparse and dense modelsThese are the numbers of Table 2 of the SparseUP paper, next to shimmer. Note that those models are 150M-parameter transformers trained on retrieval data, while shimmer runs no model at all during inference.| Dataset | Metric | DenseOn | LateOn | SlideOn | SparseUP | SparseUP-v2 | shimmer ||---|---|---:|---:|---:|---:|---:|---:|36 unmodified lines| TREC-COVID | 62.43 | 58.89 | **66.85** || Touché-2020 | 20.25 | **44.24** | 40.69 || **Mean (15)** | 37.73 | 41.30 | **42.30** |</details>19 unmodified lines| TREC-COVID | 68.17 | 65.29 | **71.57** || Touché-2020 | 22.07 | **50.51** | 45.93 || **Mean (14)** | 45.03 | 48.48 | **50.02** |</details>
README.md+7-8