Cargo Features

candle-transformers has no features set by default.

[dependencies]
candle-transformers = { version = "0.7.2", features = ["accelerate", "cuda", "flash-attn", "mkl", "metal"] }
accelerate

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

cuda flash-attn?

Enables cuda of candle-core and candle-nn

flash-attn = cuda

Enables candle-flash-attn

mkl

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

metal

Enables metal of candle-core and candle-nn

candle-transformers has 5 features without comments.