talira

mistral.rs

Fast, flexible LLM inference in Rust

open sourceMITself-hostablefree

mistral.rs is an open source LLM inference engine written in Rust that runs Hugging Face models and GGUF files on CUDA, Metal or CPU. It detects a model's architecture, weight format and chat template automatically, handles text, vision, video, audio, speech and image generation and embeddings, and quantizes in place (ISQ) or loads GGUF, GPTQ, AWQ, HQQ, FP8 and its own UQFF. mistralrs serve exposes OpenAI-compatible and Anthropic-compatible APIs (so Claude Code or Codex can run on a local model), a built-in chat web UI and Prometheus metrics, with continuous batching, PagedAttention and multi-GPU inference; Python and Rust SDKs run models in-process. Despite the name, it isn't made by Mistral AI and runs many model families.

Problems it solves

  • run an open-weight LLM locally behind an OpenAI-compatible API
  • point Claude Code or Codex at a model running on my own GPU
  • run quantized models fast on an Apple Silicon Mac or an NVIDIA GPU from Rust or Python

Features

  • runs Hugging Face models and GGUF files on CUDA, Metal or CPU
  • OpenAI- and Anthropic-compatible server APIs
  • in-situ quantization plus GGUF, GPTQ, AWQ, HQQ and FP8
  • text, vision, video, audio, speech and image generation
  • continuous batching, PagedAttention and multi-GPU inference
  • built-in web chat UI and agentic tool loop

Alternatives

The same job

These do what mistral.rs does.

  1. llama.cpp LLM inference in C/C++
  2. vLLM A high-throughput and memory-efficient inference and serving engine for LLMs
  3. MLC LLM Universal LLM deployment engine that compiles models to run natively on GPUs, phones and browsers
  4. SGLang Fast inference for LLMs and multimodal models
  5. KoboldCpp Run GGUF AI models locally with a KoboldAI UI. One file, zero install.

Compare mistral.rs with the top 3