fix: remove rename for local version

This commit is contained in:
Junya Morioka
2025-11-26 19:43:55 +09:00
parent ba2db41266
commit 28f8b7071d
2 changed files with 5 additions and 10 deletions
+1 -3
View File
@@ -49,7 +49,5 @@ echo "Building wheels..."
cd flash-attention cd flash-attention
LOCAL_VERSION_LABEL="cu${MATRIX_CUDA_VERSION}torch${MATRIX_TORCH_VERSION}" LOCAL_VERSION_LABEL="cu${MATRIX_CUDA_VERSION}torch${MATRIX_TORCH_VERSION}"
FLASH_ATTENTION_FORCE_BUILD=TRUE FLASH_ATTN_LOCAL_VERSION=${LOCAL_VERSION_LABEL} python setup.py bdist_wheel --dist-dir=dist FLASH_ATTENTION_FORCE_BUILD=TRUE FLASH_ATTN_LOCAL_VERSION=${LOCAL_VERSION_LABEL} python setup.py bdist_wheel --dist-dir=dist
base_wheel_name=$(basename $(ls dist/*.whl | head -n 1)) wheel_name=$(basename $(ls dist/*.whl | head -n 1))
wheel_name=$(echo $base_wheel_name | sed "s/$FLASH_ATTN_VERSION/$FLASH_ATTN_VERSION+cu${MATRIX_CUDA_VERSION}torch${MATRIX_TORCH_VERSION}/")
mv -v dist/$base_wheel_name dist/$wheel_name
echo "Built wheel: $wheel_name" echo "Built wheel: $wheel_name"
+4 -7
View File
@@ -1,13 +1,13 @@
param( param(
[Parameter(Mandatory=$true)] [Parameter(Mandatory=$true)]
[string]$FlashAttnVersion, [string]$FlashAttnVersion,
[Parameter(Mandatory=$true)] [Parameter(Mandatory=$true)]
[string]$PythonVersion, [string]$PythonVersion,
[Parameter(Mandatory=$true)] [Parameter(Mandatory=$true)]
[string]$TorchVersion, [string]$TorchVersion,
[Parameter(Mandatory=$true)] [Parameter(Mandatory=$true)]
[string]$CudaVersion [string]$CudaVersion
) )
@@ -72,8 +72,5 @@ $env:FLASH_ATTN_LOCAL_VERSION = "cu$MatrixCudaVersion" + "torch$MatrixTorchVersi
cd flash-attention cd flash-attention
python setup.py bdist_wheel --dist-dir=dist python setup.py bdist_wheel --dist-dir=dist
$baseWheelName = Get-ChildItem -Path "dist\*.whl" | Select-Object -First 1 | ForEach-Object { $_.Name } $WheelName = Get-ChildItem -Path "dist\*.whl" | Select-Object -First 1 | ForEach-Object { $_.Name }
$wheelName = $baseWheelName.Replace($FlashAttnVersion, "$FlashAttnVersion+cu$MatrixCudaVersion" + "torch$MatrixTorchVersion")
Move-Item "dist\$baseWheelName" "dist\$wheelName"
Write-Host "Built wheel: $wheelName" Write-Host "Built wheel: $wheelName"
cd ..