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
37c9859f
Unverified
Commit
37c9859f
authored
Jan 23, 2026
by
Wentao Ye
Committed by
GitHub
Jan 23, 2026
Browse files
[Refactor] Clean up unused variables & func (#32692)
Signed-off-by:
yewentao256
<
zhyanwentao@126.com
>
parent
4561f139
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
30 deletions
+0
-30
vllm/entrypoints/openai/engine/protocol.py
vllm/entrypoints/openai/engine/protocol.py
+0
-3
vllm/model_executor/layers/quantization/utils/petit_utils.py
vllm/model_executor/layers/quantization/utils/petit_utils.py
+0
-4
vllm/model_executor/models/glmasr_utils.py
vllm/model_executor/models/glmasr_utils.py
+0
-20
vllm/model_executor/models/phi4mm_audio.py
vllm/model_executor/models/phi4mm_audio.py
+0
-2
vllm/platforms/rocm.py
vllm/platforms/rocm.py
+0
-1
No files found.
vllm/entrypoints/openai/engine/protocol.py
View file @
37c9859f
...
@@ -7,7 +7,6 @@ import time
...
@@ -7,7 +7,6 @@ import time
from
typing
import
Any
,
ClassVar
,
Literal
,
TypeAlias
from
typing
import
Any
,
ClassVar
,
Literal
,
TypeAlias
import
regex
as
re
import
regex
as
re
import
torch
from
pydantic
import
(
from
pydantic
import
(
BaseModel
,
BaseModel
,
ConfigDict
,
ConfigDict
,
...
@@ -25,8 +24,6 @@ from vllm.utils.import_utils import resolve_obj_by_qualname
...
@@ -25,8 +24,6 @@ from vllm.utils.import_utils import resolve_obj_by_qualname
logger
=
init_logger
(
__name__
)
logger
=
init_logger
(
__name__
)
_LONG_INFO
=
torch
.
iinfo
(
torch
.
long
)
class
OpenAIBaseModel
(
BaseModel
):
class
OpenAIBaseModel
(
BaseModel
):
# OpenAI API does allow extra fields
# OpenAI API does allow extra fields
...
...
vllm/model_executor/layers/quantization/utils/petit_utils.py
View file @
37c9859f
...
@@ -38,10 +38,6 @@ def _import_petit_kernel() -> "ModuleType":
...
@@ -38,10 +38,6 @@ def _import_petit_kernel() -> "ModuleType":
raise
ImportError
(
_PETIT_INSTALL_MSG
)
from
None
raise
ImportError
(
_PETIT_INSTALL_MSG
)
from
None
# The _require_petit function can now be a simple alias for consistency.
_require_petit
=
_import_petit_kernel
def
_check_petit_nvfp4_supported
(
def
_check_petit_nvfp4_supported
(
quant_method
:
str
,
group_size
:
int
|
None
quant_method
:
str
,
group_size
:
int
|
None
)
->
tuple
[
bool
,
str
|
None
]:
)
->
tuple
[
bool
,
str
|
None
]:
...
...
vllm/model_executor/models/glmasr_utils.py
View file @
37c9859f
...
@@ -166,23 +166,3 @@ def _extract_mask_for_item(
...
@@ -166,23 +166,3 @@ def _extract_mask_for_item(
return
feature_attention_mask
[
start_idx
:
end_idx
]
return
feature_attention_mask
[
start_idx
:
end_idx
]
mask_slice
=
feature_attention_mask
[
start_idx
:
end_idx
]
mask_slice
=
feature_attention_mask
[
start_idx
:
end_idx
]
return
_normalize_to_tensor
(
mask_slice
)
return
_normalize_to_tensor
(
mask_slice
)
def
_get_num_features_for_item
(
feature_attention_mask
:
torch
.
Tensor
|
None
,
chunk_counts
:
torch
.
Tensor
|
list
[
int
]
|
None
,
item_idx
:
int
,
audio_embeds
:
list
[
torch
.
Tensor
]
|
None
,
merge_factor
:
int
,
conv_params
:
list
[
tuple
[
int
,
int
,
int
]],
)
->
int
:
"""Get number of features for a specific audio item."""
if
feature_attention_mask
is
not
None
:
mask
=
_extract_mask_for_item
(
feature_attention_mask
,
chunk_counts
,
item_idx
)
audio_output_lengths
=
_get_audio_output_lengths_from_mask
(
mask
,
merge_factor
,
conv_params
)
return
audio_output_lengths
.
sum
().
item
()
if
audio_embeds
is
not
None
:
return
audio_embeds
[
item_idx
].
shape
[
0
]
raise
ValueError
(
"Either feature_attention_mask or audio_embeds must be provided"
)
vllm/model_executor/models/phi4mm_audio.py
View file @
37c9859f
...
@@ -33,8 +33,6 @@ from vllm.model_executor.models.phi4mm_utils import (
...
@@ -33,8 +33,6 @@ from vllm.model_executor.models.phi4mm_utils import (
unfold_tensor
,
unfold_tensor
,
)
)
_AUDIO_PLACEHOLDER_TOKEN_ID
=
200011
# <|endoftext11|>
class
ConformerEncoderLayer
(
nn
.
Module
):
class
ConformerEncoderLayer
(
nn
.
Module
):
"""ConformerEncoder Layer module.
"""ConformerEncoder Layer module.
...
...
vllm/platforms/rocm.py
View file @
37c9859f
...
@@ -48,7 +48,6 @@ _ROCM_UNSUPPORTED_MODELS: list[str] = []
...
@@ -48,7 +48,6 @@ _ROCM_UNSUPPORTED_MODELS: list[str] = []
# Models partially supported by ROCm.
# Models partially supported by ROCm.
# Architecture -> Reason.
# Architecture -> Reason.
_ROCM_SWA_REASON
=
()
_ROCM_PARTIALLY_SUPPORTED_MODELS
:
dict
[
str
,
str
]
=
{}
_ROCM_PARTIALLY_SUPPORTED_MODELS
:
dict
[
str
,
str
]
=
{}
_ROCM_DEVICE_ID_NAME_MAP
:
dict
[
str
,
str
]
=
{
_ROCM_DEVICE_ID_NAME_MAP
:
dict
[
str
,
str
]
=
{
"0x74a0"
:
"AMD_Instinct_MI300A"
,
"0x74a0"
:
"AMD_Instinct_MI300A"
,
...
...
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