[Misc] refactor function name (#23029)
Signed-off-by: Andy Xie <andy.xning@gmail.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
@@ -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. "
|
||||
|
||||
Reference in New Issue
Block a user