Skip to content

Commit 6450d72

Browse files
author
Weichao Luo
committed
lint.
1 parent d8cf4de commit 6450d72

3 files changed

Lines changed: 17 additions & 4 deletions

File tree

lightllm/server/api_start.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def normal_or_p_d_start(args):
9494

9595
if args.graph_max_len_in_batch == 0:
9696
args.graph_max_len_in_batch = args.max_req_total_len
97-
97+
9898
# mode setting check.
9999
if args.output_constraint_mode != "none":
100100
assert args.disable_dynamic_prompt_cache is False
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
from .group_req import GroupReqIndexes, GroupReqObjs, AbortedReqCmd, StopStrMatchedReqCmd, NIXLRemotePrefillDoneCmd, ReqCmd
1+
from .group_req import (
2+
GroupReqIndexes,
3+
GroupReqObjs,
4+
AbortedReqCmd,
5+
StopStrMatchedReqCmd,
6+
NIXLRemotePrefillDoneCmd,
7+
ReqCmd,
8+
)

lightllm/server/router/manager.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@
1515
from .batch import Batch, Req
1616
from .model_infer.model_rpc import start_model_process, ModelRpcClient
1717
from .req_queue import build_req_queue
18-
from lightllm.server.core.objs.io_objs import GroupReqIndexes, AbortedReqCmd, StopStrMatchedReqCmd, NIXLRemotePrefillDoneCmd, ReqCmd
18+
from lightllm.server.core.objs.io_objs import (
19+
GroupReqIndexes,
20+
AbortedReqCmd,
21+
StopStrMatchedReqCmd,
22+
NIXLRemotePrefillDoneCmd,
23+
ReqCmd,
24+
)
1925
from lightllm.server.core.objs import ShmReqManager, StartArgs, PDNIXLChunkedPrefillReq
2026
from .dynamic_prompt.radix_cache import RadixCacheReadOnlyClient
2127
from .shm_reqs_io_buffer import ShmReqsIOBuffer
@@ -334,7 +340,7 @@ async def _step(self):
334340
if stop_str_matched_reqs:
335341
filter_cmds.extend([StopStrMatchedReqCmd(req_id=r.request_id) for r in stop_str_matched_reqs])
336342

337-
if self.args.run_mode == 'nixl_decode':
343+
if self.args.run_mode == "nixl_decode":
338344
remote_prefill_done_reqs = self._get_nixl_rpd_reqs_from_running_batch()
339345
if remote_prefill_done_reqs:
340346
filter_cmds.extend([NIXLRemotePrefillDoneCmd(req_id=r.request_id) for r in remote_prefill_done_reqs])

0 commit comments

Comments
 (0)