{"by":"Tananon","descendants":15,"id":44021883,"kids":[44025977,44023281,44025809,44023307,44026767],"score":60,"text":"Hey HN!\nWe’ve just open-sourced model2vec-rs, a Rust crate for loading and running Model2Vec static embedding models with zero Python dependency. This allows you to embed text at (very) high throughput; for example, in a Rust-based microservice or CLI tool. This can be used for semantic search, retrieval, RAG, or any other text embedding usecase.<p>Main Features:<p>- Rust-native inference: Load any Model2Vec model from Hugging Face or your local path with StaticModel::from_pretrained(...).<p>- Tiny footprint: The crate itself is only ~1.7 mb, with embedding models between 7 and 30 mb.<p>Performance:<p>We benchmarked single-threaded on a CPU:<p>- Python: ~4650 embeddings&#x2F;sec<p>- Rust:   ~8000 embeddings&#x2F;sec (~1.7× speedup)<p>First open-source project in Rust for us, so would be great to get some feedback!","time":1747580495,"title":"Show HN: Model2vec-Rs – Fast Static Text Embeddings in Rust","type":"story","url":"https://github.com/MinishLab/model2vec-rs"}