mirror of
https://github.com/NVIDIA/Model-Optimizer.git
synced 2026-12-06 04:57:17 +08:00
refactor(speculative): read DSpark's sample_from_anchor off _label_shift directly
sample_from_anchor is vLLM's name for the same next-token alignment as shift_label, so take it from _label_shift like shift_label is, rather than through the exported dict. The exported value is unchanged (true for DSpark). DSpark export tests: 30 passed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: h-guo18 <67671475+h-guo18@users.noreply.github.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
d60a0c00fc
commit
39ffc25218
@@ -638,7 +638,7 @@ class DSparkExporter(DFlashExporter):
|
||||
"mask_token_id": config["dflash_config"]["mask_token_id"],
|
||||
"target_layer_ids": config["dflash_config"]["target_layer_ids"],
|
||||
"markov_rank": config["dflash_config"]["markov_rank"],
|
||||
"sample_from_anchor": config["dflash_config"]["shift_label"],
|
||||
"sample_from_anchor": bool(self.model._label_shift),
|
||||
"enable_confidence_head": config["dflash_config"]["use_confidence_head"],
|
||||
"confidence_head_with_markov": config["dflash_config"]["use_confidence_head"],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user