interplane.Get Omega
Read in your language

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

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
13pub mod aligned;
14pub mod error;
15pub mod layout;
16pub mod manifest;
17pub mod pager;
18pub mod reader;
19pub mod residency;
20pub mod ring;
21pub mod stream;
22
23pub use error::HeartbeatError;
24pub use layout::{ExpertLayout, ExpertParts, ExpertShape, Payload};
25pub use manifest::{ExpertEntry, Manifest};
26pub use pager::{ExpertPager, PagerError, PagerStats, Pinned, SlotBackend};
27pub use reader::{
28 FakeShards, Fault, FileShards, ReadAdapter, ReadConfig, ReadError, ShardDevice, VerifiedExpert,
29};
30pub use residency::{Acquire, ExpertId, MemoryBudget, Residency, ResidencyStats, SlotVersion};
31pub use ring::{Lease, Ring, SlotTag};
32pub use stream::{RotationStats, Schedule, StreamConfig, Streamer};
33
34/// O_DIRECT alignment used for buffers, offsets and lengths.
35pub const IO_ALIGN: usize = 4096;