mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-07-09 21:57:41 +08:00
Lora bias(enable_lora_bias) deprecate warning (#24339)
Signed-off-by: Jee Jee Li <pandaleefree@gmail.com> Co-authored-by: Jee Jee Li <pandaleefree@gmail.com>
This commit is contained in:
parent
7555d6b34a
commit
6024d115cd
@ -2458,7 +2458,6 @@ class LoRAConfig:
|
|||||||
LoRA adapter. Will be removed in v0.12.0."""
|
LoRA adapter. Will be removed in v0.12.0."""
|
||||||
lora_vocab_padding_size: ClassVar[int] = current_platform\
|
lora_vocab_padding_size: ClassVar[int] = current_platform\
|
||||||
.get_lora_vocab_padding_size()
|
.get_lora_vocab_padding_size()
|
||||||
|
|
||||||
default_mm_loras: Optional[dict[str, str]] = None
|
default_mm_loras: Optional[dict[str, str]] = None
|
||||||
"""Dictionary mapping specific modalities to LoRA model paths; this field
|
"""Dictionary mapping specific modalities to LoRA model paths; this field
|
||||||
is only applicable to multimodal models and should be leveraged when a
|
is only applicable to multimodal models and should be leveraged when a
|
||||||
@ -2470,7 +2469,8 @@ class LoRAConfig:
|
|||||||
will be automatically assigned to 1-n with the names of the modalities
|
will be automatically assigned to 1-n with the names of the modalities
|
||||||
in alphabetic order."""
|
in alphabetic order."""
|
||||||
bias_enabled: bool = False
|
bias_enabled: bool = False
|
||||||
"""Enable bias for LoRA adapters."""
|
"""[DEPRECATED] Enable bias for LoRA adapters. This option will be
|
||||||
|
removed in v0.12.0."""
|
||||||
|
|
||||||
def compute_hash(self) -> str:
|
def compute_hash(self) -> str:
|
||||||
"""
|
"""
|
||||||
@ -2503,6 +2503,11 @@ class LoRAConfig:
|
|||||||
"in v0.12.0. Additional vocabulary support for "
|
"in v0.12.0. Additional vocabulary support for "
|
||||||
"LoRA adapters is being phased out.")
|
"LoRA adapters is being phased out.")
|
||||||
|
|
||||||
|
# Deprecation warning for enable_lora_bias
|
||||||
|
if self.bias_enabled:
|
||||||
|
logger.warning("`enable_lora_bias` is deprecated "
|
||||||
|
"and will be removed in v0.12.0.")
|
||||||
|
|
||||||
# Setting the maximum rank to 512 should be able to satisfy the vast
|
# Setting the maximum rank to 512 should be able to satisfy the vast
|
||||||
# majority of applications.
|
# majority of applications.
|
||||||
possible_max_ranks = (8, 16, 32, 64, 128, 256, 320, 512)
|
possible_max_ranks = (8, 16, 32, 64, 128, 256, 320, 512)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user