Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
text-generation-inference
Commits
aac64dda
Commit
aac64dda
authored
May 22, 2024
by
huangwb
Browse files
fix cache_ops.reshape_and_cache param type compatible issue
parent
d6af14b2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
server/text_generation_server/utils/paged_attention.py
server/text_generation_server/utils/paged_attention.py
+2
-1
No files found.
server/text_generation_server/utils/paged_attention.py
View file @
aac64dda
...
...
@@ -27,7 +27,8 @@ def reshape_and_cache(
elif
IS_ROCM_SYSTEM
:
from
vllm
import
cache_ops
cache_ops
.
reshape_and_cache
(
key
,
value
,
key_cache
,
value_cache
,
slots
)
# cache_ops.reshape_and_cache(key, value, key_cache, value_cache, slots)
cache_ops
.
reshape_and_cache
(
key
,
value
,
key_cache
,
value_cache
,
slots
.
int
())
elif
IS_XPU_SYSTEM
:
ipex
.
llm
.
modules
.
PagedAttention
.
reshape_and_cache
(
key
,
value
,
key_cache
,
value_cache
,
slots
...
...
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