Skip to content

Maxwell fix#17156

Closed
ghost wants to merge 4 commits into
masterfrom
unknown repository
Closed

Maxwell fix#17156
ghost wants to merge 4 commits into
masterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Oct 20, 2025

Description

This PR fixes CUDA initialization issues on Maxwell GPUs by enforcing the correct PyTorch version (1.12.1+cu113) and adjusting requirements accordingly.
Also includes updated README instructions.

In modules/launch_utils.py, the following change was made:

Original lines (380-382):

if args.reinstall_torch or not is_installed("torch") or not is_installed("torchvision"):
    run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True)
    startup_timer.record("install torch")

were replaced with:

    if args.reinstall_torch or not is_installed("torch") or not is_installed("torchvision"):
    # Skipping automatic torch install; using manually installed torch 1.12.1 + cu113
     print("Skipping torch installation. Using existing torch 1.12.1 + cu113.")
    startup_timer.record("install torch")

Screenshots/videos:

pytorchinvenv1 modelloaded1

Checklist:

Kavya Mali added 4 commits October 20, 2025 02:14
Lines 380-382 

    if args.reinstall_torch or not is_installed("torch") or not is_installed("torchvision"):
        run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True)
        startup_timer.record("install torch")

have been replaced with: 

    if args.reinstall_torch or not is_installed("torch") or not is_installed("torchvision"):
    # Skipping automatic torch install; using manually installed torch 1.12.1 + cu113
     print("Skipping torch installation. Using existing torch 1.12.1 + cu113.")
    startup_timer.record("install torch")
, which forces A1111 to use the legacy pytorch installed in venv.
An update to account for the changes made under the branch,
@ghost ghost requested a review from AUTOMATIC1111 as a code owner October 20, 2025 11:37
@ghost ghost closed this Oct 20, 2025
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants