Skip to content

[Bug]: Windows NVIDIA build setup loop: Fails to install torch==2.6.0+cu121 and forces CPU rollback #644

Description

@imbalon

Before reporting

  • I'm on the latest release and the issue still happens.
  • I searched existing issues and didn't find a duplicate.

What happened?

Describe the bug

On Windows (NVIDIA portable build v0.17.2), the automated gpu-setup script attempts to hardcode the download of torch==2.6.0+cu121. Since this explicit wheel string combination is unavailable on PyPI/PyTorch index under that direct layout format, pip execution crashes with No matching distribution found.

As a result, the application purges local environments and falls back to torch-2.6.0+cpu, preventing native utilization of discrete GPUs (such as RTX 4060 Laptop GPU) during stem isolation pipelines.

Environment

  • App Version: v0.17.2 (Alpha Windows NVIDIA package)
  • OS: Windows 11 x64
  • GPU: NVIDIA GeForce RTX 4060 Laptop GPU

Steps to reproduce

To Reproduce

  1. Download StemDeck-Windows-x64.NVIDIA.zip (v0.17.2).
  2. Execute StemDeck.exe on a CUDA-supported Windows laptop/PC (Win11).
  3. Observe initialization failures during the automated GPU validation phase.

Operating system

Windows

StemDeck version

v0.17.2

How did you install it?

Windows ZIP

Logs / screenshots

Log Output (setup.log)

trying CUDA wheel cu121 (torch 2.6.0)
CUDA verify failed: torch reported no usable CUDA device
CUDA torch install failed. stderr:
ERROR: Could not find a version that satisfies the requirement torch==2.6.0+cu121 (from versions: 2.2.0+cu121, 2.2.1+cu121, 2.2.2+cu121, 2.3.0+cu121, 2.3.1+cu121, 2.4.0+cu121, 2.4.1+cu121, 2.5.0+cu121, 2.5.1+cu121)
ERROR: No matching distribution found for torch==2.6.0+cu121
cu121 install failed: CUDA install failed — see logs/setup.log for details.
CPU torch restore: Downloading torch-2.6.0%2Bcpu-cp312-cp312-win_amd64.whl.metadata (28 kB)
GPU setup decision: device=cpu reason=cuda-install-failed gpu=Some("NVIDIA GeForce RTX 4060 Laptop GPU")

Activity

  1. self-assigned this
    on Sep 20, 2026
  2. thcp commented on Sep 21, 2026

    @thcp
    Collaborator

    Thanks for the setup.log. That is what made this findable. The exact spec pip was asked for was sitting right there in the error.

    Here is what was going on. StemDeck picks a CUDA wheel index from what your driver reports, then installs a fixed torch line, 2.6.0, from it. Your driver reports CUDA below 12.4, so setup chose the cu121 index. cu121 never published torch 2.6.0. It stops at 2.5.1, and the same is true for torchaudio and torchvision. So pip was asked for a wheel that does not exist, the install failed, CPU torch went back in, and your 4060 sat there unused.

    Fixed in #650, merged as 2687fde. It ships in the next release.

    What changed:

    • Every CUDA 12 driver now gets cu124, not only 12.4 and newer. CUDA 12 is minor version compatible, so a cu124 build runs on your driver, and cu124 does publish the 2.6.0 line.
    • cu118 follows as a second attempt if cu124 installs but cannot launch a kernel. Before this, one failed tag meant CPU with nothing else tried.
    • A test now checks every wheel tag setup can offer against what that index actually publishes, so a pairing like this one fails on my machine instead of yours.

    If you want the GPU before the release, either of these works today.

    The simpler one: update your NVIDIA driver to a version reporting CUDA 12.4 or newer, then start StemDeck again. A CPU result that came from a failure is re-probed on the next launch, so setup will retry and pick cu124 on its own.

    If you would rather not touch the driver, install the working wheels into the build you already have. From the extracted StemDeck folder:

    python\Scripts\python.exe -m pip install torch==2.6.0+cu124 torchaudio==2.6.0+cu124 torchvision==0.21.0+cu124 --index-url https://download.pytorch.org/whl/cu124 --ignore-installed --no-deps
    

    Then start StemDeck again. Setup sees working CUDA torch and keeps it.

    One thing I cannot check from here is whether cu124 launches kernels on your exact driver, since that is the part relying on minor version compatibility. If it does not, the new fallback puts you on cu118 instead. Either way logs\setup.log names the tag that verified. I would be glad to know which one you land on, if you get a chance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions