pub struct HcLowRank {
pub norm_w: DevicePtr,
pub down_w: DevicePtr,
pub up_w: DevicePtr,
pub inject_w: DevicePtr,
pub rank: usize,
}Expand description
2026-09-25: The low-rank hyper-connection parameters for one site (qwen4_exp).
Used instead of the Sinkhorn hc_fn/hc_base/hc_scale fields of
HcSiteWeights, which are NULL when this is present. The presence of this
struct, not the model name, selects the kernel (HcVariant::of_site).
Fields§
§norm_w: DevicePtr2026-09-25: hc_norm: a grouped RMS norm scale over the hc_mult
streams.
down_w: DevicePtr2026-09-25: input_mix_weight_down.
up_w: DevicePtr2026-09-25: input_mix_weight_up.
inject_w: DevicePtr2026-09-25: block_inject_weight; NULL on the model-level mixer, which
has none.
rank: usize2026-09-25: hc_lowrank from the config.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HcLowRank
impl RefUnwindSafe for HcLowRank
impl Send for HcLowRank
impl Sync for HcLowRank
impl Unpin for HcLowRank
impl UnwindSafe for HcLowRank
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