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
08d5f711
Unverified
Commit
08d5f711
authored
Aug 18, 2025
by
Ning Xie
Committed by
GitHub
Aug 17, 2025
Browse files
[Misc] refactor function name (#23029)
Signed-off-by:
Andy Xie
<
andy.xning@gmail.com
>
parent
b2fd0b81
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
vllm/platforms/cpu.py
vllm/platforms/cpu.py
+1
-1
vllm/v1/worker/cpu_worker.py
vllm/v1/worker/cpu_worker.py
+1
-1
No files found.
vllm/platforms/cpu.py
View file @
08d5f711
...
@@ -268,7 +268,7 @@ class CpuPlatform(Platform):
...
@@ -268,7 +268,7 @@ class CpuPlatform(Platform):
DEFAULT_MAX_NUM_BATCHED_TOKENS
)
DEFAULT_MAX_NUM_BATCHED_TOKENS
)
@
classmethod
@
classmethod
def
get_allowed_cpu_
mem
or
y
_node_list
(
def
get_allowed_cpu_
c
or
e
_node_list
(
cls
)
->
tuple
[
list
[
int
],
list
[
LogicalCPUInfo
]]:
cls
)
->
tuple
[
list
[
int
],
list
[
LogicalCPUInfo
]]:
assert
platform
.
system
()
==
"Linux"
assert
platform
.
system
()
==
"Linux"
...
...
vllm/v1/worker/cpu_worker.py
View file @
08d5f711
...
@@ -132,7 +132,7 @@ class CPUWorker(Worker):
...
@@ -132,7 +132,7 @@ class CPUWorker(Worker):
"""
"""
allowed_numa_nodes
,
logical_cpu_list
=
\
allowed_numa_nodes
,
logical_cpu_list
=
\
CpuPlatform
.
get_allowed_cpu_
mem
or
y
_node_list
()
CpuPlatform
.
get_allowed_cpu_
c
or
e
_node_list
()
assert
len
(
allowed_numa_nodes
)
>=
self
.
parallel_config
.
world_size
,
(
assert
len
(
allowed_numa_nodes
)
>=
self
.
parallel_config
.
world_size
,
(
f
"No enough allowed NUMA nodes to bind threads of "
f
"No enough allowed NUMA nodes to bind threads of "
f
"
{
self
.
parallel_config
.
world_size
}
CPUWorkers. "
f
"
{
self
.
parallel_config
.
world_size
}
CPUWorkers. "
...
...
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