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
3c49dbdd
Unverified
Commit
3c49dbdd
authored
May 29, 2025
by
Yikun Jiang
Committed by
GitHub
May 28, 2025
Browse files
Skip device and quant Pydantic validation to make plugin device work (#18843)
Signed-off-by:
Yikun Jiang
<
yikunkero@gmail.com
>
parent
1661a9c2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vllm/config.py
vllm/config.py
+2
-2
No files found.
vllm/config.py
View file @
3c49dbdd
...
@@ -304,7 +304,7 @@ class ModelConfig:
...
@@ -304,7 +304,7 @@ class ModelConfig:
- 25.6k -> 25,600"""
- 25.6k -> 25,600"""
spec_target_max_model_len
:
Optional
[
int
]
=
None
spec_target_max_model_len
:
Optional
[
int
]
=
None
"""Specify the maximum length for spec decoding draft models."""
"""Specify the maximum length for spec decoding draft models."""
quantization
:
Optional
[
QuantizationMethods
]
=
None
quantization
:
SkipValidation
[
Optional
[
QuantizationMethods
]
]
=
None
"""Method used to quantize the weights. If `None`, we first check the
"""Method used to quantize the weights. If `None`, we first check the
`quantization_config` attribute in the model config file. If that is
`quantization_config` attribute in the model config file. If that is
`None`, we assume the model weights are not quantized and use `dtype` to
`None`, we assume the model weights are not quantized and use `dtype` to
...
@@ -2231,7 +2231,7 @@ Device = Literal["auto", "cuda", "neuron", "cpu", "tpu", "xpu", "hpu"]
...
@@ -2231,7 +2231,7 @@ Device = Literal["auto", "cuda", "neuron", "cpu", "tpu", "xpu", "hpu"]
class
DeviceConfig
:
class
DeviceConfig
:
"""Configuration for the device to use for vLLM execution."""
"""Configuration for the device to use for vLLM execution."""
device
:
Union
[
Device
,
torch
.
device
]
=
"auto"
device
:
SkipValidation
[
Union
[
Device
,
torch
.
device
]
]
=
"auto"
"""Device type for vLLM execution.
"""Device type for vLLM execution.
This parameter is deprecated and will be
This parameter is deprecated and will be
removed in a future release.
removed in a future release.
...
...
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