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

Enables using PyTorch nightlies on CPU #2961

Merged
merged 2 commits into from
Feb 22, 2024
Merged

Conversation

agunapal
Copy link
Collaborator

Description

Fixes the build script to use PT nightlies on CPU

Fixes #(issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

Feature/Issue validation/testing

  • CPU
python ./ts_scripts/install_dependencies.py --nightly_torch
Collecting numpy                                                                                                                                                                          
  Downloading numpy-1.26.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (61 kB)                                                                                    
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.0/61.0 kB 2.5 MB/s eta 0:00:00
Collecting torch                                                                                                                                                                          
  Downloading https://download.pytorch.org/whl/nightly/cpu/torch-2.3.0.dev20240222%2Bcpu-cp310-cp310-linux_x86_64.whl (188.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 188.9/188.9 MB 12.7 MB/s eta 0:00:00
Collecting torchvision
  Downloading https://download.pytorch.org/whl/nightly/cpu/torchvision-0.18.0.dev20240222%2Bcpu-cp310-cp310-linux_x86_64.whl (1.7 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.7/1.7 MB 59.1 MB/s eta 0:00:00

pip list | grep -i torch
torch                     2.3.0.dev20240222+cpu
torchaudio                2.2.0.dev20240222+cpu
torchdata                 0.7.1.dev20240221+cpu
torchtext                 0.17.0.dev20240222+cpu
torchvision               0.18.0.dev20240222+cpu

  • CUDA
python ./ts_scripts/install_dependencies.py --cuda=cu121 --nightly_torch

pip list | grep -i torch
pytorch-triton            3.0.0+901819d2b6
torch                     2.3.0.dev20240222+cu121
torchaudio                2.2.0.dev20240222+cu121
torchtext                 0.6.0
torchvision               0.18.0.dev20240222+cu121

Checklist:

  • Did you have fun?
  • Have you added tests that prove your fix is effective or that this feature works?
  • Has code been commented, particularly in hard-to-understand areas?
  • Have you made corresponding changes to the documentation?

@agunapal agunapal requested a review from mreso February 22, 2024 19:11
Copy link
Collaborator

@mreso mreso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mreso mreso enabled auto-merge February 22, 2024 19:20
@mreso mreso added this pull request to the merge queue Feb 22, 2024
Merged via the queue into master with commit 310dd25 Feb 22, 2024
15 of 17 checks passed
@agunapal agunapal deleted the issues/torch_nightly_cpu branch February 22, 2024 22:19
@agunapal agunapal added this to the v0.10.0 milestone Feb 27, 2024
muthuraj-i2i pushed a commit to muthuraj-i2i/serve that referenced this pull request Mar 1, 2024
* Enables use PT nightlies on CPU

* Enables using PT nightlies on CPU
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