#102102nd of 433 in ML frameworks and libraries

candle

Minimalist Rust ML framework with PyTorch-like tensors and CPU, CUDA and WASM backends

Run it:Vast.ai ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.

Stars
21.4k
License
Apache-2.0
Last commit
Nov 2026
Language
Rust
Stars, last 35 weeks+1,841
25 Mar 2026: 19,607 stars1 Apr 2026: 19,680 stars8 Apr 2026: 19,754 stars15 Apr 2026: 19,834 stars22 Apr 2026: 19,905 stars29 Apr 2026: 19,968 stars6 May 2026: 20,045 stars13 May 2026: 20,100 stars20 May 2026: 20,163 stars27 May 2026: 20,226 stars3 Jun 2026: 20,279 stars10 Jun 2026: 20,334 stars17 Jun 2026: 20,386 stars24 Jun 2026: 20,438 stars1 Jul 2026: 20,482 stars8 Jul 2026: 20,531 stars15 Jul 2026: 20,582 stars22 Jul 2026: 20,623 stars29 Jul 2026: 20,710 stars5 Aug 2026: 20,775 stars12 Aug 2026: 20,825 stars19 Aug 2026: 20,864 stars26 Aug 2026: 20,897 stars2 Sept 2026: 20,935 stars9 Sept 2026: 20,964 stars16 Sept 2026: 21,009 stars23 Sept 2026: 21,060 stars30 Sept 2026: 21,098 stars7 Oct 2026: 21,129 stars14 Oct 2026: 21,163 stars21 Oct 2026: 21,206 stars28 Oct 2026: 21,252 stars4 Nov 2026: 21,285 stars11 Nov 2026: 21,320 stars18 Nov 2026: 21,372 stars25 Nov 2026: 21,448 stars

19,607 on 25 Mar 202621,448 on 25 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Candle is a Rust tensor and neural-network library from Hugging Face, with an API modeled on PyTorch. It runs on an optimized CPU backend (optional MKL or Accelerate), CUDA with NCCL multi-GPU, and WASM in the browser. The repo includes example implementations of LLaMA, Mistral, Mixtral, Gemma, Phi, Whisper, Stable Diffusion, YOLO and others, and it loads safetensors, npz, ggml and PyTorch files.

Who it is for: Rust developers embedding ML inference in lightweight binaries

Strengths

  • Builds into small Rust binaries without Python, aimed at serverless inference
  • Many model examples: LLaMA 1-3, Mistral, Mixtral, Gemma, Phi, Whisper, Stable Diffusion, YOLO
  • Loads safetensors, npz, ggml and PyTorch files; supports llama.cpp quantized types
  • WASM backend runs models in the browser, with hosted demos for Whisper, LLaMA2, T5 and SAM

Weaknesses

  • Library, not a server; OpenAI-compatible APIs come from external projects like candle-vllm
  • Requires writing Rust; no Python bindings or ready-made UI
  • Model list in the README is mostly 2023-2024 era architectures
  • MKL and Accelerate builds can hit linker errors that need manual crate imports

What it needs

  • GPU optional
  • Needs Rust toolchain, CUDA (optional), cuDNN (optional), Intel MKL (optional), trunk (WASM examples)
  • Models: safetensors, npz, ggml, PyTorch, llama.cpp quantized types

Also in ML frameworks and libraries

See all 433
Also in ML frameworks and libraries
RankProjectScore
#100flamlPython AutoML and hyperparameter tuning library with a scikit-learn style API4.4k starsMIT72 out of 100
#101litertGoogle's on-device ML runtime, successor to TensorFlow Lite3.6k stars+86 (+2.4%) in 30 daysApache-2.072 out of 100
#103finrlDeep reinforcement learning pipeline for stock and crypto trading research17.2k starsMIT71 out of 100
#104bayesianoptimizationGaussian-process Bayesian optimization of black-box functions in pure Python8.7k starsMIT71 out of 100
#105cumlGPU-accelerated scikit-learn-style machine learning library5.3k starsApache-2.071 out of 100