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
3112271f
Unverified
Commit
3112271f
authored
Jul 07, 2025
by
Yan Ma
Committed by
GitHub
Jul 07, 2025
Browse files
[XPU] log clean up for XPU platform (#20553)
Signed-off-by:
yan
<
yan.ma@intel.com
>
parent
1fd471e9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
vllm/_custom_ops.py
vllm/_custom_ops.py
+2
-1
vllm/platforms/xpu.py
vllm/platforms/xpu.py
+2
-3
No files found.
vllm/_custom_ops.py
View file @
3112271f
...
@@ -13,7 +13,8 @@ from vllm.scalar_type import ScalarType
...
@@ -13,7 +13,8 @@ from vllm.scalar_type import ScalarType
logger
=
init_logger
(
__name__
)
logger
=
init_logger
(
__name__
)
if
not
current_platform
.
is_tpu
()
and
not
current_platform
.
is_hpu
():
if
not
current_platform
.
is_tpu
()
and
not
current_platform
.
is_hpu
()
\
and
not
current_platform
.
is_xpu
():
try
:
try
:
import
vllm._C
import
vllm._C
except
ImportError
as
e
:
except
ImportError
as
e
:
...
...
vllm/platforms/xpu.py
View file @
3112271f
...
@@ -37,7 +37,7 @@ class XPUPlatform(Platform):
...
@@ -37,7 +37,7 @@ class XPUPlatform(Platform):
dtype
:
torch
.
dtype
,
kv_cache_dtype
:
Optional
[
str
],
dtype
:
torch
.
dtype
,
kv_cache_dtype
:
Optional
[
str
],
block_size
:
int
,
use_v1
:
bool
,
block_size
:
int
,
use_v1
:
bool
,
use_mla
:
bool
)
->
str
:
use_mla
:
bool
)
->
str
:
if
selected_backend
!=
_Backend
.
IPEX
:
if
selected_backend
is
not
None
and
selected_backend
!=
_Backend
.
IPEX
:
logger
.
info
(
"Cannot use %s backend on XPU."
,
selected_backend
)
logger
.
info
(
"Cannot use %s backend on XPU."
,
selected_backend
)
use_v1
=
envs
.
VLLM_USE_V1
use_v1
=
envs
.
VLLM_USE_V1
if
not
use_v1
:
if
not
use_v1
:
...
@@ -133,8 +133,7 @@ class XPUPlatform(Platform):
...
@@ -133,8 +133,7 @@ class XPUPlatform(Platform):
@
classmethod
@
classmethod
def
is_pin_memory_available
(
cls
):
def
is_pin_memory_available
(
cls
):
logger
.
warning
(
"Pin memory is not supported on XPU."
)
return
True
return
False
@
classmethod
@
classmethod
def
get_current_memory_usage
(
cls
,
def
get_current_memory_usage
(
cls
,
...
...
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