[Kimi-K3] Migrate FlashKDA to PyTorch stable ABI (#50818)

Signed-off-by: Thien Tran <gau.nernst@yahoo.com.sg>
Co-authored-by: Shengqi Chen <harry-chen@outlook.com>
This commit is contained in:
Thien Tran
2026-08-03 17:18:08 -07:00
committed by GitHub
co-authored by Shengqi Chen
parent 41ba11b841
commit 11f88260a2
3 changed files with 19 additions and 7 deletions
+7 -1
View File
@@ -13,7 +13,7 @@ else()
FetchContent_Declare(
flashkda
GIT_REPOSITORY https://github.com/vllm-project/FlashKDA.git
GIT_TAG a3e42bbbece3bb38f7c426b880315294a336e82f
GIT_TAG b5d11010ff01c1d4a683c0dde42e76cbeaa8107f
GIT_PROGRESS TRUE
GIT_SUBMODULES cutlass
)
@@ -63,6 +63,12 @@ if(FLASH_KDA_ARCHS)
USE_SABI 3
WITH_SOABI)
target_compile_definitions(_flashkda_C PRIVATE
TORCH_TARGET_VERSION=0x020B000000000000ULL)
if(VLLM_GPU_LANG STREQUAL "CUDA")
target_compile_definitions(_flashkda_C PRIVATE USE_CUDA)
endif()
target_compile_options(_flashkda_C PRIVATE
$<$<COMPILE_LANGUAGE:CUDA>:-UPy_LIMITED_API --expt-relaxed-constexpr --expt-extended-lambda --use_fast_math -O3>
$<$<COMPILE_LANGUAGE:CXX>:-UPy_LIMITED_API>)