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
Subset of HF rope_scaling block consumed by Atlas. Mirrors the field
names in transformers’ Qwen3 config so serde_json::from_str works
directly on the drafter’s config.json.
Fields§
§rope_type: Option<String>Currently only "yarn" is recognised; anything else falls back to
plain RoPE with a warning logged at construction time.
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