Repository navigation
Add gpu install extra and document CPU/GPU install paths - #147
Open
ParamThakkar123 wants to merge 1 commit into
Open
ParamThakkar123 wants to merge 1 commit into
ParamThakkar123 wants to merge 1 commit into
Conversation
Contributor
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
pip install torchwm[gpu]while keepingpip install torchwmCPU-first for portable installs.uvso the CUDA PyTorch index is only used when thegpuextra is requested.Description
gpuoptional-dependency topyproject.tomlunder[project.optional-dependencies]and toextras_requireinsetup.pythat includestorch,torchvision, andtorchaudio.uvconfiguration inpyproject.toml([tool.uv]/[tool.uv.sources]and[[tool.uv.index]]) sotorch,torchvision, andtorchaudioare routed to the CUDA 12.1 PyTorch index when thegpuextra is requested and are not forced to the CUDA index by default.README.md,docs/source/installation.md, anddocs/source/getting_started.mdnow documentpip install torchwm(CPU/default) andpip install torchwm[gpu](CUDA-enabled) with guidance aboutuvbehavior.uv.lockentries) so the newgpuextra is reflected and package metadata includeextra == 'gpu'markers for the PyTorch packages.Testing
pyproject.tomlparsing and presence of thegpuextra with a smalltomllibvalidation script (passed).python -m pip install -e . --dry-run --no-deps --no-build-isolationwhich reported the package would install (passed).python setup.py egg_infowhich completed and generated metadata (passed).uv build --sdist --no-build-isolationwhich succeeded and produceddist/torchwm-*.tar.gz(passed).uv lock --offline --dry-runwhich failed due to the offline lock cache missingale-pyfor the Python>=3.14resolution split; this failure is an offline cache/network issue and not caused by thegpuextra change (warning/failure unrelated to metadata changes).Codex Task