pub struct KimiRealHparams {Show 14 fields
pub hidden_dim: usize,
pub kda_num_heads: usize,
pub kda_head_dim: usize,
pub mla_num_heads: usize,
pub mla_q_lora_rank: usize,
pub mla_kv_lora_rank: usize,
pub mla_qk_nope_head_dim: usize,
pub mla_qk_rope_head_dim: usize,
pub mla_v_head_dim: usize,
pub dense_intermediate_dim: usize,
pub moe_hidden_dim: usize,
pub moe_intermediate_dim: usize,
pub n_experts: usize,
pub num_shared_experts: usize,
}Expand description
Kimi K3’s real per-layer hyperparameters needed to load any layer
(not tied to ferrox_moe::MoeLayerConfig/ferrox_models::ModelConfig,
neither of which model the “latent MoE” down-projected dimension or
the dense leading layer’s own intermediate size – kept as a small,
dedicated struct here rather than widening those shared types for
one model’s real values).
Fields§
§kda_num_heads: usize§kda_head_dim: usize§mla_num_heads: usize§mla_q_lora_rank: usize§mla_kv_lora_rank: usize§mla_qk_nope_head_dim: usize§mla_qk_rope_head_dim: usize§mla_v_head_dim: usize§dense_intermediate_dim: usize§moe_intermediate_dim: usize§n_experts: usizeImplementations§
Auto Trait Implementations§
impl Freeze for KimiRealHparams
impl RefUnwindSafe for KimiRealHparams
impl Send for KimiRealHparams
impl Sync for KimiRealHparams
impl Unpin for KimiRealHparams
impl UnsafeUnpin for KimiRealHparams
impl UnwindSafe for KimiRealHparams
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