pub struct RopeCache {
pub cos: Vec<f32>,
pub sin: Vec<f32>,
pub max_len: usize,
pub half_dim: usize,
}Expand description
Precomputed cosine/sine tables for RoPE. Shape: [max_len, head_dim/2]
Fields§
§cos: Vec<f32>§sin: Vec<f32>§max_len: usize§half_dim: usizeImplementations§
Auto Trait Implementations§
impl Freeze for RopeCache
impl RefUnwindSafe for RopeCache
impl Send for RopeCache
impl Sync for RopeCache
impl Unpin for RopeCache
impl UnsafeUnpin for RopeCache
impl UnwindSafe for RopeCache
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