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
378b3ef6
Unverified
Commit
378b3ef6
authored
Feb 26, 2025
by
Sage Moore
Committed by
GitHub
Feb 26, 2025
Browse files
[ROCm][V1] Update reshape_and_cache to properly work with CUDA graph padding (#13922)
parent
c9944acb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
csrc/cache_kernels.cu
csrc/cache_kernels.cu
+1
-1
No files found.
csrc/cache_kernels.cu
View file @
378b3ef6
...
...
@@ -375,7 +375,7 @@ void reshape_and_cache(
torch
::
Tensor
&
slot_mapping
,
// [num_tokens]
const
std
::
string
&
kv_cache_dtype
,
torch
::
Tensor
&
k_scale
,
torch
::
Tensor
&
v_scale
)
{
int
num_tokens
=
key
.
size
(
0
);
int
num_tokens
=
slot_mapping
.
size
(
0
);
int
num_heads
=
key
.
size
(
1
);
int
head_size
=
key
.
size
(
2
);
int
block_size
=
key_cache
.
size
(
3
);
...
...
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