Skip to content

Commit 752d2e1

Browse files
authored
[Minor] Fix some random typos in comments (#24009)
Signed-off-by: Nick Hill <[email protected]>
1 parent 81eea3d commit 752d2e1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

vllm/utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3290,7 +3290,7 @@ def sha256_cbor_64bit(input) -> int:
32903290
return full_hash & ((1 << 64) - 1)
32913291

32923292

3293-
def get_hash_fn_by_name(hash_fn_name: str) -> Callable:
3293+
def get_hash_fn_by_name(hash_fn_name: str) -> Callable[[Any], int]:
32943294
"""Get a hash function by name, or raise an error if
32953295
the function is not found.
32963296
Args:

vllm/v1/core/sched/scheduler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,7 @@ def _update_waiting_for_remote_kv(self, request: Request) -> bool:
12071207
# Now that the blocks are ready, actually cache them.
12081208
(block_ids, ) = self.kv_cache_manager.get_block_ids(request.request_id)
12091209
num_computed_tokens = len(block_ids) * self.block_size
1210-
# Handle the case where num request tokens less then one block.
1210+
# Handle the case where num request tokens less than one block.
12111211
num_computed_tokens = min(num_computed_tokens, request.num_tokens)
12121212
if num_computed_tokens == request.num_tokens:
12131213
num_computed_tokens -= 1

vllm/v1/core/single_type_kv_cache_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def __init__(
4747
# {req_id: The number of cached blocks for this given request}
4848
# This is used to track the number of cached blocks for each request.
4949
# This is only used to track the RUNNING requests, we do not track the
50-
# data for reempted ones.
50+
# data for preempted ones.
5151
self.num_cached_block: dict[str, int] = {}
5252

5353
self.kv_cache_group_id = kv_cache_group_id

0 commit comments

Comments
 (0)