Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
c8851a47
Unverified
Commit
c8851a47
authored
Aug 28, 2025
by
Jinheng
Committed by
GitHub
Aug 27, 2025
Browse files
Add deprecation warning for lora_extra_vocab_size (#23635)
Signed-off-by:
Jinheng Li
<
ahengljh@gmail.com
>
parent
f48a9af8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
vllm/config/__init__.py
vllm/config/__init__.py
+8
-2
No files found.
vllm/config/__init__.py
View file @
c8851a47
...
...
@@ -2439,8 +2439,8 @@ class LoRAConfig:
lora_dtype
:
Union
[
torch
.
dtype
,
LoRADType
]
=
"auto"
"""Data type for LoRA. If auto, will default to base model dtype."""
lora_extra_vocab_size
:
int
=
256
"""Maximum size of extra vocabulary that can be present in a
LoRA adapter
(added to the base model vocabulary)
."""
"""
(Deprecated)
Maximum size of extra vocabulary that can be present in a
LoRA adapter. Will be removed in v0.12.0
."""
lora_vocab_padding_size
:
ClassVar
[
int
]
=
current_platform
\
.
get_lora_vocab_padding_size
()
...
...
@@ -2482,6 +2482,12 @@ class LoRAConfig:
return
hash_str
def
__post_init__
(
self
):
# Deprecation warning for lora_extra_vocab_size
logger
.
warning
(
"`lora_extra_vocab_size` is deprecated and will be removed "
"in v0.12.0. Additional vocabulary support for "
"LoRA adapters is being phased out."
)
# Setting the maximum rank to 512 should be able to satisfy the vast
# majority of applications.
possible_max_ranks
=
(
8
,
16
,
32
,
64
,
128
,
256
,
320
,
512
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment