Skip to content

Supported Pytorch added for Maxwell.#17171

Closed
plushplank wants to merge 2 commits into
AUTOMATIC1111:devfrom
plushplank:dev
Closed

Supported Pytorch added for Maxwell.#17171
plushplank wants to merge 2 commits into
AUTOMATIC1111:devfrom
plushplank:dev

Conversation

@plushplank

@plushplank plushplank commented Nov 7, 2025

Copy link
Copy Markdown

Description

Simplified my previous PR and added cu126 Pytorch installation for Maxwell GPUs dynamically as cu128 is unsupported. No other code is touched.

--no-cache-dir is used for my variable to bypass memory restrictions.

Screenshots/videos:

Checklist:

@w-e-w

w-e-w commented Nov 7, 2025

Copy link
Copy Markdown
Collaborator

I made a PR as well


--no-cache-dir is used for my variable to bypass memory restrictions.

what memory restrictions your system RAM?
how much do you have?

@plushplank

Copy link
Copy Markdown
Author

I made a PR as well

--no-cache-dir is used for my variable to bypass memory restrictions.

what memory restrictions your system RAM? how much do you have?

16GB DDR3

@plushplank

plushplank commented Nov 7, 2025

Copy link
Copy Markdown
Author

I made a PR as well

--no-cache-dir is used for my variable to bypass memory restrictions.

what memory restrictions your system RAM? how much do you have?

I can edit my code to include pascal as well:

def cu126():
"""For Maxwell GPUs"""
cc = get_cuda_comp_cap()
if 5.0 <= cc < 7.0:
torch_command = os.environ.get('TORCH_COMMAND', f"pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126")
return torch_command

return None

def prepare_environment():
torch_index_url = os.environ.get('TORCH_INDEX_URL', "https://download.pytorch.org/whl/cu128")
torch_command = os.environ.get('TORCH_COMMAND', f"pip install torch==2.7.0 torchvision==0.22.0 --extra-index-url {torch_index_url}")
torch_command = cu126() or os.environ.get('TORCH_COMMAND', f"pip install torch==2.7.0 torchvision==0.22.0 --extra-index-url {torch_index_url}")

@plushplank plushplank deleted the branch AUTOMATIC1111:dev December 29, 2025 04:34
@plushplank plushplank closed this Dec 29, 2025
@plushplank plushplank deleted the dev branch December 29, 2025 04:34
@plushplank plushplank restored the dev branch December 29, 2025 04:34
@plushplank

Copy link
Copy Markdown
Author

Closed for a pr exists by @w-e-w.

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.

2 participants