pub struct Ds4FlashConfig {
pub vocab_size: u32,
pub hidden_dim: u32,
pub num_layers: u32,
pub num_heads: u32,
pub head_dim: u32,
pub kv_lora_rank: u32,
pub qk_rope_head_dim: u32,
pub num_experts: u32,
pub moe_top_k: u32,
pub shared_expert_hidden_dim: u32,
pub rms_norm_eps: f32,
pub max_seq_len: u32,
}Expand description
Hyperparameters for DeepSeek V4 Flash.
Defaults match the VyreOffload reference configuration.
Fields§
§vocab_size: u32Vocabulary size (including special tokens).
Hidden dimension / model dimension (d_model).
num_layers: u32Number of transformer layers.
num_heads: u32Number of attention heads.
head_dim: u32Dimension per attention head.
kv_lora_rank: u32Compressed KV latent rank (MLA).
qk_rope_head_dim: u32RoPE dimension for decoupled Q/K.
num_experts: u32Number of routed experts in the MoE layer.
moe_top_k: u32Top-k experts selected by the router.
Hidden dimension of the shared expert MLP.
rms_norm_eps: f32Epsilon for RMSNorm.
max_seq_len: u32Maximum sequence length for prefill.
Trait Implementations§
Source§impl Clone for Ds4FlashConfig
impl Clone for Ds4FlashConfig
Source§fn clone(&self) -> Ds4FlashConfig
fn clone(&self) -> Ds4FlashConfig
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 Ds4FlashConfig
impl Debug for Ds4FlashConfig
Auto Trait Implementations§
impl Freeze for Ds4FlashConfig
impl RefUnwindSafe for Ds4FlashConfig
impl Send for Ds4FlashConfig
impl Sync for Ds4FlashConfig
impl Unpin for Ds4FlashConfig
impl UnsafeUnpin for Ds4FlashConfig
impl UnwindSafe for Ds4FlashConfig
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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