pub struct IndexerWeightsGpu {
pub wq_b: DevicePtr,
pub weights_proj: DevicePtr,
pub wk: Option<DevicePtr>,
pub k_norm: Option<DevicePtr>,
}Expand description
Indexer weights (index sources only); wk / k_norm on kv sources.
Fields§
§wq_b: DevicePtrbf16 [index_heads * index_hd, q_rank]
weights_proj: DevicePtrbf16 [index_heads, dim]
wk: Option<DevicePtr>bf16 [index_hd, hd]
k_norm: Option<DevicePtr>f32 [index_hd]
Auto Trait Implementations§
impl Freeze for IndexerWeightsGpu
impl RefUnwindSafe for IndexerWeightsGpu
impl Send for IndexerWeightsGpu
impl Sync for IndexerWeightsGpu
impl Unpin for IndexerWeightsGpu
impl UnwindSafe for IndexerWeightsGpu
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