huggingface/candle

Description: Minimalist ML framework for Rust

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 3 hours ago
Added to GitGenius on April 18th, 2026
Created on June 19th, 2023
Open Issues & Pull Requests: 818 (+1)
Number of forks: 1,661
Total Stargazers: 20,696 (+2)
Total Subscribers: 162 (+0)

Issue Activity (beta)

Open issues: 375
New in 7 days: 4
Closed in 7 days: 2
Avg open age: 418 days
Stale 30+ days: 344
Stale 90+ days: 302

Recent activity

Opened in 7 days: 4
Closed in 7 days: 2
Comments in 7 days: 5
Events in 7 days: 15

Top labels

  • help wanted (4)

Repository Insights (GitGenius)

Median issue/PR response: 12.2 hours
Mean response time: 21.5 days
90th percentile: 37.2 days
Tracked items: 532

Most active contributors

Detailed Description

Candle is a minimalist machine learning framework written in Rust that prioritizes performance and ease of use, with built-in support for GPU acceleration. The framework is designed to enable developers to build and run machine learning models efficiently in Rust, addressing the need for a lightweight alternative to heavier ML frameworks while maintaining competitive performance characteristics.

The repository demonstrates substantial adoption and active development, with 20,597 stars as of the most recent tracking period. The project maintains a median issue and pull request response latency of 12 hours, indicating responsive community engagement, though the mean latency of 525.9 hours reflects some longer-running discussions and feature development cycles. The most active contributor, LaurentMazare, has logged 368 events in the tracked system, followed by ivarflakstad with 225 events and EricLBuehler with 110 events, establishing a core development team driving the project forward. The help wanted label appears most frequently across issues, suggesting the project actively seeks community contributions.

Candle's ecosystem extends beyond the core framework through overlapping contributors with related projects including tracel-ai/burn, ericlbuehler/mistral.rs, and dioxuslabs/dioxus, indicating cross-pollination of ideas and shared development practices within the Rust ML community. The framework is distributed under dual licensing with both MIT and Apache 2.0 licenses, providing flexibility for various use cases.

The framework includes comprehensive examples spanning multiple domains. For large language models, it provides implementations of LLaMA v1-v3, Falcon, Gemma, Phi variants, Mistral, Mixtral, Qwen, RWKV, and numerous other architectures. Generative models include Stable Diffusion with support for versions 1.5, 2.1, SDXL 1.0, and Turbo variants, as well as Wuerstchen. Computer vision capabilities encompass YOLO v3 and v8 for object detection and pose estimation, SegFormer for semantic segmentation, DINOv2 for self-supervised vision tasks, CLIP for multimodal learning, and Moondream for vision-language understanding. Audio and speech processing examples include Whisper for speech recognition, EnCodec for audio compression, MetaVoice and Parler-TTS for text-to-speech synthesis. Additional examples cover text embedding models like T5, BERT, and JinaBert, machine translation via Marian-MT, and optical character recognition through TrOCR.

The framework supports quantization techniques compatible with llama.cpp, enabling efficient inference of large models. CUDA and cuDNN support can be enabled through feature flags, allowing developers to leverage GPU acceleration when available. The project includes WebAssembly examples that run entirely in browsers, with online demonstrations available for Whisper, LLaMA2, T5, YOLO, and Segment Anything Model, showcasing the framework's capability to deploy models in web environments.

The candle-core crate serves as the foundation, with documentation available on docs.rs and packages published to crates.io. The framework emphasizes straightforward APIs, as evidenced by simple matrix multiplication examples in the documentation that require minimal setup. The combination of Rust's performance characteristics, GPU support, and comprehensive model implementations positions Candle as a practical choice for developers seeking to deploy machine learning models with strong performance guarantees and memory safety properties.

candle
by
huggingfacehuggingface/candle

Repository Details

Fetching additional details & charts...