Add typo checker in pre-commit (#6179)
Co-authored-by: Brayden Zhong <b8zhong@uwaterloo.ca>
This commit is contained in:
@@ -509,7 +509,7 @@ class SchedulerDisaggregationDecodeMixin:
|
||||
def event_loop_overlap_disagg_decode(self: Scheduler):
|
||||
result_queue = deque()
|
||||
self.last_batch: Optional[ScheduleBatch] = None
|
||||
self.last_batch_in_queue = False # last batch is modifed in-place, so we need another variable to track if it's extend
|
||||
self.last_batch_in_queue = False # last batch is modified in-place, so we need another variable to track if it's extend
|
||||
|
||||
while True:
|
||||
recv_reqs = self.recv_requests()
|
||||
|
||||
@@ -54,7 +54,7 @@ class FakeKVSender(BaseKVSender):
|
||||
logger.info(f"FakeKVSender send success")
|
||||
else:
|
||||
self.has_sent = False
|
||||
logger.info(f"FakeKVSender send fake transfering")
|
||||
logger.info(f"FakeKVSender send fake transferring")
|
||||
|
||||
def failure_exception(self):
|
||||
raise Exception("Fake KVSender Exception")
|
||||
|
||||
@@ -363,7 +363,7 @@ class MooncakeKVManager(BaseKVManager):
|
||||
self.request_status[bootstrap_room] = KVPoll.WaitingForInput
|
||||
|
||||
def check_status(self, bootstrap_room: int):
|
||||
# TOOD: do we really need the poll()?
|
||||
# TODO: do we really need the poll()?
|
||||
|
||||
return self.request_status[bootstrap_room]
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@ def get_kv_class(transfer_backend: TransferBackend, class_type: KVClassType):
|
||||
|
||||
|
||||
def kv_to_page_indices(kv_indices: np.ndarray, page_size: int):
|
||||
# 1. The page is guaruanteed to be full except the last page.
|
||||
# 1. The page is guaranteed to be full except the last page.
|
||||
# 2. page index = kv_index // page_size
|
||||
# The return vector is kv_indices[::page_size] // page_size
|
||||
if page_size == 1: # shortcut
|
||||
|
||||
Reference in New Issue
Block a user