pub struct GdnWeights {
pub in_proj_qkv: QTensor,
pub in_proj_z: QTensor,
pub in_proj_a: QTensor,
pub in_proj_b: QTensor,
pub conv1d: Vec<f32>,
pub a_log: Vec<f32>,
pub dt_bias: Vec<f32>,
pub norm: Vec<f32>,
pub out_proj: QTensor,
}Expand description
Weights of one GatedDeltaNet layer (model.layers.{i}.linear_attn.*,
names 1:1 with the source model — no fold, no training).
Fields§
§in_proj_qkv: QTensor[2·nk·dk + nv·dv, hidden] — fused q/k/v projection
in_proj_z: QTensor[nv·dv, hidden] — output-gate projection z
in_proj_a: QTensor[nv, hidden] — decay modulation a
in_proj_b: QTensor[nv, hidden] — write-strength b (β = σ(b))
conv1d: Vec<f32>[c_dim · kk] — depthwise causal conv taps, flattened [c][tap]
a_log: Vec<f32>[nv]
dt_bias: Vec<f32>[nv]
norm: Vec<f32>[dv] — gated RMSNorm weight (plain x̂·w, validated by the oracle)
out_proj: QTensor[hidden, nv·dv]
Auto Trait Implementations§
impl Freeze for GdnWeights
impl RefUnwindSafe for GdnWeights
impl Send for GdnWeights
impl Sync for GdnWeights
impl Unpin for GdnWeights
impl UnsafeUnpin for GdnWeights
impl UnwindSafe for GdnWeights
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