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
64b77dfd
Unverified
Commit
64b77dfd
authored
May 10, 2024
by
Kunshang Ji
Committed by
GitHub
May 10, 2024
Browse files
[Core]fix type annotation for `swap_blocks` (#4726)
parent
51d4094f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vllm/_custom_ops.py
vllm/_custom_ops.py
+2
-2
No files found.
vllm/_custom_ops.py
View file @
64b77dfd
from
typing
import
Dict
,
Optional
,
Tuple
from
typing
import
Optional
,
Tuple
import
torch
...
...
@@ -266,7 +266,7 @@ def copy_blocks(key_caches: torch.Tensor, value_caches: torch.Tensor,
def
swap_blocks
(
src
:
torch
.
Tensor
,
dst
:
torch
.
Tensor
,
block_mapping
:
Dict
[
int
,
int
]
)
->
None
:
block_mapping
:
torch
.
Tensor
)
->
None
:
vllm_cache_ops
.
swap_blocks
(
src
,
dst
,
block_mapping
)
...
...
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