Install Rust via rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable
# Set path
source "$HOME/.cargo/env"
Configure Candle
git clone https://github.com/huggingface/candle.git
cd candle
See all Candle example models here
Example:
# CPU build
cargo build --example falcon --release
# CUDA + cuDNN build
cargo build --example falcon --features cuda,cudnn --release
# Run binary
cd target/release/examples
./falcon --prompt "who invented the lightbulb"