Fast, flexible LLM inference engine in Rust with zero-config model loading, multimodality, quantization, and agentic features.
Mistral.rs is a fast, flexible LLM inference engine written in Rust. It supports any Hugging Face model with zero configuration, true multimodality (text, vision, video, audio, speech, image generation, embeddings), full quantization control (ISQ, GGUF, GPTQ, AWQ, HQQ, FP8, BNB), built-in web UI, hardware-aware tuning, and flexible SDKs (Python and Rust). It features agentic capabilities like server-side tool loops, web search, MCP client, and HTTP tool dispatch. Performance optimizations include continuous batching, FlashAttention, PagedAttention, and multi-GPU tensor parallelism.
Key Features
check_circleZero-config model loading from Hugging Face
check_circleAnyMoE: create mixture-of-experts on any base model
check_circleMultiple model load/unload at runtime
check_circleOpenAI-compatible HTTP API
check_circleDocker deployment
check_circleCross-platform: Linux, macOS, Windows
Use Cases
lightbulbDevelopers integrate LLM inference into their Rust or Python applications using the SDKs, enabling custom AI features with minimal setup.
lightbulbData scientists run interactive chat sessions with any Hugging Face model via the CLI, quickly testing prompts and iterating on model behavior.
lightbulbTeams deploy a production-grade LLM server with a web UI using a single command, providing an internal chat interface for their organization.
lightbulbResearchers experiment with different quantization methods (ISQ, GGUF, GPTQ) to balance model quality and speed on their hardware, using the auto-tune feature to find optimal settings.
lightbulbEngineers build multimodal applications that process text, images, video, and audio inputs simultaneously, leveraging the engine's unified inference pipeline.
lightbulbDevelopers create agentic workflows with tool calling and web search integration, allowing the LLM to fetch real-time information and execute actions autonomously.
lightbulbSystem administrators containerize the engine with Docker for scalable deployment on GPU clusters, serving multiple users with continuous batching.
lightbulbMachine learning engineers fine-tune models with LoRA adapters and load them at runtime, enabling rapid experimentation with domain-specific customizations.