[package]
name = "rie-train-v03"
version = "0.3.0"
edition = "2024"
publish = false

[lints.clippy]
unwrap_used = "deny"
expect_used = "deny"
undocumented_unsafe_blocks = "deny"

[[bin]]
name = "rie-train-v03"
path = "main.rs"

[features]
default = []
metal = [
  "burn/metal",
  "burn/fusion",
  "candle-core/metal",
  "candle-core/accelerate",
]
# Keep Burn CUDA and Candle CUDA as separate features to avoid cudarc
# fallback-dynamic-loading vs dynamic-linking feature unification conflict.
burn-cuda = [
  "burn/cuda",
  "burn/fusion",
]
candle-cuda = [
  "candle-core/cuda",
]

[dependencies]
burn = { version = "=0.22.1", default-features = false, features = ["std", "flex", "autodiff", "optim"] }
candle-core = "0.11.0"
crossbeam-channel = "0.5.17"
rand = "0.9.5"
rand_chacha = "0.9.0"
rayon = "1.12.0"
safetensors = "0.8.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
