SHORTLIST20
English
Englishالعربية中文日本語한국어EspañolFrançaisहिन्दी
Programming

Rust AI and machine learning libraries

Machine learning, LLM and inference libraries for Rust, ranked by GitHub stars

Updated · GitHub stars (stars)

Why these 20

Ranked by GitHub stars: how many developers bookmarked the project. Stars measure attention, not quality, so each row also shows forks, licence and the last push. Tools without a public repository have no star count and can't be ranked here.

Is this list useful?
  1. 1

    openai/codex

    Lightweight coding agent that runs in your terminal

    135,996 stars 21,562 forkslast push 2026-11-21RustApache-2.0

    Also in: #3 open source projects in the Rust programming language

  2. 2

    huggingface/candle

    candle-core] - a minimalist ML framework with a focus on easiness of use and on performance (including GPU support)

    21,363 stars 1,883 forkslast push 2026-11-19RustApache-2.0

    Also in: #1 Rust machine learning libraries

  3. 3

    memvid/memvid

    Memory layer for AI Agents. Replace complex RAG pipelines with a serverless, single-file memory layer. Give your agents instant retrieval and long-term memory.

    17,433 stars 1,463 forkslast push 2026-07-14RustApache-2.0

    Also in: #11 open-source vector databases

  4. 4

    burn

    A Flexible and Comprehensive Deep Learning Framework.

    16,317 stars 1,137 forkslast push 2026-11-21RustApache-2.0

    Also in: #2 Rust machine learning libraries

  5. 5

    huggingface/tokenizers

    Fast State-of-the-Art Tokenizers optimized for Research and Production

    11,263 stars 1,274 forkslast push 2026-11-20RustApache-2.0

    Also in: #8 natural language processing libraries#3 Rust machine learning libraries

  6. 6

    BAML

    A simple prompting language for building reliable AI workflows and agents. BAML's compiler is written in Rust!

    9,527 stars 523 forkslast push 2026-11-21RustApache-2.0

  7. 7

    0xplaygrounds/rig

    Library for creating agents and modular, scalable LLM-powered applications

    9,204 stars 1,029 forkslast push 2026-11-20RustMIT

  8. 8

    pydantic/monty

    A minimal, secure Python interpreter for running LLM-generated code in AI agents, with microsecond startup, strict sandboxing, and snapshotting support

    8,978 stars 508 forkslast push 2026-11-20RustMIT

  9. 9

    EricLBuehler/mistral.rs

    mistralrs] - Fast, flexible LLM inference engine supporting multimodal models, quantization (GGUF/GPTQ/ISQ), and OpenAI-compatible API

    7,852 stars 770 forkslast push 2026-11-20RustMIT

    Also in: #4 Rust machine learning libraries

  10. 10

    katanemo/plano

    Plano is an AI-native proxy server and data plane for agentic apps. Smart LLM routing, observability, agent orchestration, and guardrails so you stay...

    7,118 stars 498 forkslast push 2026-10-24RustApache-2.0

    Also in: #16 LLM inference engines#16 Open-source LLM inference projects on GitHub#5 Rust machine learning libraries

  11. 11

    Michael-A-Kuykendall/shimmy

    shimmy] - Pure-Rust WebGPU inference engine with an OpenAI-compatible API and native GGUF support.

    6,021 stars 588 forkslast push 2026-11-12RustApache-2.0

    Also in: #6 Rust machine learning libraries

  12. 12

    autumnai/leaf

    Open Machine Intelligence framework.. Abandoned project. The most updated fork is juice.

    5,539 stars 268 forkslast push 2024-03-20RustApache-2.0

    Also in: #7 Rust machine learning libraries

  13. 13

    LaurentMazare/tch-rs

    Bindings for PyTorch.

    5,520 stars 462 forkslast push 2026-11-10RustApache-2.0

    Also in: #8 Rust machine learning libraries

  14. 14

    rust-ml/linfa

    Machine learning framework.

    4,770 stars 334 forkslast push 2026-11-20RustApache-2.0

    Also in: #9 Rust machine learning libraries

  15. 15

    openai/harmony

    openai-harmony] - Renderer for the harmony response format to be used with gpt-oss.

    4,548 stars 321 forkslast push 2026-04-08RustApache-2.0

  16. 16

    rust-bert

    Rust native ready-to-use NLP pipelines and transformer-based models (BERT, DistilBERT, GPT2,...)

    3,092 stars 247 forkslast push 2026-01-13RustApache-2.0

    Also in: #17 natural language processing libraries#10 Rust machine learning libraries

  17. 17

    luminal-ai/luminal

    luminal] - High-performance general-purpose inference compiler with RISC-style architecture, search-based optimization, and native CUDA/Metal backends....

    3,064 stars 259 forkslast push 2026-11-19RustApache-2.0

    Also in: #11 Rust machine learning libraries

  18. 18

    raphaelmansuy/edgequake

    A high-performance Graph-RAG framework that transforms documents into intelligent knowledge graphs.

    2,327 stars 279 forkslast push 2026-11-17RustApache-2.0

    Also in: #12 Rust machine learning libraries

  19. 19

    64bit/async-openai

    async-openai] - Ergonomic Rust bindings for OpenAI API based on OpenAPI spec.

    2,037 stars 409 forkslast push 2026-11-17RustMIT

  20. 20

    chelsea0x3b/dfdx

    CUDA accelerated machine learning framework that leverages many of Rust's unique features.

    1,944 stars 109 forkslast push 2024-07-23RustNOASSERTION

    Also in: #13 Rust machine learning libraries

How it is measured

Every tool in the Artificial Intelligence section(s) of the community list rust-unofficial/awesome-rust on GitHub with a public repository, ranked by GitHub stars from the GitHub API; archived repositories are left out. Added by the daily list generator.

References

  1. rust-unofficial/awesome-rust: Artificial Intelligence, GitHub community list (list text CC0; star counts from the GitHub API). Checked 2026-11-21 01:03 UTC.
  2. rust-unofficial/awesome-rust (Artificial Intelligence), GitHub community list, 54 tools with a public repository.