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
dbbe0c75
Unverified
Commit
dbbe0c75
authored
Nov 13, 2025
by
Fanli Lin
Committed by
GitHub
Nov 13, 2025
Browse files
[XPU] Support Triton path for LoRA operations on XPU (#28511)
Signed-off-by:
Fanli Lin
<
fanli.lin@intel.com
>
parent
7dca0c90
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
vllm/lora/ops/triton_ops/lora_expand_op.py
vllm/lora/ops/triton_ops/lora_expand_op.py
+1
-0
vllm/lora/ops/triton_ops/lora_shrink_op.py
vllm/lora/ops/triton_ops/lora_shrink_op.py
+1
-0
vllm/platforms/xpu.py
vllm/platforms/xpu.py
+5
-1
No files found.
vllm/lora/ops/triton_ops/lora_expand_op.py
View file @
dbbe0c75
...
...
@@ -48,6 +48,7 @@ def _lora_expand_kernel(
SLICE_NUM
:
tl
.
constexpr
,
SAME_STRIDE
:
tl
.
constexpr
,
USE_GDC
:
tl
.
constexpr
,
launch_pdl
:
tl
.
constexpr
,
):
cta_n_num
=
tl
.
cdiv
(
N
,
BLOCK_N
)
cta_m_num
=
tl
.
cdiv
(
M
,
BLOCK_M
)
...
...
vllm/lora/ops/triton_ops/lora_shrink_op.py
View file @
dbbe0c75
...
...
@@ -46,6 +46,7 @@ def _lora_shrink_kernel(
GROUP_SIZE_M
:
tl
.
constexpr
,
SLICE_NUM
:
tl
.
constexpr
,
USE_GDC
:
tl
.
constexpr
,
launch_pdl
:
tl
.
constexpr
,
):
cta_n_num
=
tl
.
cdiv
(
N
,
BLOCK_N
)
cta_m_num
=
tl
.
cdiv
(
M
,
BLOCK_M
)
...
...
vllm/platforms/xpu.py
View file @
dbbe0c75
...
...
@@ -101,7 +101,11 @@ class XPUPlatform(Platform):
@
classmethod
def
get_punica_wrapper
(
cls
)
->
str
:
return
"vllm.lora.punica_wrapper.punica_xpu.PunicaWrapperXPU"
xpu_use_triton_kernel
=
os
.
getenv
(
"XPU_USE_TRITON_KERNEL"
,
"0"
)
==
"1"
if
not
xpu_use_triton_kernel
:
return
"vllm.lora.punica_wrapper.punica_xpu.PunicaWrapperXPU"
else
:
return
"vllm.lora.punica_wrapper.punica_gpu.PunicaWrapperGPU"
@
classmethod
def
get_device_total_memory
(
cls
,
device_id
:
int
=
0
)
->
int
:
...
...
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