pub struct KimiDecoderWeights {
pub embedding: Tensor,
pub layers: Vec<KimiDecoderLayerWeights>,
pub output_attn_res_norm_weight: Vec<f32>,
pub output_attn_res_proj_weight: Vec<f32>,
pub final_norm_weight: Vec<f32>,
pub output_head: WeightMatrix,
}Fields§
§embedding: Tensor§layers: Vec<KimiDecoderLayerWeights>§output_attn_res_norm_weight: Vec<f32>§output_attn_res_proj_weight: Vec<f32>§final_norm_weight: Vec<f32>§output_head: WeightMatrixImplementations§
Source§impl KimiDecoderWeights
impl KimiDecoderWeights
Sourcepub fn expert_store_stats(&self) -> Option<ExpertStoreStats>
pub fn expert_store_stats(&self) -> Option<ExpertStoreStats>
The shared expert store’s live counters when this model streams
routed experts – None when fully resident. Every store-backed
layer shares one store, so the first found speaks for the model.
Auto Trait Implementations§
impl Freeze for KimiDecoderWeights
impl RefUnwindSafe for KimiDecoderWeights
impl Send for KimiDecoderWeights
impl Sync for KimiDecoderWeights
impl Unpin for KimiDecoderWeights
impl UnsafeUnpin for KimiDecoderWeights
impl UnwindSafe for KimiDecoderWeights
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> 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