nemo_automodel.components.speculative.dspark.registry
nemo_automodel.components.speculative.dspark.registry
Dispatch registry mapping a target architecture string to a DSpark draft model.
Mirrors the EAGLE / DFlash registries: keyed by the target’s HF architectures
string so adding a target family is a one-line append, with no recipe change.
Module Contents
Classes
Functions
Data
API
Dataclass
How to build a DSpark draft model for a particular target architecture.
draft_cls
Evenly spread num_feature_layers feature layers across the target depth.
Used as the default when target_layer_ids is not given. Returns strictly
increasing ids in [1, num_target_layers - 1] (the embedding output, id
-1/0, is excluded by default to match the paper’s choice of mid/late
feature layers).
Return the first registered DSpark draft spec matching architectures.