Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
752d2e1c
Unverified
Commit
752d2e1c
authored
Aug 31, 2025
by
Nick Hill
Committed by
GitHub
Aug 31, 2025
Browse files
[Minor] Fix some random typos in comments (#24009)
Signed-off-by:
Nick Hill
<
nhill@redhat.com
>
parent
81eea3d3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
vllm/utils/__init__.py
vllm/utils/__init__.py
+1
-1
vllm/v1/core/sched/scheduler.py
vllm/v1/core/sched/scheduler.py
+1
-1
vllm/v1/core/single_type_kv_cache_manager.py
vllm/v1/core/single_type_kv_cache_manager.py
+1
-1
No files found.
vllm/utils/__init__.py
View file @
752d2e1c
...
...
@@ -3290,7 +3290,7 @@ def sha256_cbor_64bit(input) -> int:
return
full_hash
&
((
1
<<
64
)
-
1
)
def
get_hash_fn_by_name
(
hash_fn_name
:
str
)
->
Callable
:
def
get_hash_fn_by_name
(
hash_fn_name
:
str
)
->
Callable
[[
Any
],
int
]
:
"""Get a hash function by name, or raise an error if
the function is not found.
Args:
...
...
vllm/v1/core/sched/scheduler.py
View file @
752d2e1c
...
...
@@ -1207,7 +1207,7 @@ class Scheduler(SchedulerInterface):
# Now that the blocks are ready, actually cache them.
(
block_ids
,
)
=
self
.
kv_cache_manager
.
get_block_ids
(
request
.
request_id
)
num_computed_tokens
=
len
(
block_ids
)
*
self
.
block_size
# Handle the case where num request tokens less th
e
n one block.
# Handle the case where num request tokens less th
a
n one block.
num_computed_tokens
=
min
(
num_computed_tokens
,
request
.
num_tokens
)
if
num_computed_tokens
==
request
.
num_tokens
:
num_computed_tokens
-=
1
...
...
vllm/v1/core/single_type_kv_cache_manager.py
View file @
752d2e1c
...
...
@@ -47,7 +47,7 @@ class SingleTypeKVCacheManager(ABC):
# {req_id: The number of cached blocks for this given request}
# This is used to track the number of cached blocks for each request.
# This is only used to track the RUNNING requests, we do not track the
# data for reempted ones.
# data for
p
reempted ones.
self
.
num_cached_block
:
dict
[
str
,
int
]
=
{}
self
.
kv_cache_group_id
=
kv_cache_group_id
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment