pub struct SlidingWindowLayerCount {
pub window: u64,
pub layers: u64,
}Expand description
Sliding-attention layer count sharing one retained window.
Fields§
§window: u64Exact positive retained positions, including the current token.
layers: u64Number of layers using this window.
Trait Implementations§
Source§impl Clone for SlidingWindowLayerCount
impl Clone for SlidingWindowLayerCount
Source§fn clone(&self) -> SlidingWindowLayerCount
fn clone(&self) -> SlidingWindowLayerCount
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 moreimpl Copy for SlidingWindowLayerCount
Source§impl Debug for SlidingWindowLayerCount
impl Debug for SlidingWindowLayerCount
Source§impl<'de> Deserialize<'de> for SlidingWindowLayerCount
impl<'de> Deserialize<'de> for SlidingWindowLayerCount
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SlidingWindowLayerCount
Source§impl PartialEq for SlidingWindowLayerCount
impl PartialEq for SlidingWindowLayerCount
Source§impl Serialize for SlidingWindowLayerCount
impl Serialize for SlidingWindowLayerCount
impl StructuralPartialEq for SlidingWindowLayerCount
Auto Trait Implementations§
impl Freeze for SlidingWindowLayerCount
impl RefUnwindSafe for SlidingWindowLayerCount
impl Send for SlidingWindowLayerCount
impl Sync for SlidingWindowLayerCount
impl Unpin for SlidingWindowLayerCount
impl UnsafeUnpin for SlidingWindowLayerCount
impl UnwindSafe for SlidingWindowLayerCount
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