Skip to main content

qualia_core_db/specialized_libs/machine_learning/
mod.rs

1//! Machine Learning Library - Edge AI and Neural Network Computing
2//!
3//! This module provides high-performance machine learning operations leveraging Phase 2 enhancements:
4//! - NVMe Computational Storage (CSD) for hardware-accelerated neural computations
5//! - Ambient Sub-Threshold Orchestration for mobile edge AI optimization
6//! - Hardware-Sympathetic Storage (ZNS) for zero-copy model storage
7//! - Zero-Copy LoRA Multiplexing for efficient model serving
8//!
9//! This module was split out of the former monolithic `machine_learning.rs` into a
10//! subdirectory library (pure code motion; no behaviour, logic, or signature changes).
11//! The public surface is re-exported unchanged so every external path
12//! (`crate::specialized_libs::machine_learning::<Item>`) resolves exactly as before.
13
14/// Maximum number of token embeddings materialised into `Model.weights` when loading a
15/// real GGUF file. The full vocabulary embedding table can be multiple gigabytes, so only
16/// a bounded preview is kept in the in-memory `Vec<f64>` (this is not a hot-path module).
17pub const GGUF_EMBEDDING_PREVIEW_TOKENS: usize = 256;
18
19mod errors;
20mod inference;
21mod library;
22mod loader;
23mod model_manager;
24mod monitoring;
25mod optimization;
26mod training;
27mod types;
28mod version_control;
29
30pub use errors::*;
31pub use types::*;
32
33#[cfg(test)]
34mod tests;