pub struct DflashBuildArgs<'a> {
pub drafter_store: &'a WeightStore,
pub drafter_config: DflashConfig,
pub gamma: Option<usize>,
pub window_size: Option<usize>,
}Expand description
2026-09-25: DFlash drafter inputs for build_model: the drafter’s own
WeightStore, its parsed config.json, and the CLI overrides for γ and
the sliding-window size.
The server (serve_phases/weights.rs) loads the drafter checkpoint and
parses its config with
metrale_model_arch::weight_loader::dflash_loader::parse_dflash_config.
build_model passes them to
metrale_model_arch::dflash_head::BlockDiffusionDraftHead::from_weights.
Fields§
§drafter_store: &'a WeightStore§drafter_config: DflashConfig§gamma: Option<usize>§window_size: Option<usize>Auto Trait Implementations§
impl<'a> Freeze for DflashBuildArgs<'a>
impl<'a> !RefUnwindSafe for DflashBuildArgs<'a>
impl<'a> Send for DflashBuildArgs<'a>
impl<'a> Sync for DflashBuildArgs<'a>
impl<'a> Unpin for DflashBuildArgs<'a>
impl<'a> !UnwindSafe for DflashBuildArgs<'a>
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