Compare commits

..

6 Commits

Author SHA1 Message Date
MickLesk
f1c8c7b7b4 Optimize PyTorch URL extraction: only parse for selected GPU type
Instead of extracting all three GPU URLs unconditionally, now only
extracts the URL for the user's selected GPU type. More efficient:
- Only one grep execution instead of three
- Less code duplication
- Faster execution
2026-02-07 18:05:14 +01:00
MickLesk
a2a435041a Simplify PyTorch version extraction: use local README instead of curl
Use the already-downloaded README.md from /opt/ComfyUI instead of
fetching it separately via curl. Much simpler and more reliable.

Benefits:
- No extra network request needed
- Guaranteed to match the installed ComfyUI version
- Fewer dependencies (no curl check)
- Faster execution
2026-02-07 18:03:59 +01:00
MickLesk
87324564c6 Make ComfyUI PyTorch versions dynamic from upstream README
Instead of hardcoding CUDA/ROCm/XPU versions, now dynamically extracts
the recommended PyTorch wheel URLs from ComfyUI's README.md at install time.

Benefits:
- Automatically stays up-to-date with upstream recommendations
- No manual updates needed when ComfyUI changes PyTorch versions
- Fallback to known-good versions (cu130, rocm6.4, xpu) if fetch fails

Implementation:
- Fetches https://raw.githubusercontent.com/comfyanonymous/ComfyUI/master/README.md
- Parses stable (non-nightly) pip install commands with regex
- Gracefully degrades to hardcoded fallbacks on network/parse errors
2026-02-07 18:03:16 +01:00
MickLesk
c8dc7f2196 Update ComfyUI PyTorch versions to match upstream recommendations
- NVIDIA: cu128 → cu130 (requires driver ≥ 570)
- AMD: rocm6.3 → rocm6.4 (stable version)
- Intel: xpu (unchanged, already matches upstream)

Fixes NVML version mismatch issues when host driver is upgraded
Aligns with ComfyUI upstream: https://github.com/Comfy-Org/ComfyUI#manual-install-windows-linux
2026-02-07 18:00:08 +01:00
community-scripts-pr-app[bot]
8dca8d2041 chore: update github-versions.json (#11649)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-02-07 12:07:47 +00:00
community-scripts-pr-app[bot]
ee599030cf chore: update github-versions.json (#11647)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-02-07 06:14:04 +00:00
2 changed files with 28 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
{
"generated": "2026-02-07T00:21:04Z",
"generated": "2026-02-07T12:07:39Z",
"versions": [
{
"slug": "2fauth",
@@ -326,9 +326,9 @@
{
"slug": "firefly",
"repo": "firefly-iii/firefly-iii",
"version": "v6.4.16",
"version": "v6.4.17",
"pinned": false,
"date": "2026-01-17T07:54:15Z"
"date": "2026-02-07T06:56:00Z"
},
{
"slug": "fladder",
@@ -515,9 +515,9 @@
{
"slug": "huntarr",
"repo": "plexguide/Huntarr.io",
"version": "9.2.2",
"version": "9.2.3",
"pinned": false,
"date": "2026-02-06T22:01:36Z"
"date": "2026-02-07T04:44:20Z"
},
{
"slug": "inspircd",
@@ -543,9 +543,9 @@
{
"slug": "jackett",
"repo": "Jackett/Jackett",
"version": "v0.24.1044",
"version": "v0.24.1060",
"pinned": false,
"date": "2026-02-06T05:55:31Z"
"date": "2026-02-07T05:55:27Z"
},
{
"slug": "joplin-server",
@@ -1488,9 +1488,9 @@
{
"slug": "uptimekuma",
"repo": "louislam/uptime-kuma",
"version": "2.0.2",
"version": "2.1.0",
"pinned": false,
"date": "2025-10-22T17:03:54Z"
"date": "2026-02-07T02:31:49Z"
},
{
"slug": "vaultwarden",

View File

@@ -37,26 +37,42 @@ fetch_and_deploy_gh_release "ComfyUI" "comfyanonymous/ComfyUI" "tarball" "latest
msg_info "Python dependencies"
$STD uv venv "/opt/ComfyUI/venv"
if [[ "${comfyui_gpu_type,,}" == "nvidia" ]]; then
pytorch_url="https://download.pytorch.org/whl/cu130"
if [[ -f "/opt/ComfyUI/README.md" ]]; then
extracted=$(grep -oP 'pip install.*?--extra-index-url\s+\Khttps://download\.pytorch\.org/whl/cu\d+' /opt/ComfyUI/README.md | head -1 || true)
[[ -n "$extracted" ]] && pytorch_url="$extracted"
fi
$STD uv pip install \
torch \
torchvision \
torchaudio \
--extra-index-url "https://download.pytorch.org/whl/cu128" \
--extra-index-url "$pytorch_url" \
--python="/opt/ComfyUI/venv/bin/python"
elif [[ "${comfyui_gpu_type,,}" == "amd" ]]; then
pytorch_url="https://download.pytorch.org/whl/rocm6.4"
if [[ -f "/opt/ComfyUI/README.md" ]]; then
extracted=$(grep -oP 'pip install.*?--index-url\s+\Khttps://download\.pytorch\.org/whl/rocm[\d.]+' /opt/ComfyUI/README.md | grep -v 'nightly' | head -1 || true)
[[ -n "$extracted" ]] && pytorch_url="$extracted"
fi
$STD uv pip install \
torch \
torchvision \
torchaudio \
--index-url "https://download.pytorch.org/whl/rocm6.3" \
--index-url "$pytorch_url" \
--python="/opt/ComfyUI/venv/bin/python"
elif [[ "${comfyui_gpu_type,,}" == "intel" ]]; then
pytorch_url="https://download.pytorch.org/whl/xpu"
if [[ -f "/opt/ComfyUI/README.md" ]]; then
extracted=$(grep -oP 'pip install.*?--index-url\s+\Khttps://download\.pytorch\.org/whl/xpu' /opt/ComfyUI/README.md | head -1 || true)
[[ -n "$extracted" ]] && pytorch_url="$extracted"
fi
$STD uv pip install \
torch \
torchvision \
torchaudio \
--index-url "https://download.pytorch.org/whl/xpu" \
--index-url "$pytorch_url" \
--python="/opt/ComfyUI/venv/bin/python"
fi
$STD uv pip install -r "/opt/ComfyUI/requirements.txt" --python="/opt/ComfyUI/venv/bin/python"