Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
74b0104c
Commit
74b0104c
authored
Mar 16, 2023
by
comfyanonymous
Browse files
Test github workflow for standalone build with cu118 torch+xformers.
parent
7dd6fc9f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
85 additions
and
4 deletions
+85
-4
.ci/update_windows_cu118/update_comfyui_and_python_dependencies.bat
..._windows_cu118/update_comfyui_and_python_dependencies.bat
+3
-0
.ci/windows_base_files/README_VERY_IMPORTANT.txt
.ci/windows_base_files/README_VERY_IMPORTANT.txt
+1
-1
.github/workflows/windows_release_cu118.yml
.github/workflows/windows_release_cu118.yml
+81
-3
No files found.
.ci/update_windows_cu118/update_comfyui_and_python_dependencies.bat
0 → 100755
View file @
74b0104c
..\python_embeded\python.exe .\update.py ..\ComfyUI\
..\python_embeded\python.exe
-s -m
pip
install
--upgrade
torch
torchvision
torchaudio
--extra-index-url
https
://download.pytorch.org/whl/cu118
xformers
-r
../ComfyUI/requirements.txt
pygit2
pause
.ci/windows_base_files/README_VERY_IMPORTANT.txt
View file @
74b0104c
...
@@ -22,6 +22,6 @@ To update the ComfyUI code: update\update_comfyui.bat
...
@@ -22,6 +22,6 @@ To update the ComfyUI code: update\update_comfyui.bat
To update ComfyUI with the python dependencies
:
To update ComfyUI with the python dependencies
, note that you should ONLY run this if you have issues with python dependencies.
update\update_comfyui_and_python_dependencies.bat
update\update_comfyui_and_python_dependencies.bat
.github/workflows/windows_release_cu118.yml
View file @
74b0104c
...
@@ -7,17 +7,94 @@ on:
...
@@ -7,17 +7,94 @@ on:
# - master
# - master
jobs
:
jobs
:
build
:
build_dependencies
:
env
:
# you need at least cuda 5.0 for some of the stuff compiled here.
TORCH_CUDA_ARCH_LIST
:
"
5.0+PTX
6.0
6.1
7.0
7.5
8.0
8.6
8.9"
FORCE_CUDA
:
1
MAX_JOBS
:
1
# will crash otherwise
DISTUTILS_USE_SDK
:
1
# otherwise distutils will complain on windows about multiple versions of msvc
XFORMERS_BUILD_TYPE
:
"
Release"
runs-on
:
windows-latest
steps
:
-
name
:
Cache Built Dependencies
uses
:
actions/cache@v3
id
:
cache-cu118_python_stuff
with
:
path
:
cu118_python_deps.tar
key
:
${{ runner.os }}-build-cu118
-
if
:
${{ steps.cache-cu118_python_stuff.cache-hit != 'true' }}
uses
:
actions/checkout@v3
-
if
:
${{ steps.cache-cu118_python_stuff.cache-hit != 'true' }}
uses
:
actions/setup-python@v4
with
:
python-version
:
'
3.10.9'
-
if
:
${{ steps.cache-cu118_python_stuff.cache-hit != 'true' }}
uses
:
comfyanonymous/cuda-toolkit@test
id
:
cuda-toolkit
with
:
cuda
:
'
11.8.0'
# copied from xformers github
-
name
:
Setup MSVC
uses
:
ilammy/msvc-dev-cmd@v1
-
name
:
Configure Pagefile
# windows runners will OOM with many CUDA architectures
# we cheat here with a page file
uses
:
al-cheb/configure-pagefile-action@v1.3
with
:
minimum-size
:
2GB
# really unfortunate: https://github.com/ilammy/msvc-dev-cmd#name-conflicts-with-shell-bash
-
name
:
Remove link.exe
shell
:
bash
run
:
rm /usr/bin/link
-
if
:
${{ steps.cache-cu118_python_stuff.cache-hit != 'true' }}
shell
:
bash
run
:
|
python -m pip wheel --no-cache-dir torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu118 -r requirements.txt pygit2 -w ./temp_wheel_dir
python -m pip install --no-cache-dir ./temp_wheel_dir/*
echo installed basic
git clone --recurse-submodules https://github.com/facebookresearch/xformers.git
cd xformers
python -m pip install --no-cache-dir wheel setuptools twine
echo building xformers
python setup.py bdist_wheel -d ../temp_wheel_dir/
cd ..
rm -rf xformers
ls -lah temp_wheel_dir
mv temp_wheel_dir cu118_python_deps
tar cf cu118_python_deps.tar cu118_python_deps
-
uses
:
actions/upload-artifact@v3
with
:
name
:
cu118_python_deps
path
:
cu118_python_deps.tar
package_comfyui
:
needs
:
build_dependencies
permissions
:
permissions
:
contents
:
"
write"
contents
:
"
write"
packages
:
"
write"
packages
:
"
write"
pull-requests
:
"
read"
pull-requests
:
"
read"
runs-on
:
windows-latest
runs-on
:
windows-latest
steps
:
steps
:
-
uses
:
actions/download-artifact@v3
with
:
name
:
cu118_python_deps
-
shell
:
bash
run
:
|
mv cu118_python_deps.tar ../
cd ..
tar xf cu118_python_deps.tar
pwd
ls
-
uses
:
actions/checkout@v3
-
uses
:
actions/checkout@v3
with
:
with
:
fetch-depth
:
0
fetch-depth
:
0
-
shell
:
bash
-
shell
:
bash
run
:
|
run
:
|
cd ..
cd ..
...
@@ -28,7 +105,7 @@ jobs:
...
@@ -28,7 +105,7 @@ jobs:
echo 'import site' >> ./python310._pth
echo 'import site' >> ./python310._pth
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
./python.exe get-pip.py
./python.exe get-pip.py
./python.exe -s -m pip install
torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu118 xformers -r ../ComfyUI/requirements.txt pygit2
./python.exe -s -m pip install
../cu118_python_deps/*
sed -i '1i../ComfyUI' ./python310._pth
sed -i '1i../ComfyUI' ./python310._pth
cd ..
cd ..
...
@@ -41,6 +118,7 @@ jobs:
...
@@ -41,6 +118,7 @@ jobs:
mkdir update
mkdir update
cp -r ComfyUI/.ci/update_windows/* ./update/
cp -r ComfyUI/.ci/update_windows/* ./update/
cp -r ComfyUI/.ci/update_windows_cu118/* ./update/
cp -r ComfyUI/.ci/windows_base_files/* ./
cp -r ComfyUI/.ci/windows_base_files/* ./
cd ..
cd ..
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment