Skip to content

Commit c8f3166

Browse files
committed
feat(lora) Add lora shrink & expand ops
Signed-off-by: chzhang <[email protected]>
1 parent 8a7400a commit c8f3166

15 files changed

+3083
-4
lines changed

CMakeLists.txt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,3 +231,27 @@ define_gpu_extension_target(
231231
INCLUDE_DIRECTORIES ${CUTLASS_TOOLS_UTIL_INCLUDE_DIR}
232232
USE_SABI 3
233233
WITH_SOABI)
234+
235+
#
236+
# _lora_C extension
237+
#
238+
239+
set(VLLM_LORA_EXT_SRC
240+
"csrc/lora/torch_bindings.cpp"
241+
"csrc/lora/lora_shrink.cpp"
242+
"csrc/lora/lora_expand.cpp"
243+
)
244+
245+
message(STATUS "Enabling lora extension.")
246+
define_gpu_extension_target(
247+
_lora_C
248+
DESTINATION vllm_xpu_kernels
249+
LANGUAGE ${VLLM_GPU_LANG}
250+
SOURCES ${VLLM_LORA_EXT_SRC}
251+
COMPILE_FLAGS ${VLLM_GPU_FLAGS}
252+
LINK_FLAGS ${VLLM_GPU_LINK_FLAGS}
253+
ARCHITECTURES ${VLLM_GPU_ARCHES}
254+
INCLUDE_DIRECTORIES ${CUTLASS_INCLUDE_DIR}
255+
INCLUDE_DIRECTORIES ${CUTLASS_TOOLS_UTIL_INCLUDE_DIR}
256+
USE_SABI 3
257+
WITH_SOABI)

0 commit comments

Comments
 (0)