pub enum HcVariant {
Sinkhorn,
LowRank,
}Expand description
2026-09-25: Which family a site’s weights select. Callers use it to decide whether the
block’s input_norm runs on hc_pre’s output (HcVariant::applies_block_input_norm): in
the low-rank family hc_norm inside hc_pre is the block’s input norm, and a second RMS pass
with a ones-filled weight is not an identity.
Variants§
Sinkhorn
2026-09-25: DeepSeek-V4: Sinkhorn mix, [hc, hc] combine matrix.
LowRank
2026-09-25: Qwen3.8-Flash-Next: low-rank pair, one injection scalar per stream.
Implementations§
Source§impl HcVariant
impl HcVariant
pub fn of_site(site: &HcSiteWeights) -> Self
pub fn of(hc: &HcWeights) -> Self
Sourcepub fn applies_block_input_norm(self) -> bool
pub fn applies_block_input_norm(self) -> bool
2026-09-25: Whether the block’s own input_norm runs on hc_pre’s output: true only for
HcVariant::Sinkhorn.
Trait Implementations§
impl Copy for HcVariant
impl Eq for HcVariant
impl StructuralPartialEq for HcVariant
Auto Trait Implementations§
impl Freeze for HcVariant
impl RefUnwindSafe for HcVariant
impl Send for HcVariant
impl Sync for HcVariant
impl Unpin for HcVariant
impl UnwindSafe for HcVariant
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.