pub struct HcWeights {
pub attn: HcSiteWeights,
pub ffn: HcSiteWeights,
pub head: Option<HcHeadWeights>,
pub hc_mult: usize,
pub sinkhorn_iters: usize,
pub hc_eps: f32,
pub is_first_model_layer: bool,
pub is_last_model_layer: bool,
}Fields§
§attn: HcSiteWeights§ffn: HcSiteWeights§head: Option<HcHeadWeights>2026-09-25: Model-level head weights, used only by the last model layer’s
hc_head call.
hc_mult: usize§sinkhorn_iters: usize§hc_eps: f32§is_first_model_layer: bool2026-09-25: Whether this is model layer 0, the layer that seeds the
highway with hc_expand.
Carried here because attn_layer_idx counts attention layers only; on a
model that interleaves GDN and attention layers the two indices differ.
is_last_model_layer: bool2026-09-25: Whether this is the last model layer, the one that collapses
the highway with hc_head. Carried here for the same reason. On
qwen4_exp that collapse is also the final norm: the checkpoint has no
model.norm, and the loader installs a placeholder.
Auto Trait Implementations§
impl Freeze for HcWeights
impl RefUnwindSafe for HcWeights
impl Send for HcWeights
impl Sync for HcWeights
impl Unpin for HcWeights
impl UnwindSafe for HcWeights
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