2023-07-12 20:49:31 +08:00
|
|
|
[package]
|
|
|
|
name = "candle-transformers"
|
2023-08-02 18:12:18 +08:00
|
|
|
version.workspace = true
|
|
|
|
edition.workspace = true
|
|
|
|
description.workspace = true
|
|
|
|
repository.workspace = true
|
|
|
|
keywords.workspace = true
|
|
|
|
categories.workspace = true
|
|
|
|
license.workspace = true
|
2023-07-12 20:49:31 +08:00
|
|
|
readme = "README.md"
|
|
|
|
|
|
|
|
[dependencies]
|
2023-08-06 00:25:24 +08:00
|
|
|
accelerate-src = { workspace = true, optional = true }
|
2023-10-28 23:51:19 +08:00
|
|
|
byteorder = { workspace = true }
|
2024-01-07 19:04:14 +08:00
|
|
|
candle = { workspace = true }
|
|
|
|
candle-flash-attn = { workspace = true, optional = true }
|
|
|
|
candle-nn = { workspace = true }
|
2024-03-03 01:50:01 +08:00
|
|
|
fancy-regex = { workspace = true }
|
2023-07-20 02:41:11 +08:00
|
|
|
intel-mkl-src = { workspace = true, optional = true }
|
2023-09-10 16:40:27 +08:00
|
|
|
num-traits = { workspace = true }
|
2023-07-16 14:47:17 +08:00
|
|
|
rand = { workspace = true }
|
2023-09-10 17:20:18 +08:00
|
|
|
rayon = { workspace = true }
|
2023-09-10 16:40:27 +08:00
|
|
|
serde = { workspace = true }
|
|
|
|
serde_json = { workspace = true }
|
2023-11-10 01:55:09 +08:00
|
|
|
serde_plain = { workspace = true }
|
2023-09-10 16:40:27 +08:00
|
|
|
tracing = { workspace = true }
|
2023-07-12 20:49:31 +08:00
|
|
|
|
|
|
|
[features]
|
2023-07-14 22:52:15 +08:00
|
|
|
default = []
|
2023-08-06 00:25:24 +08:00
|
|
|
accelerate = ["dep:accelerate-src", "candle/accelerate", "candle-nn/accelerate"]
|
2023-07-12 20:49:31 +08:00
|
|
|
cuda = ["candle/cuda", "candle-nn/cuda"]
|
2023-09-20 21:07:55 +08:00
|
|
|
flash-attn = ["cuda", "dep:candle-flash-attn"]
|
2023-07-12 20:49:31 +08:00
|
|
|
mkl = ["dep:intel-mkl-src", "candle/mkl", "candle-nn/mkl"]
|
2023-12-13 00:41:56 +08:00
|
|
|
metal = ["candle/metal", "candle-nn/metal"]
|