| Documentation | Quickstart | Supported models | Rust SDK | Python SDK | Discord |
LiquidAI/LFM3-1.7B and LiquidAI/LFM3-VL-2B, including text, image, and video inference, GGUF loading, ISQ, paged attention, and chunked prefill. Model notes-f, or select a published artifact with --quant. Tokenizer, configuration, and multimodal projector files are discovered when the available metadata identifies them unambiguously. Guide/v1/skills bundles and reference them from Responses requests for reusable procedures, helper scripts, and local data. Guide/v1/files, attach Responses input_file or Chat file parts, and mount request files into shell/code sessions. Guidemistralrs serve now exposes Anthropic-compatible /v1/messages and /v1/messages/count_tokens endpoints alongside the OpenAI-compatible /v1 API. Guide--quant selects a matching artifact from GGUF repositories. For other Hugging Face repositories, it uses a prebuilt UQFF when available and otherwise applies ISQ. Docsmistralrs serve process exposes OpenAI-compatible /v1 endpoints and Anthropic-compatible Messages endpoints.mistralrs serve exposes a /metrics endpoint in Prometheus format, recording per-request counts and latency labeled by method, route, and status. Docs/ui by default. Shows reasoning, code execution, plots, and files inline. Edit any message and the new branch runs with its own Python state. Pass --no-ui to disable.mistralrs tune recommends quantization and device mapping from the model config and your detected hardware.Run the command for your platform in a terminal, then follow the installer.
macOS / Linux:
curl -fsSL https://mistralrs.dev/install.sh | sh
Windows (PowerShell):
irm https://mistralrs.dev/install.ps1 | iex
When installation finishes, open a new terminal.
Start a model:
mistralrs serve -m Qwen/Qwen3-4B --quant 4
When the server is ready, open http://localhost:1234/ui and send a message. Keep the terminal open while chatting; press Ctrl+C to stop.
Quickstart | Installer options
Performance - Continuous batching support by default on all devices. - CUDA with FlashAttention V2/V3, Metal, and multi-GPU/distributed inference - PagedAttention for high throughput continuous batching on CUDA or Apple Silicon, prefix caching (including multimodal)
Quantization (full docs) - In-situ quantization (ISQ) for Hugging Face models - GGUF (2-8 bit), GPTQ, AWQ, HQQ, FP8, BNB support - ⭐ Per-layer topology: Fine-tune quantization per layer for optimal quality/speed - ⭐ Auto-select fastest quant method for your hardware
Flexibility - LoRA & X-LoRA with per-request LoRA selection and X-LoRA adapter mixing - AnyMoE: Create mixture-of-experts on any base model - Multiple models: Load/unload at runtime
Agentic Features
- Integrated tool calling with grammar enforcement and strict schema mode
- ⭐ Server-side agentic loop: auto-execute tools and feed results back
- ⭐ Python code execution: persistent Jupyter-like sessions with matplotlib capture and multimodal feedback
- ⭐ Shell execution: persistent command-line sessions with sandboxing and approval controls
- ⭐ OpenAI-compatible Skills: uploaded skill bundles for Responses API agents
- ⭐ OpenAI-compatible file inputs: /v1/files, Responses input_file, Chat file, and workdir mounts
- ⭐ Web search integration with embedding-based ranking
- ⭐ Tool dispatch URL: POST tool calls to your own endpoint
- ⭐ MCP client: Connect to external tools via Process, HTTP, or WebSocket
- Python/Rust tool callbacks for custom execution
Text, multimodal, speech, image generation, and embedding models across 45+ architectures. The supported models reference is the single source of truth: it explains how to check whether your model's config.json is supported, lists every architecture with copy-paste run commands, and is generated directly from the engine's loader registry so it never drifts.
Supported models reference | Request a new model
pip install mistralrs
In-process inference from Python: load a model with Runner and send OpenAI-shaped requests, no server required. Accelerator-specific wheels (CUDA, Metal, MKL, Accelerate) are listed in the getting-started guide.
Get started | API reference | Examples
cargo add mistralrs
Embed the engine in a Rust application with the high-level mistralrs crate.
Get started | docs.rs | Crate | Examples
Prebuilt CPU and CUDA images are published to GHCR. Pull commands, tags, and Kubernetes notes are in the Docker guide.
For complete documentation, see the Documentation.
Quick Links: - Quickstart - Install, first run, first serve - CLI Reference - All commands and options - Anthropic Messages API - Anthropic-compatible Messages, streaming, tool use, and token counting - HTTP API - OpenAI-compatible and Anthropic-compatible endpoints - Quantization - ISQ, GGUF, GPTQ, and more - Multi-GPU and Distributed - NCCL TP, P2P layer mapping, multi-node, and ring - MCP Integration - MCP integration documentation - Troubleshooting - Common issues and solutions - Environment variables - Environment variables for configuration
If you use mistral.rs in your research, please cite:
@misc{mistralrs,
author = {Buehler, Eric},
title = {{mistral.rs}: Fast, flexible {LLM} inference},
year = {2024},
url = {https://github.com/EricLBuehler/mistral.rs}
}
Citation metadata is available in CITATION.cff.
Contributions welcome! Please open an issue to discuss new features or report bugs. If you want to add a new model, please contact us via an issue and we can coordinate.
This project would not be possible without the excellent work at Candle. Thank you to all contributors!
mistral.rs is not affiliated with Mistral AI.
| 日期 | 榜单 | 排名 | 周期新增 | 总 STAR |
|---|