Skip to content

Commit 9fb95d1

Browse files
committed
reformat
1 parent f7bf076 commit 9fb95d1

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

lightllm/models/deepseek_mtp/deepseek3_mtp_mem_manager.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,10 @@ def __init__(self, size, dtype, head_num, head_dim, layer_num, always_copy=False
2727
self.can_use_mem_size = self.size
2828

2929
rank_in_node = get_current_rank_in_node()
30-
self.shared_can_use_token_num = SharedInt(
31-
f"MTP_mem_manger_can_use_token_num_{rank_in_node}"
32-
)
30+
self.shared_can_use_token_num = SharedInt(f"MTP_mem_manger_can_use_token_num_{rank_in_node}")
3331

3432
self.shared_can_use_token_num.set_value(self.can_use_mem_size)
35-
33+
3634
self._init_buffers(
3735
self.size,
3836
dtype,
@@ -41,4 +39,3 @@ def __init__(self, size, dtype, head_num, head_dim, layer_num, always_copy=False
4139
layer_num,
4240
)
4341
self.HOLD_TOKEN_MEMINDEX = self.size
44-

lightllm/server/router/model_infer/mode_backend/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
from .chunked_prefill.impl_for_xgrammar_mode import XgrammarBackend
1313
from .continues_batch.pd_mode.prefill_node_impl.prefill_impl_for_dp_chuncked import DPChunkedForPrefillNode
1414
from .continues_batch.pd_mode.decode_node_impl.decode_impl_for_dp import DPForDecodeNode
15-
from .continues_batch.impl_mtp import ContinuesBatchWithMTPBackend
15+
from .continues_batch.impl_mtp import ContinuesBatchWithMTPBackend

lightllm/server/router/model_infer/model_rpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
DPForDecodeNode,
2222
ChunckedPrefillForPrefillNode,
2323
DPChunkedForPrefillNode,
24-
ContinuesBatchWithMTPBackend
24+
ContinuesBatchWithMTPBackend,
2525
)
2626
from lightllm.server.core.objs import RpcShmParams, RpcShmResults, ShmSyncStatusArray
2727
from lightllm.utils.log_utils import init_logger

0 commit comments

Comments
 (0)