Blocking waiting for file lock on build directory Compiling trading_engine v1.0.0 (/home/jgrusewski/Work/foxhunt/trading_engine) Compiling rstest_macros v0.22.0 Compiling plotters-backend v0.3.7 Compiling ciborium-io v0.2.2 Compiling itertools v0.10.5 Compiling test-case-core v3.3.1 Compiling wait-timeout v0.2.1 Compiling cast v0.3.0 Compiling sdd v3.0.10 Compiling quick-error v1.2.3 Compiling bit-vec v0.8.0 Compiling async-stream v0.3.6 Compiling tinytemplate v1.2.1 Compiling rand_xorshift v0.4.0 Compiling is-terminal v0.4.16 Compiling console v0.15.11 Compiling ciborium-ll v0.2.2 Compiling anes v0.1.6 Compiling rusty-fork v0.3.1 Compiling unarray v0.1.4 Compiling oorandom v11.1.5 Compiling similar v2.7.0 Compiling plotters-svg v0.3.7 Compiling ciborium v0.2.2 Compiling bit-set v0.8.0 Compiling scc v2.4.0 Compiling tokio-test v0.4.4 Compiling futures-test v0.3.31 Compiling plotters v0.3.7 Compiling proptest v1.8.0 Compiling insta v1.43.2 Compiling criterion-plot v0.5.0 Compiling criterion v0.5.1 Compiling serial_test v3.2.0 Compiling test-case-macros v3.3.1 Compiling test-case v3.3.1 Compiling risk v1.0.0 (/home/jgrusewski/Work/foxhunt/risk) Compiling data v1.0.0 (/home/jgrusewski/Work/foxhunt/data) Compiling ml v1.0.0 (/home/jgrusewski/Work/foxhunt/ml) warning: unused import: `Var` --> ml/src/memory_optimization/qat.rs:37:42 | 37 | use candle_core::{DType, Device, Tensor, Var}; | ^^^ | = note: `#[warn(unused_imports)]` on by default warning: unused import: `candle_nn::VarMap` --> ml/src/memory_optimization/qat.rs:38:5 | 38 | use candle_nn::VarMap; | ^^^^^^^^^^^^^^^^^ warning: unused import: `TFTConfig` --> ml/src/tft/qat_tft.rs:45:54 | 45 | use crate::tft::{QuantizedTemporalFusionTransformer, TFTConfig, TemporalFusionTransformer}; | ^^^^^^^^^ warning: unused import: `DType` --> ml/src/tft/qat_tft.rs:47:19 | 47 | use candle_core::{DType, Device, Tensor}; | ^^^^^ warning: unused import: `DType` --> ml/src/tft/temporal_attention.rs:18:19 | 18 | use candle_core::{DType, Device, Module, Tensor}; | ^^^^^ warning: unused variable: `opt` --> ml/src/trainers/tft.rs:957:37 | 957 | if let Some(ref mut opt) = self.optimizer { | ^^^ help: if this is intentional, prefix it with an underscore: `_opt` | = note: `#[warn(unused_variables)]` on by default warning: type does not implement `std::fmt::Debug`; consider adding `#[derive(Debug)]` or a manual implementation --> ml/src/memory_optimization/qat.rs:231:1 | 231 | / pub struct FakeQuantize { 232 | | config: QATConfig, 233 | | device: Device, ... | 248 | | training: bool, 249 | | } | |_^ | note: the lint level is defined here --> ml/src/lib.rs:40:9 | 40 | #![warn(missing_debug_implementations)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Compiling rstest v0.22.0 warning: `ml` (lib) generated 7 warnings (run `cargo fix --lib -p ml` to apply 5 suggestions) warning: extern crate `approx` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use approx as _;` to the crate root = note: requested on the command line with `-W unused-crate-dependencies` warning: extern crate `arrow` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use arrow as _;` to the crate root warning: extern crate `async_trait` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use async_trait as _;` to the crate root warning: extern crate `bincode` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use bincode as _;` to the crate root warning: extern crate `bytes` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use bytes as _;` to the crate root warning: extern crate `candle_nn` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use candle_nn as _;` to the crate root warning: extern crate `candle_optimisers` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use candle_optimisers as _;` to the crate root warning: extern crate `chrono` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use chrono as _;` to the crate root warning: extern crate `chrono_tz` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use chrono_tz as _;` to the crate root warning: extern crate `clap` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use clap as _;` to the crate root warning: extern crate `common` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use common as _;` to the crate root warning: extern crate `config` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use config as _;` to the crate root warning: extern crate `criterion` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use criterion as _;` to the crate root warning: extern crate `crossbeam` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use crossbeam as _;` to the crate root warning: extern crate `dashmap` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use dashmap as _;` to the crate root warning: extern crate `data` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use data as _;` to the crate root warning: extern crate `databento` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use databento as _;` to the crate root warning: extern crate `dbn` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use dbn as _;` to the crate root warning: extern crate `dotenv` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use dotenv as _;` to the crate root warning: extern crate `fastrand` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use fastrand as _;` to the crate root warning: extern crate `flate2` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use flate2 as _;` to the crate root warning: extern crate `fs2` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use fs2 as _;` to the crate root warning: extern crate `futures` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use futures as _;` to the crate root warning: extern crate `futures_test` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use futures_test as _;` to the crate root warning: extern crate `half` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use half as _;` to the crate root warning: extern crate `hex` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use hex as _;` to the crate root warning: extern crate `hmac` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use hmac as _;` to the crate root warning: extern crate `insta` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use insta as _;` to the crate root warning: extern crate `lazy_static` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use lazy_static as _;` to the crate root warning: extern crate `libc` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use libc as _;` to the crate root warning: extern crate `lru` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use lru as _;` to the crate root warning: extern crate `memmap2` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use memmap2 as _;` to the crate root warning: extern crate `nalgebra` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use nalgebra as _;` to the crate root warning: extern crate `ndarray` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use ndarray as _;` to the crate root warning: extern crate `num` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use num as _;` to the crate root warning: extern crate `num_cpus` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use num_cpus as _;` to the crate root warning: extern crate `num_traits` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use num_traits as _;` to the crate root warning: extern crate `once_cell` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use once_cell as _;` to the crate root warning: extern crate `parking_lot` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use parking_lot as _;` to the crate root warning: extern crate `parquet` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use parquet as _;` to the crate root warning: extern crate `petgraph` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use petgraph as _;` to the crate root warning: extern crate `prometheus` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use prometheus as _;` to the crate root warning: extern crate `proptest` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use proptest as _;` to the crate root warning: extern crate `rand` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use rand as _;` to the crate root warning: extern crate `rand_distr` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use rand_distr as _;` to the crate root warning: extern crate `rayon` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use rayon as _;` to the crate root warning: extern crate `reqwest` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use reqwest as _;` to the crate root warning: extern crate `risk` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use risk as _;` to the crate root warning: extern crate `rstest` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use rstest as _;` to the crate root warning: extern crate `rust_decimal` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use rust_decimal as _;` to the crate root warning: extern crate `semver` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use semver as _;` to the crate root warning: extern crate `serde` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use serde as _;` to the crate root warning: extern crate `serde_json` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use serde_json as _;` to the crate root warning: extern crate `serial_test` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use serial_test as _;` to the crate root warning: extern crate `sha2` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use sha2 as _;` to the crate root warning: extern crate `sqlx` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use sqlx as _;` to the crate root warning: extern crate `statrs` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use statrs as _;` to the crate root warning: extern crate `storage` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use storage as _;` to the crate root warning: extern crate `sysinfo` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use sysinfo as _;` to the crate root warning: extern crate `tempfile` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use tempfile as _;` to the crate root warning: extern crate `test_case` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use test_case as _;` to the crate root warning: extern crate `thiserror` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use thiserror as _;` to the crate root warning: extern crate `tokio` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use tokio as _;` to the crate root warning: extern crate `tokio_test` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use tokio_test as _;` to the crate root warning: extern crate `tracing` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use tracing as _;` to the crate root warning: extern crate `tracing_subscriber` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use tracing_subscriber as _;` to the crate root warning: extern crate `trading_engine` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use trading_engine as _;` to the crate root warning: extern crate `uuid` is unused in crate `measure_dqn_memory` | = help: remove the dependency or add `use uuid as _;` to the crate root warning: `ml` (example "measure_dqn_memory") generated 68 warnings Finished `dev` profile [unoptimized + debuginfo] target(s) in 7m 33s Running `target/debug/examples/measure_dqn_memory` Device: "CUDA" Baseline GPU memory: 234 MB Creating DQN model... === DQN MEMORY REPORT === DQN Model Memory: 40 MB Target: <150 MB Status: ✅ PASS Model Configuration: State dimension: 225 Hidden layers: [128, 64, 32] Output actions: 3 Replay buffer: 100,000 Double DQN: enabled Theoretical Model Size: Parameters: 39363 FP32 size: 0.15 MB Actual GPU memory: 40 MB Overhead: 40 MB (99.6%)