[Spec Decode] Add kv_cache_dtype to speculative_config to control separately from target (#48787)
Signed-off-by: mgoin <mgoin64@gmail.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
7dc2698632
commit
8bfd683901
@@ -1300,6 +1300,15 @@ class SpecDecodeBaseProposer:
|
||||
),
|
||||
)
|
||||
|
||||
if spec_cfg.kv_cache_dtype is not None:
|
||||
base = replace(
|
||||
base,
|
||||
cache_config=replace(
|
||||
base.cache_config,
|
||||
cache_dtype=spec_cfg.kv_cache_dtype,
|
||||
),
|
||||
)
|
||||
|
||||
return base
|
||||
|
||||
def _get_model(self) -> nn.Module:
|
||||
|
||||
Reference in New Issue
Block a user