Skip to content

Commit

Permalink
pt25-cu121 & remove flash-attn
Browse files Browse the repository at this point in the history
  • Loading branch information
YanWenKun committed Dec 19, 2024
1 parent 178192e commit 0829ba9
Show file tree
Hide file tree
Showing 9 changed files with 51 additions and 9 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build-pt25-cu121.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: "Build & Upload pt25-cu121 Package"

on:
workflow_dispatch:

jobs:
build_upload:
permissions:
contents: "write"
packages: "write"
pull-requests: "read"
runs-on: windows-latest
steps:
- uses: actions/checkout@v4

- name: Stage 1 Gathering Dependencies
shell: bash
working-directory: pt25-cu121
run: bash stage1.sh

- name: Stage 2 Assembling Repositories
shell: bash
working-directory: pt25-cu121
run: bash stage2.sh

- name: Stage 3 Compressing Package
shell: bash
working-directory: pt25-cu121
run: bash stage3.sh

- name: Upload archive to release
uses: xresloader/upload-to-github-release@v1
env:
# You don't need to configure this token. It'll be auto-set when GitHub Actions start.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "pt25-cu121/Comfy3D_WinPortable.7z*"
# Always draft before release.
draft: true
overwrite: true
2 changes: 1 addition & 1 deletion pt25-cu121/attachments/reinstall-deps-for-3d.bat
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ set PATH=%PATH%;%~dp0\python_embeded\Scripts
set CMAKE_ARGS=-DBUILD_opencv_world=ON -DWITH_CUDA=ON -DCUDA_FAST_MATH=ON -DWITH_CUBLAS=ON -DWITH_NVCUVID=ON

.\python_embeded\python.exe -s -m pip install --force-reinstall ^
spconv-cu124
spconv-cu121

if not exist ".\tmp_build" mkdir tmp_build

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ set PATH=%PATH%;%~dp0\python_embeded\Scripts
set CMAKE_ARGS=-DBUILD_opencv_world=ON -DWITH_CUDA=ON -DCUDA_FAST_MATH=ON -DWITH_CUBLAS=ON -DWITH_NVCUVID=ON

.\python_embeded\python.exe -s -m pip install --force-reinstall ^
spconv-cu124
spconv-cu121

if not exist ".\tmp_build" mkdir tmp_build

Expand Down
2 changes: 1 addition & 1 deletion pt25-cu121/requirements3.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--index-url https://download.pytorch.org/whl/cu124
--index-url https://download.pytorch.org/whl/cu121
--extra-index-url https://pypi.org/simple
xformers==0.0.28.post3
torch==2.5.1
Expand Down
2 changes: 1 addition & 1 deletion pt25-cu121/requirements4.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ scipy
sentencepiece
soundfile
spandrel
spconv-cu124
spconv-cu121
timm
tokenizers
torchmetrics
Expand Down
4 changes: 3 additions & 1 deletion pt25-cu121/requirements8.txt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
https://huggingface.co/lldacing/flash-attention-windows-wheel/resolve/main/flash_attn-2.7.0.post2%2Bcu124torch2.5.1cxx11abiFALSE-cp312-cp312-win_amd64.whl
# not found binary for flash-attention-windows cu121 pt251

#https://huggingface.co/lldacing/flash-attention-windows-wheel/resolve/main/flash_attn-2.7.0.post2%2Bcu124torch2.5.1cxx11abiFALSE-cp312-cp312-win_amd64.whl
2 changes: 1 addition & 1 deletion pt25-cu121/requirements9.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# https://pip.pypa.io/en/stable/reference/requirements-file-format/
# https://github.com/rusty1s/pytorch_scatter?tab=readme-ov-file#binaries
--find-links https://data.pyg.org/whl/torch-2.5.1%2Bcu124.html
--find-links https://data.pyg.org/whl/torch-2.5.1%2Bcu121.html
torch-scatter
2 changes: 1 addition & 1 deletion pt25-cu121/requirementsA.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
--find-links https://nvidia-kaolin.s3.us-east-2.amazonaws.com/torch-2.5.1_cu124.html
--find-links https://nvidia-kaolin.s3.us-east-2.amazonaws.com/torch-2.5.1_cu121.html
kaolin
4 changes: 2 additions & 2 deletions pt25-cu121/stage1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ $pip_exe install -r "$workdir"/requirements4.txt
$pip_exe install -r "$workdir"/requirements5.txt
$pip_exe install -r "$workdir"/requirements6.txt

rm "$workdir"/Comfy3D_Pre_Builds/_Build_Wheels/_Wheels_win_py312_torch2.5.1_cu124/torch_scatter-2.1.2-cp312-cp312-win_amd64.whl
$pip_exe install "$workdir"/Comfy3D_Pre_Builds/_Build_Wheels/_Wheels_win_py312_torch2.5.1_cu124/*.whl
rm "$workdir"/Comfy3D_Pre_Builds/_Build_Wheels/_Wheels_win_py312_torch2.5.0_cu121/torch_scatter-2.1.2-cp312-cp312-win_amd64.whl
$pip_exe install "$workdir"/Comfy3D_Pre_Builds/_Build_Wheels/_Wheels_win_py312_torch2.5.0_cu121/*.whl

$pip_exe install -r "$workdir"/requirements8.txt
$pip_exe install -r "$workdir"/requirements9.txt
Expand Down

0 comments on commit 0829ba9

Please sign in to comment.