Cargo Features

candle-examples has no features set by default.

[dependencies]
candle-examples = { version = "0.8.0", features = ["accelerate", "cuda", "cudnn", "flash-attn", "mkl", "nccl", "onnx", "metal", "microphone", "mimi", "depth_anything_v2", "candle-datasets", "pyo3", "pdf2image"] }
accelerate

Enables accelerate-src, accelerate of candle-core, candle-nn, and candle-transformers

cuda flash-attn? nccl?

Enables bindgen_cuda, cuda of candle-core, candle-nn, and candle-transformers

cudnn

Enables cudnn of candle-core

flash-attn = cuda

Enables candle-flash-attn, flash-attn of candle-transformers

mkl

Enables intel-mkl-src, mkl of candle-core, candle-nn, and candle-transformers

nccl = cuda

Enables half, nccl of cudarc

onnx = candle-onnx
metal

Enables metal of candle-core and candle-nn

microphone = cpal, rubato
encodec mimi = cpal, rubato, symphonia
depth_anything_v2 = enterpolation, palette

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

candle-datasets implicit feature

Enables candle-datasets

candle-datasets:

Minimalist ML framework

candle-onnx onnx?
cudarc nccl?
palette depth_anything_v2?
enterpolation depth_anything_v2?
pyo3 implicit feature

Enables pyo3 ^0.22.0

pyo3:

Bindings to Python interpreter

rubato encodec? microphone? mimi?

Enables rubato ^0.15.0

symphonia encodec? mimi?
cpal encodec? microphone? mimi?
pdf2image implicit feature