pub enum ReferenceLayerState {
Kv {
key: Vec<f32>,
value: Vec<f32>,
tokens: usize,
kv_heads: usize,
key_head_dim: usize,
value_head_dim: usize,
window: Option<usize>,
},
Recurrent {
conv: Vec<f32>,
matrix: Vec<f32>,
value_heads: usize,
key_head_dim: usize,
value_head_dim: usize,
conv_width: usize,
},
LatentKv {
rows: Vec<f32>,
tokens: usize,
width: usize,
},
CompressedAttention {
rows: Vec<f32>,
tokens: usize,
width: usize,
window: usize,
compressed_tokens: usize,
},
}Variants§
Trait Implementations§
Source§impl Clone for ReferenceLayerState
impl Clone for ReferenceLayerState
Source§fn clone(&self) -> ReferenceLayerState
fn clone(&self) -> ReferenceLayerState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReferenceLayerState
impl Debug for ReferenceLayerState
Source§impl PartialEq for ReferenceLayerState
impl PartialEq for ReferenceLayerState
impl StructuralPartialEq for ReferenceLayerState
Auto Trait Implementations§
impl Freeze for ReferenceLayerState
impl RefUnwindSafe for ReferenceLayerState
impl Send for ReferenceLayerState
impl Sync for ReferenceLayerState
impl Unpin for ReferenceLayerState
impl UnsafeUnpin for ReferenceLayerState
impl UnwindSafe for ReferenceLayerState
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