mistral.rs logo

mistral.rs

Free

Blazingly fast LLM inference.

FreeFree tier
Inputs: text, image, video, audioOutputs: text
Type
Open Source

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

Rust-based LLM inference engine with superior performance
Supports Mistral, Llama, Gemma, Phi, and many other model architectures
Paged attention and prefix caching for efficient decoding
Quantization via ISQ (in-situ quantization) and Q8 formats
Multimodal input support: text, image, video, and audio
Tool calling and agentic runtime (web search, Python execution, shell)
OpenAI-compatible API and Anthropic Messages API endpoints
CUDA graphs, FlashInfer kernels, and MoE optimizations for high throughput
Rust SDK and Python SDK for programmatic access
Skill bundles and file inputs for extensible workflows

Pros & Cons

Pros
  • 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
Cons
  • May require Rust toolchain for optimal compilation
  • Smaller ecosystem and fewer pre-built binaries compared to alternatives
  • Documentation still evolving as project matures

Best For

Local LLM inference on CPU and GPUBuilding AI agents with tool calling and code executionMultimodal applications (image/video/audio analysis)Self-hosted OpenAI-compatible API serverBenchmarking and performance testing of LLMs