pub struct DeviceLayerCache {
pub kda: Option<KdaDeviceState>,
pub mla_k: Option<DevicePtr>,
pub mla_v: Option<DevicePtr>,
pub seq_len: usize,
pub cap: usize,
}Expand description
2026-09-25: One layer’s device state: KDA state for a KDA layer, or MLA
k/v buffers sized for cap tokens for an MLA layer.
Fields§
§kda: Option<KdaDeviceState>§mla_k: Option<DevicePtr>§mla_v: Option<DevicePtr>§seq_len: usize§cap: usizeAuto Trait Implementations§
impl Freeze for DeviceLayerCache
impl RefUnwindSafe for DeviceLayerCache
impl Send for DeviceLayerCache
impl Sync for DeviceLayerCache
impl Unpin for DeviceLayerCache
impl UnwindSafe for DeviceLayerCache
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