Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Add a ARM64 nvidia portable. (#16985)

comfyanonymousd0ef06b6f6a5
diff --git a/.github/workflows/release-stable-all.yml b/.github/workflows/release-stable-all.yml
index 10f1ccf96..e6ecd56bc 100644
--- a/.github/workflows/release-stable-all.yml
+++ b/.github/workflows/release-stable-all.yml
@@ -26,6 +26,24 @@ jobs:
test_release: true
secrets: inherit
+ release_nvidia_arm64:
+ permissions:
+ contents: "write"
+ packages: "write"
+ pull-requests: "read"
+ name: "Release NVIDIA ARM64"
+ uses: ./.github/workflows/stable-release.yml
+ with:
+ git_tag: ${{ inputs.git_tag }}
+ cache_tag: "nvidia_arm64"
+ python_minor: "14"
+ python_patch: "8"
+ python_arch: "arm64"
+ rel_name: "nvidia"
+ rel_extra_name: "_arm64"
+ test_release: true
+ secrets: inherit
+
release_nvidia_cu126:
permissions:
contents: "write"
diff --git a/.github/workflows/stable-release.yml b/.github/workflows/stable-release.yml
index dbb5981b4..9ba11d3dd 100644
--- a/.github/workflows/stable-release.yml
+++ b/.github/workflows/stable-release.yml
@@ -23,6 +23,11 @@ on:
required: true
type: string
default: "6"
+ python_arch:
+ description: 'Python architecture'
+ required: false
+ type: string
+ default: "amd64"
rel_name:
description: 'Release name'
required: true
@@ -59,6 +64,14 @@ on:
required: true
type: string
default: "6"
+ python_arch:
+ description: 'Python architecture'
+ required: false
+ type: choice
+ options:
+ - amd64
+ - arm64
+ default: "amd64"
rel_name:
description: 'Release name'
required: true
@@ -81,7 +94,7 @@ jobs:
contents: "write"
packages: "write"
pull-requests: "read"
- runs-on: windows-latest
+ runs-on: ${{ inputs.python_arch == 'arm64' && 'windows-11-arm' || 'windows-latest' }}
steps:
- uses: actions/checkout@v4
with:
@@ -95,6 +108,7 @@ jobs:
${{ inputs.cache_tag }}_python_deps.tar
update_comfyui_and_python_dependencies.bat
key: ${{ runner.os }}-build-${{ inputs.cache_tag }}-${{ inputs.python_minor }}
+ fail-on-cache-miss: true
- shell: bash
run: |
mv ${{ inputs.cache_tag }}_python_deps.tar ../
@@ -108,7 +122,7 @@ jobs:
run: |
cd ..
cp -r ComfyUI ComfyUI_copy
- 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
+ curl https://www.python.org/ftp/python/3.${{ inputs.python_minor }}.${{ inputs.python_patch }}/python-3.${{ inputs.python_minor }}.${{ inputs.python_patch }}-embed-${{ inputs.python_arch }}.zip -o python_embeded.zip
unzip python_embeded.zip -d python_embeded
cd python_embeded
echo ${{ env.MINOR_VERSION }}
diff --git a/.github/workflows/windows_arm64_release_dependencies.yml b/.github/workflows/windows_arm64_release_dependencies.yml
new file mode 100644
index 000000000..efd2b4f14
--- /dev/null
+++ b/.github/workflows/windows_arm64_release_dependencies.yml
@@ -0,0 +1,53 @@
+name: "Windows ARM64 Release dependencies"
+
+on:
+ workflow_dispatch:
+ inputs:
+ python_minor:
+ description: 'Python minor version'
+ required: true
+ type: string
+ default: "14"
+ python_patch:
+ description: 'Python patch version'
+ required: true
+ type: string
+ default: "8"
+
+jobs:
+ build_dependencies:
+ runs-on: windows-11-arm
+ steps:
+ - uses: actions/checkout@v4
+ - uses: actions/setup-python@v5
+ with:
+ python-version: 3.${{ inputs.python_minor }}.${{ inputs.python_patch }}
+ architecture: arm64
+
+ - shell: bash
+ run: |
+ echo "@echo off
+ call update_comfyui.bat nopause
+ echo -
+ echo This will try to update pytorch and all python dependencies.
+ echo -
+ echo If you just want to update normally, close this and run update_comfyui.bat instead.
+ echo -
+ pause
+ ..\python_embeded\python.exe -s -m pip install --upgrade --pre --extra-index-url https://pypi.nvidia.com/nvtorch_oot_nightly torch torchvision torchaudio -r ../ComfyUI/requirements.txt pygit2
+ pause" > update_comfyui_and_python_dependencies.bat
+
+ python -m pip install --pre --extra-index-url 'https://pypi.nvidia.com/nvtorch_oot_nightly' torch torchvision torchaudio
+ python -m pip freeze > requirements_torch.txt
+ grep -v comfy requirements.txt > requirements_nocomfyui.txt
+ python -m pip wheel --extra-index-url https://pypi.nvidia.com/nvtorch_oot_nightly -r requirements_torch.txt -r requirements_nocomfyui.txt pygit2 -w ./nvidia_arm64_python_deps
+ python -m pip install --no-index ./nvidia_arm64_python_deps/*
+ python -m pip check
+ tar cf nvidia_arm64_python_deps.tar nvidia_arm64_python_deps
+
+ - uses: actions/cache/save@v4
+ with:
+ path: |
+ nvidia_arm64_python_deps.tar
+ update_comfyui_and_python_dependencies.bat
+ key: ${{ runner.os }}-build-nvidia_arm64-${{ inputs.python_minor }}
diff --git a/.github/workflows/windows_release_dependencies.yml b/.github/workflows/windows_release_dependencies.yml
index 93e01ac93..ca29f1e0b 100644
--- a/.github/workflows/windows_release_dependencies.yml
+++ b/.github/workflows/windows_release_dependencies.yml
@@ -56,7 +56,7 @@ jobs:
..\python_embeded\python.exe -s -m pip install --upgrade torch torchvision torchaudio ${{ inputs.xformers }} --extra-index-url https://download.pytorch.org/whl/cu${{ inputs.cu }} -r ../ComfyUI/requirements.txt pygit2
pause" > update_comfyui_and_python_dependencies.bat
- grep -v comfyui requirements.txt > requirements_nocomfyui.txt
+ grep -v comfy requirements.txt > requirements_nocomfyui.txt
python -m pip wheel --no-cache-dir torch torchvision torchaudio ${{ inputs.xformers }} ${{ inputs.extra_dependencies }} --extra-index-url https://download.pytorch.org/whl/cu${{ inputs.cu }} -r requirements_nocomfyui.txt pygit2 -w ./temp_wheel_dir
python -m pip install --no-cache-dir ./temp_wheel_dir/*
echo installed basic
diff --git a/.github/workflows/windows_release_dependencies_manual.yml b/.github/workflows/windows_release_dependencies_manual.yml
index 0799feef1..a060e36c0 100644
--- a/.github/workflows/windows_release_dependencies_manual.yml
+++ b/.github/workflows/windows_release_dependencies_manual.yml
@@ -48,7 +48,7 @@ jobs:
..\python_embeded\python.exe -s -m pip install --upgrade ${{ inputs.torch_dependencies }} -r ../ComfyUI/requirements.txt pygit2
pause" > update_comfyui_and_python_dependencies.bat
- grep -v comfyui requirements.txt > requirements_nocomfyui.txt
+ grep -v comfy requirements.txt > requirements_nocomfyui.txt
python -m pip wheel --no-cache-dir ${{ inputs.torch_dependencies }} -r requirements_nocomfyui.txt pygit2 -w ./temp_wheel_dir
python -m pip install --no-cache-dir ./temp_wheel_dir/*
echo installed basic