pub struct HyperTopology {
pub streams: usize,
pub epsilon: f32,
pub sinkhorn_iterations: u32,
pub collapse: HcCollapse,
}Expand description
The trunk-wide hyper-connection topology, read off the plan at load.
Fields§
§streams: usize§epsilon: f32§sinkhorn_iterations: u32§collapse: HcCollapseImplementations§
Source§impl HyperTopology
impl HyperTopology
Sourcepub fn rows(&self) -> usize
pub fn rows(&self) -> usize
(2 + streams) * streams — pre gates, post gates, then the streams x streams
combination block, in that row order (hc_split_sinkhorn).
Sourcepub fn from_plan(plan: &ModelPlan) -> Result<Option<Self>, String>
pub fn from_plan(plan: &ModelPlan) -> Result<Option<Self>, String>
The plan’s topology, or None for a serial/gemma trunk. Refuses a trunk whose layers
disagree: the state carried between layers is one shape, so a per-layer stream count is
not a thing this executor can mean. Mirrors memra_reference’s hyper_topology.
Trait Implementations§
Source§impl Clone for HyperTopology
impl Clone for HyperTopology
Source§fn clone(&self) -> HyperTopology
fn clone(&self) -> HyperTopology
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HyperTopology
Source§impl Debug for HyperTopology
impl Debug for HyperTopology
Source§impl PartialEq for HyperTopology
impl PartialEq for HyperTopology
impl StructuralPartialEq for HyperTopology
Auto Trait Implementations§
impl Freeze for HyperTopology
impl RefUnwindSafe for HyperTopology
impl Send for HyperTopology
impl Sync for HyperTopology
impl Unpin for HyperTopology
impl UnsafeUnpin for HyperTopology
impl UnwindSafe for HyperTopology
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more