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
fe3462c7
Unverified
Commit
fe3462c7
authored
Apr 22, 2025
by
Yan Ma
Committed by
GitHub
Apr 22, 2025
Browse files
[XPU][Bugfix] minor fix for XPU (#15591)
Signed-off-by:
yan ma
<
yan.ma@intel.com
>
parent
3b34fd52
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
docs/source/getting_started/installation/gpu/xpu.inc.md
docs/source/getting_started/installation/gpu/xpu.inc.md
+2
-0
vllm/attention/backends/ipex_attn.py
vllm/attention/backends/ipex_attn.py
+6
-6
No files found.
docs/source/getting_started/installation/gpu/xpu.inc.md
View file @
fe3462c7
...
...
@@ -23,6 +23,8 @@ Currently, there are no pre-built XPU wheels.
-
Second, install Python packages for vLLM XPU backend building:
```
console
git clone https://github.com/vllm-project/vllm.git
cd vllm
pip install --upgrade pip
pip install -v -r requirements/xpu.txt
```
...
...
vllm/attention/backends/ipex_attn.py
View file @
fe3462c7
...
...
@@ -220,8 +220,8 @@ class IpexAttnBackendImpl(AttentionImpl[IpexAttnMetadata]):
value_cache
,
attn_metadata
.
slot_mapping
.
flatten
(),
self
.
kv_cache_dtype
,
layer
.
_k_scale
,
layer
.
_v_scale
,
layer
.
_k_scale
_float
,
layer
.
_v_scale
_float
,
)
if
attn_metadata
.
is_prompt
:
...
...
@@ -306,8 +306,8 @@ class IpexAttnBackendImpl(AttentionImpl[IpexAttnMetadata]):
max_seq_len
,
self
.
alibi_slopes
,
self
.
kv_cache_dtype
,
layer
.
_k_scale
,
layer
.
_v_scale
,
layer
.
_k_scale
_float
,
layer
.
_v_scale
_float
,
)
else
:
# Run PagedAttention V2.
...
...
@@ -339,8 +339,8 @@ class IpexAttnBackendImpl(AttentionImpl[IpexAttnMetadata]):
max_seq_len
,
self
.
alibi_slopes
,
self
.
kv_cache_dtype
,
layer
.
_k_scale
,
layer
.
_v_scale
,
layer
.
_k_scale
_float
,
layer
.
_v_scale
_float
,
)
# 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