pub struct RoPEConfig {
pub head_dim: usize,
pub max_seq_len: usize,
pub theta: f32,
}Expand description
Rotary position embedding configuration.
Fields§
§head_dim: usizeDimensionality of each attention head.
max_seq_len: usizeMaximum sequence length the cache covers.
theta: f32Base frequency (default 10000.0 for standard RoPE).
Trait Implementations§
Source§impl Clone for RoPEConfig
impl Clone for RoPEConfig
Source§fn clone(&self) -> RoPEConfig
fn clone(&self) -> RoPEConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RoPEConfig
impl RefUnwindSafe for RoPEConfig
impl Send for RoPEConfig
impl Sync for RoPEConfig
impl Unpin for RoPEConfig
impl UnsafeUnpin for RoPEConfig
impl UnwindSafe for RoPEConfig
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