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
510bc9e1
Unverified
Commit
510bc9e1
authored
Mar 02, 2026
by
wangxiyuan
Committed by
GitHub
Mar 02, 2026
Browse files
[Misc] Cleanup useless `current_platform` import (#35715)
Signed-off-by:
wangxiyuan
<
wangxiyuan1007@gmail.com
>
parent
cbd361fd
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
17 deletions
+0
-17
vllm/compilation/passes/fusion/sequence_parallelism.py
vllm/compilation/passes/fusion/sequence_parallelism.py
+0
-4
vllm/config/model.py
vllm/config/model.py
+0
-6
vllm/distributed/parallel_state.py
vllm/distributed/parallel_state.py
+0
-2
vllm/v1/attention/backends/fa_utils.py
vllm/v1/attention/backends/fa_utils.py
+0
-3
vllm/v1/attention/backends/flashinfer.py
vllm/v1/attention/backends/flashinfer.py
+0
-2
No files found.
vllm/compilation/passes/fusion/sequence_parallelism.py
View file @
510bc9e1
...
...
@@ -18,7 +18,6 @@ from vllm.logger import init_logger
from
vllm.model_executor.layers.quantization.utils.quant_utils
import
(
kFp8StaticTensorSym
,
)
from
vllm.platforms
import
current_platform
from
..inductor_pass
import
enable_fake_mode
from
..utility.noop_elimination
import
NoOpEliminationPass
...
...
@@ -215,9 +214,6 @@ class MiddleAllReduceRMSNormPattern(_SequenceParallelPatternHelper):
)
FP8_DTYPE
=
current_platform
.
fp8_dtype
()
class
FirstAllReduceRMSNormStaticFP8Pattern
(
_SequenceParallelPatternHelper
):
def
__init__
(
self
,
...
...
vllm/config/model.py
View file @
510bc9e1
...
...
@@ -461,8 +461,6 @@ class ModelConfig:
self
.
maybe_pull_model_tokenizer_for_runai
(
self
.
model
,
self
.
tokenizer
)
from
vllm.platforms
import
current_platform
if
self
.
override_attention_dtype
is
not
None
and
not
current_platform
.
is_rocm
():
warnings
.
warn
(
"override-attention-dtype is set but not using ROCm platform"
,
...
...
@@ -940,8 +938,6 @@ class ModelConfig:
f
"Unknown quantization method:
{
self
.
quantization
}
. Must "
f
"be one of
{
supported_quantization
}
."
)
from
vllm.platforms
import
current_platform
current_platform
.
verify_quantization
(
self
.
quantization
)
if
self
.
quantization
in
me_quant
.
DEPRECATED_QUANTIZATION_METHODS
:
...
...
@@ -1811,8 +1807,6 @@ def _resolve_auto_dtype(
*
,
is_pooling_model
:
bool
,
):
from
vllm.platforms
import
current_platform
supported_dtypes
=
[
dtype
for
dtype
in
current_platform
.
supported_dtypes
...
...
vllm/distributed/parallel_state.py
View file @
510bc9e1
...
...
@@ -385,8 +385,6 @@ class GroupCoordinator:
self
.
cpu_group
,
1
<<
22
,
6
)
from
vllm.platforms
import
current_platform
self
.
use_custom_op_call
=
(
current_platform
.
is_cuda_alike
()
or
current_platform
.
is_tpu
()
)
...
...
vllm/v1/attention/backends/fa_utils.py
View file @
510bc9e1
...
...
@@ -55,9 +55,6 @@ elif current_platform.is_rocm():
def
get_flash_attn_version
(
requires_alibi
:
bool
=
False
,
head_size
:
int
|
None
=
None
)
->
int
|
None
:
# import here to avoid circular dependencies
from
vllm.platforms
import
current_platform
if
current_platform
.
is_xpu
():
return
2
if
current_platform
.
is_rocm
():
...
...
vllm/v1/attention/backends/flashinfer.py
View file @
510bc9e1
...
...
@@ -374,8 +374,6 @@ class FlashInferBackend(AttentionBackend):
@
classmethod
def
get_required_kv_cache_layout
(
cls
)
->
KVCacheLayoutType
|
None
:
from
vllm.platforms
import
current_platform
capability
=
current_platform
.
get_device_capability
()
if
capability
is
not
None
and
capability
.
major
==
10
:
return
"HND"
...
...
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