Skip to content

Commit

Permalink
fix the default value of llm_int8_threshold in BitsAndBytesConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
yansh97 authored Nov 26, 2024
1 parent 519e8e4 commit 267d5b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vllm/model_executor/layers/quantization/bitsandbytes.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(
llm_int8_enable_fp32_cpu_offload: bool = False,
llm_int8_has_fp16_weight: bool = False,
llm_int8_skip_modules: Optional[List[str]] = None,
llm_int8_threshold: float = 0.0,
llm_int8_threshold: float = 6.0,
) -> None:

self.load_in_8bit = load_in_8bit
Expand Down Expand Up @@ -93,7 +93,7 @@ def get_safe_value(config, keys, default_value=None):
["llm_int8_skip_modules"],
default_value=[])
llm_int8_threshold = get_safe_value(config, ["llm_int8_threshold"],
default_value=0.0)
default_value=6.0)

return cls(
load_in_8bit=load_in_8bit,
Expand Down

0 comments on commit 267d5b0

Please sign in to comment.