#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.
Watch puts candle on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.candle is on your watch list. Its new releases and problems show there.
- Stars
- 21.4k
- License
- Apache-2.0
- Last commit
- Nov 2026
- Language
- Rust
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| Rank | Project | Score |
|---|---|---|
| #100 | flamlPython AutoML and hyperparameter tuning library with a scikit-learn style API | 72 out of 100 |
| #101 | litertGoogle's on-device ML runtime, successor to TensorFlow Lite | 72 out of 100 |
| #103 | finrlDeep reinforcement learning pipeline for stock and crypto trading research | 71 out of 100 |
| #104 | bayesianoptimizationGaussian-process Bayesian optimization of black-box functions in pure Python | 71 out of 100 |
| #105 | cumlGPU-accelerated scikit-learn-style machine learning library | 71 out of 100 |