Skip to content

Commit 3efdd2b

Browse files
ConcurrenseeYida Wu
andauthored
fp8 support (#352)
Co-authored-by: Yida Wu <[email protected]>
1 parent c040f0e commit 3efdd2b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

vllm/model_executor/models/deepseek_v2.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
from vllm.model_executor.layers.sampler import SamplerOutput, get_sampler
4646
from vllm.model_executor.layers.vocab_parallel_embedding import (
4747
ParallelLMHead, VocabParallelEmbedding)
48-
from vllm.model_executor.model_loader.weight_utils import default_weight_loader
48+
from vllm.model_executor.model_loader.weight_utils import (
49+
default_weight_loader, maybe_remap_kv_scale_name)
4950
from vllm.model_executor.sampling_metadata import SamplingMetadata
5051
from vllm.sequence import IntermediateTensors
5152

@@ -625,6 +626,11 @@ def load_weights(self, weights: Iterable[Tuple[str,
625626
if name.endswith(".bias") and name not in params_dict:
626627
continue
627628

629+
# Remapping the name of FP8 kv-scale.
630+
name = maybe_remap_kv_scale_name(name, params_dict)
631+
if name is None:
632+
continue
633+
628634
if is_pp_missing_parameter(name, self):
629635
continue
630636

0 commit comments

Comments
 (0)