mistral.rs
FreeBlazingly fast LLM inference.
About mistral.rs
mistral.rs is a blazingly fast, flexible LLM inference engine written in Rust. It supports a wide range of models including Mistral, Llama, Gemma, Phi, and more, with both CPU and GPU acceleration. The engine features paged attention, prefix caching, in-situ quantization (ISQ), and CUDA optimizations like FlashInfer and CUDA graphs for top-tier performance. It enables multimodal inference with text, image, video, and audio inputs, as well as tool calling, agentic runtime (web search, code execution), and OpenAI-compatible and Anthropic Messages API endpoints. mistral.rs also offers a Rust SDK, Python SDK, and support for skill bundles and file inputs, making it suitable for local deployment, server applications, and AI agent development.
Key Features
Pros & Cons
- Blazing fast inference, competitive with llama.cpp in benchmarks
- Flexible support for many model types and modalities
- Actively developed with strong community and Discord support
- Rust memory safety without sacrificing speed
- Comprehensive API compatibility (OpenAI, Anthropic) simplifies integration
- May require Rust toolchain for optimal compilation
- Smaller ecosystem and fewer pre-built binaries compared to alternatives
- Documentation still evolving as project matures