Skip to content

Commit

Permalink
Torchrec gpu stable (#660)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #660

use this

Differential Revision: D38185498

fbshipit-source-id: 72785c9d62ddcc14d2a8529268261137e74b30a2
  • Loading branch information
czxttkl authored and facebook-github-bot committed Jul 27, 2022
1 parent 1002d12 commit 8be31b4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,13 @@ commands:
# "-e" option will activate the development mode (a symlink to the code in ReAgent
# will be created in site-packages directory)
command: |
pip install -e .[gym,test,torchrec_gpu] --pre --extra-index-url https://download.pytorch.org/whl/cu113 -f https://download.pytorch.org/whl/nightly/torchrec_nightly/ --progress-bar off
pip install -e .[gym,test,torchrec_gpu] --pre --extra-index-url https://download.pytorch.org/whl/cu113 -f https://download.pytorch.org/whl/torchrec/ --progress-bar off
- unless:
condition: << parameters.is_ubuntu_gpu >>
steps:
- run:
command: |
pip install -e .[gym,test,torchrec_cpu] --pre --extra-index-url https://download.pytorch.org/whl/cpu -f https://download.pytorch.org/whl/nightly/torchrec_nightly_cpu/ --progress-bar off
pip install -e .[gym,test,torchrec_cpu] --pre --extra-index-url https://download.pytorch.org/whl/cpu -f https://download.pytorch.org/whl/torchrec_cpu/ --progress-bar off
run_unittest:
Expand Down
8 changes: 6 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,13 @@ ax = ax-platform

lite = nevergrad>=0.4.3

torchrec_gpu = torchrec-nightly
torchrec_gpu =
fbgemm-gpu
torchrec

torchrec_cpu = torchrec-nightly-cpu
torchrec_cpu =
fbgemm-gpu-cpu
torchrec-cpu


###########
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ extras =
test
torchrec_cpu
install_command =
pip install --pre --extra-index-url https://download.pytorch.org/whl/cpu -f https://download.pytorch.org/whl/nightly/torchrec_nightly_cpu/ {opts} {packages} --progress-bar off
pip install --pre --extra-index-url https://download.pytorch.org/whl/cpu -f https://download.pytorch.org/whl/torchrec_cpu/ {opts} {packages} --progress-bar off
commands =
pytest -n2 -m "(not serial) and (not seq2slate_long)"
pytest -n0 -m "serial"
Expand All @@ -39,7 +39,7 @@ extras =
test
torchrec_gpu
install_command =
pip install --pre --extra-index-url https://download.pytorch.org/whl/cu113 -f https://download.pytorch.org/whl/nightly/torchrec_nightly/ {opts} {packages} --progress-bar off
pip install --pre --extra-index-url https://download.pytorch.org/whl/cu113 -f https://download.pytorch.org/whl/torchrec/ {opts} {packages} --progress-bar off


[testenv:circleci_misc_unittest]
Expand Down

0 comments on commit 8be31b4

Please sign in to comment.