mistral.rs

Active
GitHub Rust MIT

Description

Fast, flexible LLM inference engine built in Rust — supports multiple model architectures and quantization schemes for high-performance local LLM deployment.

Key Features

  • Zero-Config Model Loading — auto-detect architecture, quantization format, and chat template from any Hugging Face model
  • True Multimodality — text, vision, video, audio input, speech generation, image generation, and embeddings in one engine
  • Smart Quantization — UQFF prebuilt quantizations and ISQ with automatic best-format selection at each level
  • OpenAI + Anthropic Compatible Serving — single process exposes both /v1 and /v1/messages endpoints
  • Built-in Web UI — served at /ui with reasoning, code execution, plots, and inline file display; edit messages to branch conversations
  • Agentic Runtime — web search, local Python code execution with model feedback, session management, and custom tool hooks

Use Cases

💡 Run local LLM inference with high performance on CUDA, Metal, and CPU
💡 Deploy OpenAI/Anthropic-compatible API servers for existing applications
💡 Build agentic workflows with web search and code execution capabilities
💡 Quantize and optimize models for specific hardware with mistralrs tune
💡 Generate images, speech, and embeddings through a unified inference engine

Strengths & Limitations

Strengths

  • Actively maintained, recent updates
  • High community interest (7.6k stars)
  • Permissive open-source license (MIT)
  • Established track record (2 years in production)

Quick Start

Install via curl: curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/EricLBuehler/mistral.rs/master/install.sh | sh. Then run: mistralrs run -m Qwen/Qwen3-4B for interactive chat, or mistralrs serve -m google/gemma-4-E4B-it to start an API server with the built-in web UI at localhost:1234/ui.

Related Projects

KTransformers

19.5k · Python
Active A

A flexible framework for experiencing heterogeneous LLM inference and fine-tuning optimizations — run large language models efficiently on consumer hardware with kernel-level optimizations.

pythonllmtools +1
  • · CPU-GPU heterogeneous computing for efficient LLM inference and fine-tuning
  • · AMX/AVX optimized kernels for INT4/INT8 quantized inference on Intel CPUs
  • · MoE optimization with NUMA-aware memory management for Mixture-of-Experts models

DeepReasoning

5.4k · Rust
Stale B

A high-performance LLM inference API and Chat UI that integrates DeepSeek R1's chain-of-thought reasoning traces with Anthropic Claude models.

rustllmapi +1
  • · Combines DeepSeek R1 chain-of-thought reasoning with Claude's code generation in a single stream
  • · High-performance Rust API delivering zero-latency dual-model inference
  • · Bring Your Own Keys architecture for complete control over API keys and data privacy

Vision Agents

8.1k · Python
Active A+

Open Vision Agents by Stream. Build voice and vision agents quickly with any model or video provider, using Stream's edge network for ultra-low latency realtime interactions.

voiceagentpython +3
  • · Real-time video AI with YOLO, Roboflow integration combined with Gemini/OpenAI for live visual understanding
  • · Ultra-low latency audio/video under 30ms via Stream's edge network with 500ms join time
  • · Native SDK methods from OpenAI, Gemini, and Claude for always-latest LLM capabilities

MiroThinker

8.4k · Python
Normal A

A deep research agent framework optimized for complex research and prediction tasks, with MiroThinker-1.7 and MiroThinker-H1 models achieving 74.0 and 88.2 on BrowseComp benchmark, supporting multi-step reasoning and information retrieval.

pythonagentllm +3
  • · Deep research agent framework optimized for complex research and prediction tasks
  • · MiroThinker-1.7 achieves 74.0 on BrowseComp, H1 model reaches 88.2
  • · Supports 256K context window and up to 300 tool calls per task