pub enum DraftSourceKind {
NativeMtp,
Dflash2,
}Expand description
Which draft source a spec session is pinned to. The ENGINE-LEVEL half of
DraftSourcePlan (memra-gguf model_plan.rs, always general): the plan states what the
model DECLARES, this states what actually LOADED and therefore what the session runs.
Pinned at session creation for the session’s lifetime.
Family-agnostic on purpose (lane/glm5-extract2, the DraftSource seam): glm5 is today’s
consumer with NativeMtp | Dflash2; the hy3/qwen-next spec lanes select through the same
three-way law instead of re-deriving it. What each family still owns is the per-session
STATE behind the kind (see dflash.rs’s seam note for why that half is not a trait yet).
Variants§
NativeMtp
The model’s own embedded NextN/MTP head.
Dflash2
A separately loaded DFlash2 block-diffusion drafter
(crate::dflash::DflashDrafter).
Trait Implementations§
Source§impl Clone for DraftSourceKind
impl Clone for DraftSourceKind
Source§fn clone(&self) -> DraftSourceKind
fn clone(&self) -> DraftSourceKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more