| What it is | Fast State-of-the-Art Static Embeddings in Rust | Rust library for generating vector embeddings, reranking locally | Minimalist ML framework for Rust | Fast state-of-the-art static embeddings, and lightweight classifiers trained on top of them |
| Features | - inference for Model2Vec static models: tokenize, look up, average
- loads from the Hugging Face Hub, local paths, or bytes (from_bytes) for WASM and embedded use
- f32, f16 and int8 weights; quantize_int8 at load time
- batch encoding with configurable max length and batch size; Rayon parallelism
- flat row-major output (encode_flat)
- opt-in CLI (cli feature): encode-single and encode a file to JSON
- Python bindings (model2vec_rs.StaticModel) that release the GIL
- local-only and wasm feature sets
- All 9 features
| - dense, sparse and image embeddings
- rerankers (BGE, Jina)
- synchronous API, no Tokio dependency
- ONNX inference through ort
- quantized model variants
- user-defined local models via try_new_from_user_defined
- candle backend for Qwen3, nomic v2 MoE and BERT, with Metal and CUDA
- DirectML on Windows
- All 12 features
| - PyTorch-like tensor API with autograd and training
- CPU backend with optional MKL (x86) and Accelerate (macOS)
- CUDA backend with cuDNN, multi-GPU via NCCL, and JIT CUDA kernels in Rust (cuTile)
- Metal backend for Apple silicon
- WebAssembly support for in-browser models
- candle-transformers: LLMs, Whisper, Stable Diffusion, BERT-family encoders, vision models and more
- loads safetensors, npz, GGML/GGUF and PyTorch files
- quantization with llama.cpp's quantized types
- All 11 features
| - distills any Sentence Transformer into a static model in about 30 seconds on CPU, without a dataset
- pre-trained Potion models on Hugging Face: English, multilingual, retrieval and code
- up to 50x smaller and up to 500x faster than the source model on CPU (maker's figures)
- mean embeddings and per-token sequence embeddings
- fine-tuning for single- and multi-label classification, similarity, regression and pair similarity
- trained classifiers export to scikit-learn pipelines that run without torch
- push and load models and classifiers on the Hugging Face Hub
- optional float16 or int8 quantization and vocabulary quantization
- All 10 features
|