| What it is | Minimalist ML framework for Rust | Fast State-of-the-Art Static Embeddings in Rust | Rust library for generating vector embeddings, reranking locally | Fast ML inference & training for ONNX models in Rust |
| 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
| - 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
| - safe Rust API over the ONNX Runtime C API (ONNX Runtime 1.31)
- downloads statically linked prebuilt ONNX Runtime binaries by default
- prebuilt binaries are attested (SLSA provenance) and hash-checked
- link a custom static build (ORT_LIB_PATH) or load the library at runtime (load-dynamic)
- execution providers as Cargo features: CUDA, TensorRT, OpenVINO, oneDNN, DirectML, NNAPI, CoreML, XNNPACK, ROCm, QNN, WebGPU and more
- IoBinding for control over where inputs and outputs live
- training API (training feature)
- experimental alternative backends: ort-candle, ort-tract, ort-web
- All 9 features
|
| Limitations | | - Doesn't distill or train models: that's the Python model2vec package; model2vec-rs only runs inference
| | - Doesn't have a stable 2.x release: 2.0 is still a release candidate (2.0.0-rc.15, October 2026)
- Doesn't support Intel Macs with ONNX Runtime: its supported macOS platform is arm64 only
- Doesn't ship prebuilt binaries for older Linux: they need glibc 2.39 and libstdc++ 13.2 (Ubuntu 24.04, Debian 13) or later
|