Elffuss BraidHub

kikocis/coco public

0bfcc9b840bf · 1.6 KiBRawPermalink
1[package]
2name = "coco-engine"
3version = "0.1.0"
4edition = "2021"
5description = "coco v0 — a minimal but real Rust LLM inference engine (Qwen2.5-1.5B on Metal/CPU via candle)"
6license = "MIT"
7
8[lib]
9name = "coco_engine"
10path = "src/lib.rs"
11
12[[bin]]
13name = "coco"
14path = "src/main.rs"
15
16# Step-1 evolutionary-merge driver (reuses the engine via the lib seam).
17[[bin]]
18name = "coco-evomerge"
19path = "src/bin/evomerge.rs"
20
21[features]
22# Default to Metal (Apple Silicon GPU). Use --no-default-features for CPU-only.
23default = ["metal"]
24metal = ["candle-core/metal", "candle-nn/metal", "candle-transformers/metal", "dep:candle-metal-kernels", "dep:objc2-metal", "dep:objc2"]
25cuda = ["candle-core/cuda", "candle-nn/cuda", "candle-transformers/cuda"]
26
27[dependencies]
28candle-core = "0.11.0"
29candle-nn = "0.11.0"
30candle-transformers = "0.11.0"
31# Re-exported Metal bindings (Buffer/ComputePipeline/encoder) for the
32# turboquant-fast custom Metal kernels. Only pulled in with the `metal` feature.
33candle-metal-kernels = { version = "0.11.0", optional = true }
34# MTLSize for the kernel dispatch grid (same version candle uses internally).
35objc2-metal = { version = "0.3.2", optional = true }
36objc2 = { version = "0.6", optional = true }
37tokenizers = "0.21"
38half = "2"
39serde = { version = "1", features = ["derive"] }
40serde_json = "1"
41anyhow = "1"
42clap = { version = "4", features = ["derive"] }
43# Step-1 eval harness: GSM8K answer extraction (_extract_int port).
44regex = "1"
45
46[profile.release]
47opt-level = 3
48lto = true