[Misc] refactor function name (#23029)

Signed-off-by: Andy Xie <andy.xning@gmail.com>
This commit is contained in:
Ning Xie 2025-08-18 13:16:21 +08:00 committed by GitHub
parent b2fd0b81e0
commit 08d5f7113a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -268,7 +268,7 @@ class CpuPlatform(Platform):
DEFAULT_MAX_NUM_BATCHED_TOKENS)
@classmethod
def get_allowed_cpu_memory_node_list(
def get_allowed_cpu_core_node_list(
cls) -> tuple[list[int], list[LogicalCPUInfo]]:
assert platform.system() == "Linux"

View File

@ -132,7 +132,7 @@ class CPUWorker(Worker):
"""
allowed_numa_nodes, logical_cpu_list = \
CpuPlatform.get_allowed_cpu_memory_node_list()
CpuPlatform.get_allowed_cpu_core_node_list()
assert len(allowed_numa_nodes) >= self.parallel_config.world_size, (
f"No enough allowed NUMA nodes to bind threads of "
f"{self.parallel_config.world_size} CPUWorkers. "