pub struct DflashRopeScaling {
pub rope_type: Option<String>,
pub factor: Option<f32>,
pub beta_fast: Option<f32>,
pub beta_slow: Option<f32>,
pub original_max_position_embeddings: Option<f32>,
}Expand description
2026-09-25: The rope_scaling fields the drafter head reads.
Fields§
§rope_type: Option<String>2026-09-25: Only "yarn" is recognised; any other value, or none, falls
back to plain RoPE with a warning when the head is built.
factor: Option<f32>§beta_fast: Option<f32>§beta_slow: Option<f32>§original_max_position_embeddings: Option<f32>Trait Implementations§
Source§impl Clone for DflashRopeScaling
impl Clone for DflashRopeScaling
Source§fn clone(&self) -> DflashRopeScaling
fn clone(&self) -> DflashRopeScaling
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 moreSource§impl Debug for DflashRopeScaling
impl Debug for DflashRopeScaling
Source§impl<'de> Deserialize<'de> for DflashRopeScaling
impl<'de> Deserialize<'de> for DflashRopeScaling
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
Auto Trait Implementations§
impl Freeze for DflashRopeScaling
impl RefUnwindSafe for DflashRopeScaling
impl Send for DflashRopeScaling
impl Sync for DflashRopeScaling
impl Unpin for DflashRopeScaling
impl UnwindSafe for DflashRopeScaling
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