modly icon indicating copy to clipboard operation
modly copied to clipboard

Install fails — torch==2.7.0+cu128 no longer available on PyTorch index

Open dsusco opened this issue 2 months ago • 2 comments

Which official extension?

lightningpixel/modly-hunyuan3d-mini-extension

Describe the bug

Extension installation fails because setup.py pins torch==2.7.0 with an --index-url of https://download.pytorch.org/whl/cu128, but that exact version is no longer served from that index. Only 2.9.0+cu128 and newer are currently available.

Error

Error: setup.py exited with code 1 ERROR: Could not find a version that satisfies the requirement torch==2.7.0 (from versions: 2.9.0+cu128, 2.9.1+cu128, 2.10.0+cu128, 2.11.0+cu128) ERROR: No matching distribution found for torch==2.7.0

Full traceback: Traceback (most recent call last): File "", line 93, in ... File "/home/dsusco/Modly/extensions/hunyuan3d-mini/setup.py", line 173, in setup pip(venv, "install", *torch_pkgs, "--index-url", torch_index) File "/home/dsusco/Modly/extensions/hunyuan3d-mini/setup.py", line 75, in pip subprocess.run([str(pip_exe), *args], check=True) subprocess.CalledProcessError: Command '['/home/dsusco/Modly/extensions/hunyuan3d-mini/venv/bin/pip', 'install', 'torch==2.7.0', 'torchvision==0.22.0', '--index-url', 'https://download.pytorch.org/whl/cu128']' returned non-zero exit status 1.

Expected Behavior

setup.py's torch/CUDA version table should resolve to a torch build that is currently hosted on the PyTorch index for the reported cuda_version.

Additional Context

Also seeing the same class of failure (hardcoded old torch pin against an aged-out CUDA index) on the trellis2-gguf extension.

Steps to reproduce

  1. Install Modly v0.4.2 AppImage
  2. Go to Models > Install from GitHub
  3. Enter https://github.com/lightningpixel/modly-hunyuan3d-mini-extension
  4. Installation runs setup.py, which attempts pip install torch==2.7.0 torchvision==0.22.0 --index-url https://download.pytorch.org/whl/cu128

Modly version

0.4.2

Operating system

Fedora Linux 43

GPU

GA107GL [RTX A400]

Screenshots & logs

No response

Confirmation

  • [x] I have searched existing issues and this has not been reported yet.
  • [x] I can reproduce this on the latest version of Modly.

dsusco avatar Sep 08 '26 19:09 dsusco

For Trellis.2 GGUF, the pinned builds (torch 2.5.1+cu124, 2.6.0+cu126, 2.7.0+cu128) are all still served by the PyTorch index for Python 3.11 as of today, so the extension is not affected by that removal. The hunyuan3d-mini pin is tracked separately.

Lorchie avatar Oct 18 '26 14:10 Lorchie

Fix is in lightningpixel/modly-hunyuan3d-mini-extension#15 (1.1.1): on Python 3.14 the install now picks torch 2.9.1. Your error matches a Python 3.14 venv, but the AppImage ships 3.11.9. Could you share the extension install log so we can see where 3.14 came from?

lightningpixel avatar Nov 09 '26 10:11 lightningpixel