pub struct HcSiteWeights {
pub hc_fn: DevicePtr,
pub hc_base: DevicePtr,
pub hc_scale: DevicePtr,
pub lowrank: Option<HcLowRank>,
}Expand description
2026-09-25: Hyper-connection (mHC) parameters for one site (attention or FFN).
The Sinkhorn fields are FP32; with lowrank set they are NULL.
Fields§
§hc_fn: DevicePtr2026-09-25: Mix projection fn: [mix_hc, hc_mult*hidden] FP32, where
mix_hc = (2 + hc_mult) * hc_mult.
hc_base: DevicePtr2026-09-25: Mix bias base: [mix_hc] FP32.
hc_scale: DevicePtr2026-09-25: Mix scale: [3] FP32.
lowrank: Option<HcLowRank>2026-09-25: Low-rank variant. Some selects the low-rank kernels, and
hc_fn/hc_base/hc_scale are then NULL.
Auto Trait Implementations§
impl Freeze for HcSiteWeights
impl RefUnwindSafe for HcSiteWeights
impl Send for HcSiteWeights
impl Sync for HcSiteWeights
impl Unpin for HcSiteWeights
impl UnwindSafe for HcSiteWeights
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