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
0da4df4b
Unverified
Commit
0da4df4b
authored
Oct 07, 2024
by
Florian Zimmermeister
Committed by
GitHub
Oct 07, 2024
Browse files
Fix FP8 KV-cache condition (#2611)
Update kv_cache.py
parent
2358c2bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
server/text_generation_server/layers/attention/kv_cache.py
server/text_generation_server/layers/attention/kv_cache.py
+2
-2
No files found.
server/text_generation_server/layers/attention/kv_cache.py
View file @
0da4df4b
...
@@ -26,8 +26,8 @@ class KVCache:
...
@@ -26,8 +26,8 @@ class KVCache:
if
(
if
(
dtype
==
torch
.
float8_e5m2
dtype
==
torch
.
float8_e5m2
and
ATTENTION
!=
"flashinfer"
and
(
ATTENTION
!=
"flashinfer"
and
SYSTEM
!=
"cuda"
or
SYSTEM
!=
"cuda"
)
):
):
raise
ValueError
(
raise
ValueError
(
"float8_e5m2 KV cache is currently only supported for flashinfer on CUDA"
"float8_e5m2 KV cache is currently only supported for flashinfer on CUDA"
...
...
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