pub struct GraphMhcDsv4 {
pub attn_scale: [f32; 3],
pub ffn_scale: [f32; 3],
pub eps: f32,
pub rms_eps: f32,
pub ihc: Option<f32>,
}Expand description
DeepSeek-V4 / GLM-5.3 mHC constants of a layer (see GraphMhc::dsv4):
the attention and FFN routers’ three group scales, the Sinkhorn epsilon
and the router input’s RMS epsilon.
Fields§
§attn_scale: [f32; 3]§ffn_scale: [f32; 3]§eps: f32§rms_eps: f32§ihc: Option<f32>Hy4-flash’s identity hyper-connections: Some(magnitude) = the router
has 2·ns logits (pre, post) and no mix, the streams are never
mixed, post = magnitude·σ + eps. A backend without the arm must
decline it.
Trait Implementations§
Source§impl Clone for GraphMhcDsv4
impl Clone for GraphMhcDsv4
impl Copy for GraphMhcDsv4
Auto Trait Implementations§
impl Forget for GraphMhcDsv4
impl Freeze for GraphMhcDsv4
impl Move for GraphMhcDsv4
impl RefUnwindSafe for GraphMhcDsv4
impl Send for GraphMhcDsv4
impl Sync for GraphMhcDsv4
impl Unpin for GraphMhcDsv4
impl UnsafeUnpin for GraphMhcDsv4
impl UnwindSafe for GraphMhcDsv4
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