Skip to content

Commit

Permalink
fix error (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
charlifu authored Jun 24, 2024
1 parent fa78403 commit 17e6307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vllm/model_executor/models/llama.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ def load_kv_cache_scales(self, quantization_param_path: str) -> None:
# which is consistent with the practice of setting
# scaling_factor = tensor_amax / FPtype_max
scaling_factor *= 2
if hasattr(layer_self_attn, "kv_scale"):
if hasattr(layer_self_attn.attn, "_kv_scale"):
layer_self_attn.attn._kv_scale = scaling_factor
else:
raise RuntimeError("Self attention has no KV cache scaling "
Expand Down

0 comments on commit 17e6307

Please sign in to comment.