RS Infer

Overview

An ONNX Runtime inference server in Rust — embeddings, rerankers, PII, and zero-shot classification.

rs-infer is a Rust inference server built on ONNX Runtime (via the ort crate). One binary serves embeddings, rerankers, PII detection, and zero-shot classification through a single HTTP API.

Models are declared in a YAML config and fetched from the Hugging Face Hub at startup (or read from a local directory) — no manual model prep.

Platform support

macOS and Linux. Execution providers are compile-time features because ONNX Runtime's prebuilt binaries do not combine every EP into one download:

Profilemake commandNotes
CPU (works everywhere)make cpuno extra features
macOS + CoreML/ANEmake mac-coreml
Linux + CUDAmake gpu-cudaneeds CUDA ≥ 13.2 & cuDNN 9 on PATH
Linux + TensorRTmake gpu-trtdatacenter GPUs
Linux + TensorRT-RTXmake gpu-rtxconsumer GeForce/RTX

eps: [...] per model in the config is a priority list; entries not compiled in or unsupported by the linked build are skipped with a warning, and CPU is always the final fallback. GET /v1/models reports what each model actually uses.

On this page