pub struct Deepseek2Hparams {Show 20 fields
pub arch: String,
pub n_layer: usize,
pub hidden_dim: usize,
pub ffn_dim: usize,
pub n_heads: usize,
pub q_lora_rank: usize,
pub kv_lora_rank: usize,
pub qk_nope_head_dim: usize,
pub qk_rope_head_dim: usize,
pub v_head_dim: usize,
pub rms_norm_eps: f32,
pub rope_theta: f32,
pub leading_dense_block_count: usize,
pub n_expert: usize,
pub n_expert_used: usize,
pub n_shared_experts: usize,
pub expert_ffn_dim: usize,
pub gating: GatingFunction,
pub norm_topk_prob: bool,
pub expert_weights_scale: f32,
}Expand description
Hyperparameters read from {arch}.* GGUF metadata.
Fields§
§arch: String§n_layer: usize§ffn_dim: usize§n_heads: usize§q_lora_rank: usize§kv_lora_rank: usize§qk_nope_head_dim: usize§qk_rope_head_dim: usize§v_head_dim: usize§rms_norm_eps: f32§rope_theta: f32§leading_dense_block_count: usizeLayers [0, leading_dense) use dense SwiGLU; rest require MoE.
n_expert: usize§n_expert_used: usize§expert_ffn_dim: usize§gating: GatingFunction§norm_topk_prob: bool§expert_weights_scale: f32Trait Implementations§
Source§impl Clone for Deepseek2Hparams
impl Clone for Deepseek2Hparams
Source§fn clone(&self) -> Deepseek2Hparams
fn clone(&self) -> Deepseek2Hparams
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 moreAuto Trait Implementations§
impl Freeze for Deepseek2Hparams
impl RefUnwindSafe for Deepseek2Hparams
impl Send for Deepseek2Hparams
impl Sync for Deepseek2Hparams
impl Unpin for Deepseek2Hparams
impl UnsafeUnpin for Deepseek2Hparams
impl UnwindSafe for Deepseek2Hparams
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