Skip to content

Commit 9f8ddee

Browse files
author
ZihuiQian
committed
fix import sorting issue
Signed-off-by: ZihuiQian <qianzihui@huawei.com>
1 parent 2ebff12 commit 9f8ddee

File tree

3 files changed

+7
-15
lines changed

3 files changed

+7
-15
lines changed

examples/offline_disaggregated_prefill_npu.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@
1616
# See the License for the specific language governing permissions and
1717
# limitations under the License.
1818
#
19+
import multiprocessing as mp
1920
import os
2021
import time
21-
2222
from multiprocessing import Event, Process
23-
import multiprocessing as mp
2423

2524

2625
def clean_up():

vllm_ascend/distributed/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from vllm.distributed.kv_transfer.kv_connector.factory import KVConnectorFactory
1+
from vllm.distributed.kv_transfer.kv_connector.factory import \
2+
KVConnectorFactory
23

34
KVConnectorFactory.register_connector(
45
"AscendHcclConnector", "vllm_ascend.distributed.llmdatadist_connector",

vllm_ascend/distributed/llmdatadist_connector.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,14 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#
17-
import re
1817
import os
18+
import re
1919
import subprocess
2020
from typing import TYPE_CHECKING, List, Tuple, Union
2121

2222
import torch
23-
import torchair
2423
import torch_npu
25-
24+
import torchair
2625
from vllm.config import VllmConfig
2726
from vllm.distributed.kv_transfer.kv_connector.base import KVConnectorBase
2827
from vllm.logger import init_logger
@@ -31,15 +30,8 @@
3130
if TYPE_CHECKING:
3231
from vllm.worker.model_runner import ModelInputForGPUWithSamplingMetadata
3332

34-
from llm_datadist import (
35-
CacheDesc,
36-
CacheKey,
37-
CacheKeyByIdAndIndex,
38-
DataType,
39-
LLMClusterInfo,
40-
LLMDataDist,
41-
LLMRole,
42-
)
33+
from llm_datadist import (CacheDesc, CacheKey, CacheKeyByIdAndIndex, DataType,
34+
LLMClusterInfo, LLMDataDist, LLMRole)
4335

4436
logger = init_logger(__name__)
4537

0 commit comments

Comments
 (0)