pub struct DflashSubConfig {
pub mask_token_id: u32,
pub target_layer_ids: Vec<usize>,
pub projector_type: Option<String>,
pub conv_kernel_size: usize,
pub conv_group_size: usize,
pub selector_rank: usize,
pub selector_top_k: usize,
pub block_size: Option<usize>,
}Expand description
2026-09-25: The nested dflash_config block of the drafter’s config.json.
Fields§
§mask_token_id: u322026-09-25: Token id that fills the draft block after its anchor token.
target_layer_ids: Vec<usize>2026-09-25: Target-model layers whose hidden states the drafter reads. The head refuses to build when the list is empty.
projector_type: Option<String>2026-09-25: "dspark" marks a drafter whose row j predicts position
j + 1; the head then rotates the draft vector right by one, unless
METRALE_DSPARK_SHIFT overrides it.
conv_kernel_size: usize2026-09-25: DFlash2 conv kernel size; 0 when absent. With
conv_group_size, a non-zero value lets the conv tensors load.
conv_group_size: usize2026-09-25: DFlash2 channels per conv group; 0 when absent.
selector_rank: usize2026-09-25: DFlash2 selector codebook rank; 0 when absent. With
selector_top_k, a non-zero value lets the selector tensors load.
selector_top_k: usize2026-09-25: DFlash2 candidates kept per position; 0 when absent.
block_size: Option<usize>2026-09-25: The drafter’s trained block size, when the checkpoint states
it here. None falls back to the top-level field. Read it through
DflashConfig::effective_block_size.
Trait Implementations§
Source§impl Clone for DflashSubConfig
impl Clone for DflashSubConfig
Source§fn clone(&self) -> DflashSubConfig
fn clone(&self) -> DflashSubConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more