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
da74e3bb
"llm/git@developer.sourcefind.cn:OpenDAS/ollama.git" did not exist on "4ad6c9b11f558a3822bb7f720e51f0224228257a"
Commit
da74e3bb
authored
Dec 09, 2023
by
comfyanonymous
Browse files
Update pytorch nightly packaging workflow.
parent
174eba8e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
12 deletions
+26
-12
.ci/nightly/update_windows/update_comfyui_and_python_dependencies.bat
...update_windows/update_comfyui_and_python_dependencies.bat
+0
-3
.ci/nightly/windows_base_files/run_nvidia_gpu.bat
.ci/nightly/windows_base_files/run_nvidia_gpu.bat
+0
-2
.github/workflows/windows_release_nightly_pytorch.yml
.github/workflows/windows_release_nightly_pytorch.yml
+26
-7
No files found.
.ci/nightly/update_windows/update_comfyui_and_python_dependencies.bat
deleted
100755 → 0
View file @
174eba8e
..\python_embeded\python.exe .\update.py ..\ComfyUI\
..\python_embeded\python.exe
-s -m
pip
install
--upgrade --pre
torch
torchvision
torchaudio
--extra-index-url
https
://download.pytorch.org/whl/nightly/cu121
-r
../ComfyUI/requirements.txt
pygit2
pause
.ci/nightly/windows_base_files/run_nvidia_gpu.bat
deleted
100755 → 0
View file @
174eba8e
.\python_embeded\python.exe
-s
ComfyUI
\main.py
--windows-standalone-build --use-pytorch-cross-attention
pause
.github/workflows/windows_release_nightly_pytorch.yml
View file @
da74e3bb
...
...
@@ -2,6 +2,24 @@ name: "Windows Release Nightly pytorch"
on
:
workflow_dispatch
:
inputs
:
cu
:
description
:
'
cuda
version'
required
:
true
type
:
string
default
:
"
121"
python_minor
:
description
:
'
python
minor
version'
required
:
true
type
:
string
default
:
"
12"
python_patch
:
description
:
'
python
patch
version'
required
:
true
type
:
string
default
:
"
1"
# push:
# branches:
# - master
...
...
@@ -20,21 +38,21 @@ jobs:
persist-credentials
:
false
-
uses
:
actions/setup-python@v4
with
:
python-version
:
'
3.
11.6'
python-version
:
3.
${{ inputs.python_minor }}.${{ inputs.python_patch }}
-
shell
:
bash
run
:
|
cd ..
cp -r ComfyUI ComfyUI_copy
curl https://www.python.org/ftp/python/3.
11.6/python-3.11.6
-embed-amd64.zip -o python_embeded.zip
curl https://www.python.org/ftp/python/3.
${{ inputs.python_minor }}.${{ inputs.python_patch }}/python-3.${{ inputs.python_minor }}.${{ inputs.python_patch }}
-embed-amd64.zip -o python_embeded.zip
unzip python_embeded.zip -d python_embeded
cd python_embeded
echo 'import site' >> ./python3
11
._pth
echo 'import site' >> ./python3
${{ inputs.python_minor }}
._pth
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
./python.exe get-pip.py
python -m pip wheel torch torchvision torchaudio
aiohttp==3.8.5
--pre --extra-index-url https://download.pytorch.org/whl/nightly/cu
121
-r ../ComfyUI/requirements.txt pygit2 -w ../temp_wheel_dir
python -m pip wheel torch torchvision torchaudio --pre --extra-index-url https://download.pytorch.org/whl/nightly/cu
${{ inputs.cu }}
-r ../ComfyUI/requirements.txt pygit2 -w ../temp_wheel_dir
ls ../temp_wheel_dir
./python.exe -s -m pip install --pre ../temp_wheel_dir/*
sed -i '1i../ComfyUI' ./python3
11
._pth
sed -i '1i../ComfyUI' ./python3
${{ inputs.python_minor }}
._pth
cd ..
git clone https://github.com/comfyanonymous/taesd
...
...
@@ -49,9 +67,10 @@ jobs:
mkdir update
cp -r ComfyUI/.ci/update_windows/* ./update/
cp -r ComfyUI/.ci/windows_base_files/* ./
cp -r ComfyUI/.ci/nightly/update_windows/* ./update/
cp -r ComfyUI/.ci/nightly/windows_base_files/* ./
echo "..\python_embeded\python.exe .\update.py ..\ComfyUI\\
..\python_embeded\python.exe -s -m pip install --upgrade --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cu${{ inputs.cu }} -r ../ComfyUI/requirements.txt pygit2
pause" > ./update/update_comfyui_and_python_dependencies.bat
cd ..
"C:\Program Files\7-Zip\7z.exe" a -t7z -m0=lzma -mx=8 -mfb=64 -md=32m -ms=on -mf=BCJ2 ComfyUI_windows_portable_nightly_pytorch.7z ComfyUI_windows_portable_nightly_pytorch
...
...
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