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
cbcbdb1c
Unverified
Commit
cbcbdb1c
authored
Dec 09, 2024
by
Konrad Zawora
Committed by
GitHub
Dec 09, 2024
Browse files
[Bugfix][Hardware][Gaudi] Bump vllm_hpu_extension version (#11028)
Signed-off-by:
Konrad Zawora
<
kzawora@habana.ai
>
parent
a811dd66
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
requirements-hpu.txt
requirements-hpu.txt
+1
-1
vllm/attention/backends/hpu_attn.py
vllm/attention/backends/hpu_attn.py
+11
-0
No files found.
requirements-hpu.txt
View file @
cbcbdb1c
...
@@ -8,4 +8,4 @@ pandas
...
@@ -8,4 +8,4 @@ pandas
tabulate
tabulate
setuptools>=61
setuptools>=61
setuptools-scm>=8
setuptools-scm>=8
vllm-hpu-extension @ git+https://github.com/HabanaAI/vllm-hpu-extension.git@
fd7f2e6
vllm-hpu-extension @ git+https://github.com/HabanaAI/vllm-hpu-extension.git@
e096d6f
vllm/attention/backends/hpu_attn.py
View file @
cbcbdb1c
...
@@ -111,8 +111,16 @@ class HPUAttentionImpl(AttentionImpl, torch.nn.Module):
...
@@ -111,8 +111,16 @@ class HPUAttentionImpl(AttentionImpl, torch.nn.Module):
self
.
matmul_qk
=
Matmul
()
self
.
matmul_qk
=
Matmul
()
self
.
softmax
=
Softmax
()
self
.
softmax
=
Softmax
()
self
.
matmul_av
=
Matmul
()
self
.
matmul_av
=
Matmul
()
self
.
batch2block_matmul
=
Matmul
()
self
.
block2batch_matmul
=
Matmul
()
# NOTE(kzawora): Contiguous PA is off until model runner supports it
self
.
k_cache
=
VLLMKVCache
()
self
.
k_cache
=
VLLMKVCache
()
self
.
k_cache
.
use_contiguous_pa
=
False
self
.
v_cache
=
VLLMKVCache
()
self
.
v_cache
=
VLLMKVCache
()
self
.
v_cache
.
use_contiguous_pa
=
False
# NOTE(kzawora): Pipelined PA is off until model runner supports it
ops
.
pa_impl
=
ops
.
pa
self
.
num_kv_heads
=
num_heads
if
num_kv_heads
is
None
else
num_kv_heads
self
.
num_kv_heads
=
num_heads
if
num_kv_heads
is
None
else
num_kv_heads
self
.
sliding_window
=
sliding_window
self
.
sliding_window
=
sliding_window
self
.
alibi_slopes
=
alibi_slopes
self
.
alibi_slopes
=
alibi_slopes
...
@@ -228,9 +236,12 @@ class HPUAttentionImpl(AttentionImpl, torch.nn.Module):
...
@@ -228,9 +236,12 @@ class HPUAttentionImpl(AttentionImpl, torch.nn.Module):
block_mapping
=
attn_metadata
.
block_mapping
,
block_mapping
=
attn_metadata
.
block_mapping
,
block_bias
=
attn_metadata
.
attn_bias
,
block_bias
=
attn_metadata
.
attn_bias
,
block_scales
=
attn_metadata
.
block_scales
,
block_scales
=
attn_metadata
.
block_scales
,
block_groups
=
None
,
scale
=
self
.
scale
,
scale
=
self
.
scale
,
matmul_qk_op
=
self
.
matmul_qk
,
matmul_qk_op
=
self
.
matmul_qk
,
matmul_av_op
=
self
.
matmul_av
,
matmul_av_op
=
self
.
matmul_av
,
batch2block_matmul_op
=
self
.
batch2block_matmul
,
block2batch_matmul_op
=
self
.
block2batch_matmul
,
keys_fetch_func
=
self
.
k_cache
.
fetch_from_cache
,
keys_fetch_func
=
self
.
k_cache
.
fetch_from_cache
,
values_fetch_func
=
self
.
v_cache
.
fetch_from_cache
)
values_fetch_func
=
self
.
v_cache
.
fetch_from_cache
)
# Reshape the output tensor.
# Reshape the output tensor.
...
...
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