I figured out how to update to 0.24.0.
Step 0/2: change pkgver; add 'python-cutlass' 'cutlass' 'cutlass-headers' 'python-cbor2' 'python-flashinfer' to depends=(...). Note: I can't test whether AUR package cutlass conflicts with non-AUR cutlass-headers because VLLM's qutlass doesn't support pre-Blackwell (so maybe *cutlass* packages should be in optdepends instead?).
Step 1/2: new prepare() {}:
prepare() {
cd $_pkgname
_gitRepo=$(awk '/FetchContent_Declare\(/,/\)/{if(/GIT_REPOSITORY/){print $2}}' cmake/external_projects/vllm_flash_attn.cmake)
_gitTag=$( awk '/FetchContent_Declare\(/,/\)/{if(/GIT_TAG/){print $2}}' cmake/external_projects/vllm_flash_attn.cmake)
mkdir .deps || rm -rf .deps/vllm-flash-attn-src
git clone --recurse-submodules "$_gitRepo" .deps/vllm-flash-attn-src
cd .deps/vllm-flash-attn-src
git checkout --recurse-submodules "$_gitTag"
patch -Np1 -i ${srcdir}/121.patch
}
Step 2/2: add
export VLLM_FLASH_ATTN_SRC_DIR="${srcdir}/${_pkgname}/.deps/vllm-flash-attn-src"
into build() {}
P.S. Since this is python-vllm-cuda, maybe change python-torchvision to python-torchvision-cuda, python-pytorch to python-pytorch-opt-cuda for those who don't have any *torch* packages installed yet? Or does pacman (like yay) asks which variant to choose anyway? Though, a user could be using --noconfirm and thus get the inferior variants.
Pinned Comments