dev.club — where best developers and top companies connect.

dev.club — where best developers and top companies connect.Invite only

Request invite

mistral.rs - Fast, flexible LLM inference.

| Documentation | Quickstart | Supported models | Rust SDK | Python SDK | Discord |

GitHub stars

Latest

Benchmarks

v0.8.2 CUDA benchmarks

Mean tokens per second across prompt lengths and decode depths from 128 to 16384 tokens. Decode uses 256 generated tokens. See the full v0.8.2 report for commands, model revisions, host metadata, and appendix tables.

Q8 prefill TPS: mistral.rs UQFF q8 vs llama.cpp GGUF Q8_0

Model Hardware mistral.rs llama.cpp
Gemma 4 E4B GB10 7395.7 3973.7
Gemma 4 E4B B200 27705.6 11992.4
Gemma 4 E4B H100 SXM 26220.6 11702.1
Gemma 4 26B-A4B GB10 2947.0 2178.5
Gemma 4 26B-A4B B200 12725.3 8503.4
Gemma 4 26B-A4B H100 SXM 12362.3 8055.1

Q8 decode TPS: mistral.rs UQFF q8 vs llama.cpp GGUF Q8_0

Model Hardware mistral.rs llama.cpp
Gemma 4 E4B GB10 44.1 40.5
Gemma 4 E4B B200 241.4 194.4
Gemma 4 E4B H100 SXM 223.1 183.0
Gemma 4 26B-A4B GB10 46.8 46.4
Gemma 4 26B-A4B B200 210.9 192.2
Gemma 4 26B-A4B H100 SXM 199.8 183.9

BF16 prefill TPS: mistral.rs BF16 vs vLLM BF16

Model Hardware mistral.rs vLLM
Gemma 4 E4B GB10 5838.9 5812.9
Gemma 4 E4B B200 43547.8 39431.2
Gemma 4 E4B H100 SXM 35852.2 39293.7
Gemma 4 26B-A4B GB10 592.2 3878.6
Gemma 4 26B-A4B B200 3467.3 28532.8
Gemma 4 26B-A4B H100 SXM 2766.0 26295.9

BF16 decode TPS: mistral.rs BF16 vs vLLM BF16

Model Hardware mistral.rs vLLM
Gemma 4 E4B GB10 25.1 18.8
Gemma 4 E4B B200 202.6 196.2
Gemma 4 E4B H100 SXM 174.4 153.0
Gemma 4 26B-A4B GB10 26.9 23.2
Gemma 4 26B-A4B B200 159.6 220.2
Gemma 4 26B-A4B H100 SXM 138.7 148.0

Why mistral.rs?

Quick Start

Install

Linux/macOS:

curl -fsSL https://mistralrs.dev/install.sh | sh

Windows (PowerShell):

irm https://mistralrs.dev/install.ps1 | iex

Downloads a self-contained prebuilt binary for your platform (Metal on Apple Silicon; per-GPU CUDA or CPU on Linux; CPU on Windows), falling back to a source build if none matches. Standard acceleration needs no Rust or CUDA toolkit. Optional cuTile acceleration requires NVIDIA's separately installed tileiras tool.

Manual installation, accelerator details & other platforms

Run Your First Model

# Interactive chat
mistralrs run -m Qwen/Qwen3-4B

# One-shot prompt (no interactive session)
mistralrs run -m Qwen/Qwen3-4B -i "What is the capital of France?"

# One-shot with an image
mistralrs run -m google/gemma-4-E4B-it --image photo.jpg -i "Describe this image"

# Run a local GGUF or select a published 4-bit GGUF
mistralrs run -f /path/to/model.gguf
mistralrs run -m unsloth/Qwen3.5-4B-GGUF --quant 4

# Agentic REPL: search + code execution + shell from the terminal
mistralrs run --agent -m Qwen/Qwen3-4B

# Start an API server with the built-in web UI
mistralrs serve -m google/gemma-4-E4B-it

For the server command, visit http://localhost:1234/ui for the web chat interface. OpenAI-compatible clients use http://localhost:1234/v1; Anthropic-compatible clients use http://localhost:1234.

The mistralrs CLI

The CLI uses the same run, serve, and bench commands for model repositories, local directories, and GGUF files.

# Recommend settings for your hardware and emit a config file
mistralrs tune -m Qwen/Qwen3-4B --emit-config config.toml

# Run using the generated config
mistralrs from-config -f config.toml

# Diagnose system issues (CUDA, Metal, Hugging Face connectivity)
mistralrs doctor

Full CLI documentation

UI Demo
UI Demo

What Makes It Fast

Performance

Quantization (full docs)

Flexibility

Agentic Features

Full feature documentation

Supported Models

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

Python SDK

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

Rust SDK

cargo add mistralrs

Embed the engine in a Rust application with the high-level mistralrs crate.

Get started | docs.rs | Crate | Examples

Docker

Prebuilt CPU and CUDA images are published to GHCR. Pull commands, tags, and Kubernetes notes are in the Docker guide.

Documentation

For complete documentation, see the Documentation.

Quick Links:

Citation

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.

Contributing

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.

Credits

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.

Back to Top

Join libs.tech

...and unlock some superpowers

GitHub

We won't share your data with anyone else.