pub struct RoutingSkewReport {
pub slots_per_layer: f64,
pub oracle_slots: usize,
pub working_set_mean: f64,
pub working_set_max: usize,
pub experts_for_90pct: f64,
pub oracle_hit_at_slots: f64,
pub norm_entropy: f64,
pub per_layer: Vec<LayerRoutingSkew>,
}Expand description
The routing-skew report: per layer, plus the means over the layers that were actually routed to.
The means deliberately exclude un-routed layers, matching the per-layer list. Averaging zeros for layers that produced no traffic would drag every aggregate toward zero in proportion to how much of the model the window happened to touch, which makes two windows of the same model incomparable.
Fields§
§slots_per_layer: f64cache_size / num_layers, unrounded – the fair share a
per-layer cache would get.
oracle_slots: usizeThe fair share as a usable slot count, max(1, round(share)).
The oracle is quoted at this many slots.
working_set_mean: f64§working_set_max: usize§experts_for_90pct: f64§oracle_hit_at_slots: f64§norm_entropy: f64§per_layer: Vec<LayerRoutingSkew>One entry per layer that was routed to, in layer order.
Trait Implementations§
Source§impl Clone for RoutingSkewReport
impl Clone for RoutingSkewReport
Source§fn clone(&self) -> RoutingSkewReport
fn clone(&self) -> RoutingSkewReport
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 moreSource§impl Debug for RoutingSkewReport
impl Debug for RoutingSkewReport
Source§impl PartialEq for RoutingSkewReport
impl PartialEq for RoutingSkewReport
impl StructuralPartialEq for RoutingSkewReport
Auto Trait Implementations§
impl Freeze for RoutingSkewReport
impl RefUnwindSafe for RoutingSkewReport
impl Send for RoutingSkewReport
impl Sync for RoutingSkewReport
impl Unpin for RoutingSkewReport
impl UnsafeUnpin for RoutingSkewReport
impl UnwindSafe for RoutingSkewReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more