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
a5416bc5
Unverified
Commit
a5416bc5
authored
Mar 25, 2026
by
sihao_li
Committed by
GitHub
Mar 24, 2026
Browse files
[XPU] Support Intel XPU hardware information collection in usage stats (#37964)
Signed-off-by:
sihao.li
<
sihao.li@intel.com
>
parent
b3601da6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
vllm/usage/usage_lib.py
vllm/usage/usage_lib.py
+6
-0
No files found.
vllm/usage/usage_lib.py
View file @
a5416bc5
...
@@ -136,6 +136,7 @@ class UsageMessage:
...
@@ -136,6 +136,7 @@ class UsageMessage:
self
.
total_memory
:
int
|
None
=
None
self
.
total_memory
:
int
|
None
=
None
self
.
architecture
:
str
|
None
=
None
self
.
architecture
:
str
|
None
=
None
self
.
platform
:
str
|
None
=
None
self
.
platform
:
str
|
None
=
None
self
.
xpu_runtime
:
str
|
None
=
None
self
.
cuda_runtime
:
str
|
None
=
None
self
.
cuda_runtime
:
str
|
None
=
None
self
.
gpu_count
:
int
|
None
=
None
self
.
gpu_count
:
int
|
None
=
None
self
.
gpu_type
:
str
|
None
=
None
self
.
gpu_type
:
str
|
None
=
None
...
@@ -201,6 +202,11 @@ class UsageMessage:
...
@@ -201,6 +202,11 @@ class UsageMessage:
)
)
if
current_platform
.
is_cuda
():
if
current_platform
.
is_cuda
():
self
.
cuda_runtime
=
torch
.
version
.
cuda
self
.
cuda_runtime
=
torch
.
version
.
cuda
if
current_platform
.
is_xpu
():
self
.
xpu_runtime
=
torch
.
version
.
xpu
self
.
gpu_count
=
torch
.
xpu
.
device_count
()
self
.
gpu_type
=
torch
.
xpu
.
get_device_name
(
0
)
self
.
gpu_memory_per_device
=
torch
.
xpu
.
get_device_properties
(
0
).
total_memory
if
current_platform
.
is_tpu
():
# noqa: SIM102
if
current_platform
.
is_tpu
():
# noqa: SIM102
if
not
self
.
_report_tpu_inference_usage
():
if
not
self
.
_report_tpu_inference_usage
():
logger
.
exception
(
"Failed to collect TPU information"
)
logger
.
exception
(
"Failed to collect TPU information"
)
...
...
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