Add Muse Glimmer model support (#51655)
Signed-off-by: Tiezhen Wang <tiezhen@inferact.ai> Signed-off-by: Jee Jee Li <jeejeelee@inferact.ai> Signed-off-by: zixi-qi <zixi@inferact.ai> Co-authored-by: Beto de Paola <betodepaola@meta.com> Co-authored-by: Giancarlo Delfin <gdelfin@inferact.ai> Co-authored-by: Jee Jee Li <jeejeelee@inferact.ai> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> Co-authored-by: Jee Jee Li <pandaleefree@gmail.com> Co-authored-by: zixi-qi <zixi@inferact.ai>
This commit is contained in:
co-authored by
Beto de Paola
Giancarlo Delfin
Jee Jee Li
Claude Opus 5
Jee Jee Li
zixi-qi
parent
59d1af5698
commit
6adad08767
@@ -80,6 +80,21 @@ class DFlashProposer(SpecDecodeBaseProposer):
|
||||
self.draft_model_config.hf_config
|
||||
)
|
||||
|
||||
@override
|
||||
def load_model(self, target_model: torch.nn.Module) -> None:
|
||||
from vllm.model_executor.models.qwen3_dflash import (
|
||||
dflash_target_rope_is_neox_style,
|
||||
)
|
||||
|
||||
draft_model_config = self.speculative_config.draft_model_config
|
||||
assert draft_model_config is not None
|
||||
# The drafter must rotate Q/K the way its target does. Take that from the
|
||||
# built target before super() constructs the draft.
|
||||
is_neox_style = dflash_target_rope_is_neox_style(target_model)
|
||||
if is_neox_style is not None:
|
||||
draft_model_config.hf_config.is_neox_style = is_neox_style
|
||||
super().load_model(target_model)
|
||||
|
||||
@override
|
||||
def _create_draft_vllm_config(self) -> VllmConfig:
|
||||
base = super()._create_draft_vllm_config()
|
||||
|
||||
Reference in New Issue
Block a user