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 files2 unmodified lines34567897 unmodified lines1718192021222312 unmodified lines363738394041422 unmodified lines- enlibrary_name: model2veclicense: mitmodel_name: shimmer-76ktags:- embeddings- static-embeddings7 unmodified lines<img src="figures/shimmer-logo.svg" alt="shimmer logo" width="482"></div>shimmer-76k 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.12 unmodified lines```pythonfrom model2vec.sparse import SparseStaticModelmodel = SparseStaticModel.from_pretrained("minishlab/shimmer-76k")documents = model.encode_document(["Example document", "Another document"])queries = model.encode_query(["Example query"])2 unmodified lines34567897 unmodified lines1718192021222312 unmodified lines363738394041422 unmodified lines- enlibrary_name: model2veclicense: mitmodel_name: shimmertags:- embeddings- static-embeddings7 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.12 unmodified lines```pythonfrom model2vec.sparse import SparseStaticModelmodel = SparseStaticModel.from_pretrained("minishlab/shimmer")documents = model.encode_document(["Example document", "Another document"])queries = model.encode_query(["Example query"])
README.md+3-3