pub struct AttnV41LayerWeights {
pub role: LayerRole,
pub sink: DevicePtr,
pub wq_a: AttnMat,
pub q_norm: DevicePtr,
pub wq_b: AttnMat,
pub wkv: AttnMat,
pub kv_norm: DevicePtr,
pub wo_a: AttnMat,
pub wo_b: AttnMat,
pub comp: Option<CompressorWeightsGpu>,
pub idx: Option<IndexerWeightsGpu>,
}Expand description
One layer’s resident attention weights. bf16 [out, in] unless noted.
Fields§
§role: LayerRole§sink: DevicePtrf32 [n_heads]
wq_a: AttnMat§q_norm: DevicePtrf32 [q_rank]
wq_b: AttnMat§wkv: AttnMat§kv_norm: DevicePtrf32 [hd]
wo_a: AttnMat[groups * o_rank, gw]
wo_b: AttnMat[dim, groups * o_rank]
comp: Option<CompressorWeightsGpu>§idx: Option<IndexerWeightsGpu>Auto Trait Implementations§
impl Freeze for AttnV41LayerWeights
impl RefUnwindSafe for AttnV41LayerWeights
impl Send for AttnV41LayerWeights
impl Sync for AttnV41LayerWeights
impl Unpin for AttnV41LayerWeights
impl UnwindSafe for AttnV41LayerWeights
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