nemo_automodel.components.speculative.dspark.config
nemo_automodel.components.speculative.dspark.config
Module Contents
Functions
Data
API
Build a DeepSeek V4 DSpark draft config from a V4 target config.
The draft shares the target’s frozen embed_tokens / lm_head and fuses
its hidden states, so it keeps the target’s attention and embedding dims and
only shrinks the depth, then adds the DSpark-specific fields. The draft is
always dense: V4’s sparse machinery (DSA compress_ratios), hash routing,
and MTP are disabled.
Build a Gemma4 DSpark draft config from a Gemma4 target’s text sub-config.
Build a GLM-5.2 DSpark draft config from a GLM-5.2 (glm_moe_dsa) target config.
The draft shares the target’s frozen embed_tokens / lm_head and fuses its
hidden states, so it keeps the target’s MLA and embedding dims and only shrinks the
depth, then adds the DSpark-specific fields. The draft is always dense: GLM’s DSA
sparse machinery (the top-k indexer + IndexShare layer sharing) and its MoE are
disabled — every draft layer is a plain dense SwiGLU block with a dense MLA.
Build a MiniMax M3 DSpark draft config from a MiniMax M3 VL target’s text sub-config.
Return a deep copy of a Gemma4 target’s text sub-config.
Return a deep copy of a MiniMax M3 VL target’s text sub-config.