pub struct DflashConfig {
pub draft_model: &'static str,
pub gamma: usize,
pub window_size: usize,
pub mask_token_id: u32,
pub target_layer_ids: &'static [usize],
}Expand description
2026-09-25: A target’s DFlash drafter pairing, from MODEL.toml [dflash]
(parse_dflash in build_parse.rs). The section requires draft_model;
the other keys default as noted.
Fields§
§draft_model: &'static str2026-09-25: Drafter checkpoint id or path. metrale-server uses it for
--dflash when no --draft-model is given.
gamma: usize2026-09-25: Block size γ. Default 16.
window_size: usize2026-09-25: Drafter sliding-window size in tokens. Default 0.
mask_token_id: u322026-09-25: [dflash].mask_token_id. Default 0.
target_layer_ids: &'static [usize]2026-09-25: [dflash].target_layer_ids. Default empty.
Trait Implementations§
Source§impl Clone for DflashConfig
impl Clone for DflashConfig
Source§fn clone(&self) -> DflashConfig
fn clone(&self) -> DflashConfig
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 DflashConfig
impl RefUnwindSafe for DflashConfig
impl Send for DflashConfig
impl Sync for DflashConfig
impl Unpin for DflashConfig
impl UnwindSafe for DflashConfig
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