Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aien-sovereign-core-mv/blob/main/crates/aien-heartbeat/src/lib.rs # aien-sovereign-core-mv AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aien-sovereign-core-mv / crates / aien-heartbeat / src / lib.rs` 35 lines ยท 1393 bytes Raw Blame History 1 //! Expert Heartbeat, milestone H1 (aienix#4). 2 //! 3 //! A fixed set of aligned memory slots is refilled from the NVMe in layer 4 //! order at a steady rhythm. A slot's `(layer, expert, version)` becomes 5 //! visible to readers only after the whole expert has been read and its 6 //! BLAKE3 digest matches the manifest. A slot with a live lease is never 7 //! overwritten. Any I/O error or digest mismatch fails the whole ring closed. 8 //! 9 //! Out of scope for H1: GPU visibility fence (H2 work; unified memory on the 10 //! GB10 still needs an explicit fence before kernels may read a slot), model 11 //! math, station queues. 12 13 pub mod aligned; 14 pub mod error; 15 pub mod layout; 16 pub mod manifest; 17 pub mod pager; 18 pub mod reader; 19 pub mod residency; 20 pub mod ring; 21 pub mod stream; 22 23 pub use error::HeartbeatError; 24 pub use layout::{ExpertLayout, ExpertParts, ExpertShape, Payload}; 25 pub use manifest::{ExpertEntry, Manifest}; 26 pub use pager::{ExpertPager, PagerError, PagerStats, Pinned, SlotBackend}; 27 pub use reader::{ 28 FakeShards, Fault, FileShards, ReadAdapter, ReadConfig, ReadError, ShardDevice, VerifiedExpert, 29 }; 30 pub use residency::{Acquire, ExpertId, MemoryBudget, Residency, ResidencyStats, SlotVersion}; 31 pub use ring::{Lease, Ring, SlotTag}; 32 pub use stream::{RotationStats, Schedule, StreamConfig, Streamer}; 33 34 /// O_DIRECT alignment used for buffers, offsets and lengths. 35 pub const IO_ALIGN: usize = 4096;