Per user direction: feature-gating is appropriate for per-step diagnostic logging (real perf/memory cost) but the name should be specific to the mechanism, not a generic "diag-log" catch-all. kernel-step-trace describes what the feature provides — per-step records written to the ring by kernels. Pure rename, no behavioral changes. Touched: Cargo.toml feature decl, lib.rs cfg attribute, perception.rs (~25 cfg attributes including not(feature) pairs), gpu_log.rs + smoothness_lambda_controller.cu doc comments, gpu_log_ring_invariants.rs file-level cfg + ignore-attribute text.
52 lines
1.8 KiB
TOML
52 lines
1.8 KiB
TOML
[package]
|
|
name = "ml-alpha"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
description = "CfC perception + multi-horizon alpha heads (Phase A foundation for CfC+PPO greenfield)"
|
|
publish = false
|
|
|
|
# Phase A scope: snapshot-level CfC trunk + 5 multi-horizon BCE heads,
|
|
# pre-compiled CUDA cubins, GPU-resident weights. The hard validation gate
|
|
# (CfC vs Mamba2 AUC at every horizon) sits at the end of Phase A. Phase B
|
|
# (PPO) extends this crate; live integration lives in trading_agent_service.
|
|
|
|
[features]
|
|
default = ["cuda"]
|
|
cuda = []
|
|
kernel-step-trace = []
|
|
|
|
[dependencies]
|
|
ml-core = { workspace = true }
|
|
# NOTE: cannot depend on `ml` (would cycle — ml depends on ml-alpha for the
|
|
# mamba2_block gate reference). MappedF32Buffer is duplicated locally in
|
|
# `src/pinned_mem.rs`; eventually we should move mapped-pinned to ml-core.
|
|
ml-features = { workspace = true }
|
|
data = { workspace = true }
|
|
cudarc = { version = "0.19", default-features = false, features = ["driver", "cublas", "dynamic-linking", "std", "cuda-version-from-build-system", "f16"] }
|
|
|
|
# Standard async + error + logging plumbing
|
|
tokio = { workspace = true, features = ["rt-multi-thread", "macros", "fs", "io-util"] }
|
|
anyhow.workspace = true
|
|
tracing.workspace = true
|
|
tracing-subscriber.workspace = true
|
|
serde = { workspace = true, features = ["derive"] }
|
|
serde_json.workspace = true
|
|
bincode.workspace = true
|
|
thiserror.workspace = true
|
|
clap = { workspace = true, features = ["derive"] }
|
|
|
|
# Arrow IPC for fxcache reading (gate reference path).
|
|
arrow = { workspace = true, features = ["ipc"] }
|
|
|
|
# Deterministic RNG for weight init, shuffling.
|
|
rand = { workspace = true }
|
|
rand_chacha = "0.3"
|
|
|
|
# Phase A data path: mmap predecoded MBP-10 sidecars.
|
|
memmap2 = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
tempfile = { workspace = true }
|
|
approx = { workspace = true }
|