| What it is | Rust library for generating vector embeddings, reranking locally | Fast State-of-the-Art Static Embeddings in Rust | Fast, light, accurate library built for retrieval embedding generation | Minimalist ML framework for Rust |
| 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
| - 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
| - ONNX Runtime instead of PyTorch
- dense, sparse (SPLADE++, BM42) and late-interaction (ColBERT, ColPali) embeddings
- image embeddings (CLIP)
- cross-encoder rerankers
- custom models via add_custom_model
- data-parallel encoding of large datasets
- GPU support through fastembed-gpu
| - 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
|