huggingface

    huggingface/candle

    #867 this week

    Minimalist ML framework for Rust

    machine-learning
    Rust
    Apache-2.0
    21.2K stars
    1.8K forks
    21.2K GitHub watchers
    Updated Oct 16, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    Ranks #7 among Machine Learning repositories tracked this week, and #7 over the last 30 days; #867 of 2,794 repositories GStars tracks this week (top 31%).

    The project lists 284 contributors on GitHub.

    Peaked at #40 in the weekly ranking the week of Jan 25, its best in the past year.

    Use Cases & Benefits

    • Provides a minimalist machine learning framework in Rust focused on performance and ease of use, supporting CPU, GPU, and WASM backends.
    • Enables lightweight, serverless ML inference with Rust's safety and speed, removing Python overhead and supporting multiple hardware accelerations.
    • Use for deploying efficient, serverless ML models in Rust environments requiring low-latency inference without Python dependencies.
    • Use for building and running state-of-the-art language and vision models with GPU acceleration and quantization support in Rust.
    • Use for running ML models directly in browsers via WASM for interactive demos and lightweight client-side inference.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    Apache 2.0

    Permissive: commercial use, modification and redistribution are allowed with attribution; includes an explicit patent grant from contributors.

    Community files

    • README: present

    Watch-outs

    • No GitHub releases; pin a commit or tag instead of a release.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    Candle is a minimalist ML framework for Rust with a focus on performance (including GPU support) and ease of use. Try our online demos: whisper, LLaMA2, T5, yolo, Segment Anything.

    Make sure that you have candle-core correctly installed as described in Installation.

    Let's see how to run a simple matrix multiplication. Write the following to your myapp/src/main.rs file:

    cargo run should display a tensor of shape Tensor[[2, 4], f32].

    Having installed candle with Cuda support, simply define the device to be on GPU:

    For more advanced examples, please have a look at the following section.

    These online demos run entirely in your browser:

    We also provide some command line based examples using state of the art models:

    In order to use CUDA add --features cuda to the example command line. If you have cuDNN installed, use --features cudnn for even more speedups.

    Excerpt from the huggingface/candle README on GitHub (Apache-2.0 license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Jul 28: +21Jul 29: +8Aug 1: +2

    +427 stars over 82 days across 10 snapshot days; best day +21 on Jul 28.

    Forks

    1.8K+133

    Open issues

    928+90

    Compared with peers in Machine Learning

    Fastest-growing repositories GStars tracks in this cohort for the week of Oct 18, by 7-day star growth

    huggingface/candle compared with Machine Learning repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    Comfy-Org/ComfyUI142.0K+4.4K603 days ago
    vllm-project/vllm95.2K+1.3K754 days ago
    pytorch/pytorch105.0K+2766422 days ago
    netdata/netdata81.1K+07512 days ago
    huggingface/candle21.2K+075—
    kserve/kserve6.1K+07525 days ago
    Category median95.2K+27675—

    Also by huggingface

    Other repositories from this maintainer that GStars tracks

    Discover Repositories

    Search across tracked repositories by name or description