Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document pytorch smaller install without GPU support #68

Open
etatara opened this issue Jul 10, 2024 · 1 comment
Open

Document pytorch smaller install without GPU support #68

etatara opened this issue Jul 10, 2024 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@etatara
Copy link
Member

etatara commented Jul 10, 2024

The default torch installs GPU support and the total packages size is somewhere around 5GB just for torch and depedencies. If GPU support is not required, then using the cpu (non gpu) library saves a lot of space and install time. The requirements.txt (or pip install command) can be update with an alternative URL to point to the CPU wheel

# Use CPU Torch for a smaller install
--extra-index-url https://download.pytorch.org/whl/cpu 
torch

We might also include an environment variable or other option when installing repast4py to switch the behavior in the repast4py requirements.txt

@etatara etatara added the documentation Improvements or additions to documentation label Jul 10, 2024
@etatara etatara self-assigned this Jul 10, 2024
@etatara
Copy link
Member Author

etatara commented Jul 16, 2024

We discussed including a sentence or two describing this on the readme Requirements section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant