#3333rd of 37 in ML frameworks and libraries

candle

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

Stars
21.2k
License
Apache-2.0
Last commit
Oct 2026
Language
Rust

Missed the latest GitHub check; these facts may be older.

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 37
Also in ML frameworks and libraries
RankProjectScore
1transformersPython library defining open models for text, vision, audio and multimodal tasks167.7k starsApache-2.095 out of 100
2pytorchPython tensor library with GPU support and tape-based autograd for deep learning104.7k starscustom license94 out of 100
3ultralyticsPython library and CLI for training and running YOLO vision models62.5k starsAGPL-3.090 out of 100
#4supervisionPython toolkit for loading, annotating and counting computer vision detections Live demo ↗ (opens in a new tab)51.2k starsMIT87 out of 100
#5pytorch-image-modelsPyTorch library of image models, pretrained weights and reference training scripts37.2k starsApache-2.086 out of 100