Overview of the usls library
mainusls is a cross-platform Rust library designed for efficient inference of State-of-the-Art (SOTA) vision and vision-language models (VLM). It is powered by ONNX Runtime and provides a unified interface for high-performance machine learning workflows.
Key Capabilities
- High Performance: Utilizes multi-threading, SIMD, and CUDA-accelerated processing via ONNX Runtime execution providers.
- Cross-Platform Support: Works on Linux, macOS, and Windows with support for various hardware accelerators including CUDA, TensorRT, CoreML, OpenVINO, and DirectML.
- Unified API: All models implement a single
Modeltrait featuringrun()/forward()methods and a unifiedYoutput format. - Auto-Management: Automatically handles model downloads from HuggingFace or GitHub, including caching and path resolution.
- Flexible Inputs: Supports images, directories, videos, webcams, and streams.
- Precision Support: Offers various quantization options such as FP32, FP16, INT8, Q4, Q4F16, and BNB4.
- Full-Stack Suite: Includes complete workflows with
DataLoader,Annotator, andViewercomponents.