2023-07-03 18:30:58 +08:00
|
|
|
[package]
|
|
|
|
name = "candle-examples"
|
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-03 18:30:58 +08:00
|
|
|
readme = "README.md"
|
|
|
|
|
|
|
|
[dependencies]
|
2023-08-06 00:25:24 +08:00
|
|
|
accelerate-src = { workspace = true, optional = true }
|
2024-01-07 19:04:14 +08:00
|
|
|
candle = { workspace = true }
|
2024-02-28 14:17:03 +08:00
|
|
|
candle-datasets = { workspace = true, optional = true }
|
2024-01-07 19:04:14 +08:00
|
|
|
candle-nn = { workspace = true }
|
|
|
|
candle-transformers = { workspace = true }
|
|
|
|
candle-flash-attn = { workspace = true, optional = true }
|
|
|
|
candle-onnx = { workspace = true, optional = true }
|
2023-12-26 04:49:21 +08:00
|
|
|
|
|
|
|
csv = "1.3.0"
|
2023-07-21 23:10:51 +08:00
|
|
|
cudarc = { workspace = true, optional = true }
|
|
|
|
half = { workspace = true, optional = true }
|
2024-02-03 21:26:04 +08:00
|
|
|
hf-hub = { workspace = true, features = ["tokio"] }
|
2023-08-18 17:00:05 +08:00
|
|
|
image = { workspace = true }
|
2023-09-10 16:40:27 +08:00
|
|
|
intel-mkl-src = { workspace = true, optional = true }
|
|
|
|
num-traits = { workspace = true }
|
2024-06-25 01:12:52 +08:00
|
|
|
palette = { version = "0.7.6", optional = true }
|
|
|
|
enterpolation = { version = "0.2.1", optional = true}
|
2024-10-06 16:09:38 +08:00
|
|
|
pyo3 = { version = "0.22.0", features = ["auto-initialize"], optional = true }
|
2023-09-09 17:46:09 +08:00
|
|
|
rayon = { workspace = true }
|
2024-03-18 17:09:40 +08:00
|
|
|
rubato = { version = "0.15.0", optional = true }
|
2023-09-10 16:40:27 +08:00
|
|
|
safetensors = { workspace = true }
|
|
|
|
serde = { workspace = true }
|
|
|
|
serde_json = { workspace = true }
|
2024-02-28 14:17:03 +08:00
|
|
|
symphonia = { version = "0.5.3", features = ["all"], optional = true }
|
2023-09-30 22:04:11 +08:00
|
|
|
tokenizers = { workspace = true, features = ["onig"] }
|
2024-07-27 03:32:26 +08:00
|
|
|
cpal = { version = "0.15.2", optional = true }
|
2024-10-01 17:48:39 +08:00
|
|
|
pdf2image = { version = "0.1.2" , optional = true}
|
2023-07-03 18:30:58 +08:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2023-07-16 14:47:17 +08:00
|
|
|
anyhow = { workspace = true }
|
2023-07-24 16:13:50 +08:00
|
|
|
byteorder = { workspace = true }
|
2023-07-16 14:47:17 +08:00
|
|
|
clap = { workspace = true }
|
2023-08-25 19:47:55 +08:00
|
|
|
imageproc = { workspace = true }
|
2023-08-02 00:23:07 +08:00
|
|
|
memmap2 = { workspace = true }
|
2023-07-16 14:47:17 +08:00
|
|
|
rand = { workspace = true }
|
2024-03-21 17:56:41 +08:00
|
|
|
ab_glyph = { workspace = true }
|
2023-07-18 02:40:42 +08:00
|
|
|
tracing = { workspace = true }
|
|
|
|
tracing-chrome = { workspace = true }
|
|
|
|
tracing-subscriber = { workspace = true }
|
2023-08-01 22:36:53 +08:00
|
|
|
# Necessary to disambiguate with tokio in wasm examples which are 1.28.1
|
|
|
|
tokio = "1.29.1"
|
2023-07-03 18:34:02 +08:00
|
|
|
|
2023-07-23 14:15:37 +08:00
|
|
|
[build-dependencies]
|
|
|
|
anyhow = { workspace = true }
|
2024-01-08 00:18:46 +08:00
|
|
|
bindgen_cuda = { version = "0.1.1", optional = true }
|
2023-07-23 14:15:37 +08:00
|
|
|
|
2023-07-03 18:34:02 +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", "candle-transformers/accelerate"]
|
2024-01-08 00:18:46 +08:00
|
|
|
cuda = ["candle/cuda", "candle-nn/cuda", "candle-transformers/cuda", "dep:bindgen_cuda"]
|
2023-08-15 04:30:41 +08:00
|
|
|
cudnn = ["candle/cudnn"]
|
2023-09-24 13:54:49 +08:00
|
|
|
flash-attn = ["cuda", "candle-transformers/flash-attn", "dep:candle-flash-attn"]
|
2023-07-12 20:49:31 +08:00
|
|
|
mkl = ["dep:intel-mkl-src", "candle/mkl", "candle-nn/mkl", "candle-transformers/mkl"]
|
2023-07-28 18:34:21 +08:00
|
|
|
nccl = ["cuda", "cudarc/nccl", "dep:half"]
|
2023-11-06 14:45:07 +08:00
|
|
|
onnx = ["candle-onnx"]
|
2023-11-11 08:02:15 +08:00
|
|
|
metal = ["candle/metal", "candle-nn/metal"]
|
2024-10-01 06:24:17 +08:00
|
|
|
microphone = ["cpal", "rubato"]
|
2024-03-18 17:09:40 +08:00
|
|
|
encodec = ["cpal", "symphonia", "rubato"]
|
2024-09-21 04:31:20 +08:00
|
|
|
mimi = ["cpal", "symphonia", "rubato"]
|
2024-06-25 01:12:52 +08:00
|
|
|
depth_anything_v2 = ["palette", "enterpolation"]
|
2023-07-21 23:10:51 +08:00
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "llama_multiprocess"
|
2023-07-28 15:52:24 +08:00
|
|
|
required-features = ["cuda", "nccl", "flash-attn"]
|
2023-10-14 23:46:43 +08:00
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "reinforcement-learning"
|
|
|
|
required-features = ["pyo3"]
|
2023-11-06 14:45:07 +08:00
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "onnx"
|
|
|
|
required-features = ["onnx"]
|
2023-11-07 05:44:58 +08:00
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "onnx_basics"
|
|
|
|
required-features = ["onnx"]
|
2024-02-13 01:01:21 +08:00
|
|
|
|
2024-02-28 14:17:03 +08:00
|
|
|
[[example]]
|
|
|
|
name = "whisper"
|
|
|
|
required-features = ["symphonia"]
|
|
|
|
|
2024-02-13 01:01:21 +08:00
|
|
|
[[example]]
|
|
|
|
name = "whisper-microphone"
|
|
|
|
required-features = ["microphone"]
|
2024-02-28 14:17:03 +08:00
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "mnist-training"
|
|
|
|
required-features = ["candle-datasets"]
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "llama2-c"
|
|
|
|
required-features = ["candle-datasets"]
|
2024-02-28 16:22:33 +08:00
|
|
|
|
2024-09-21 04:31:20 +08:00
|
|
|
[[example]]
|
|
|
|
name = "mimi"
|
|
|
|
required-features = ["mimi"]
|
|
|
|
|
2024-02-28 16:22:33 +08:00
|
|
|
[[example]]
|
|
|
|
name = "encodec"
|
2024-03-18 17:09:40 +08:00
|
|
|
required-features = ["encodec"]
|
2024-06-25 01:12:52 +08:00
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "depth_anything_v2"
|
|
|
|
required-features = ["depth_anything_v2"]
|
2024-08-23 04:50:42 +08:00
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "silero-vad"
|
|
|
|
required-features = ["onnx"]
|
2024-10-01 17:48:39 +08:00
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "colpali"
|
2024-10-06 16:09:38 +08:00
|
|
|
required-features = ["pdf2image"]
|