Skip to content

Commit

Permalink
Merge pull request #8195 from madhavajay/madhava/torch_cpu
Browse files Browse the repository at this point in the history
Trying cpu extras to speed up pip install on tox tasks
  • Loading branch information
madhavajay authored Oct 26, 2023
2 parents a8d7228 + 51a1ef6 commit 5625eb0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/syft/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ syft =
safetensors==0.4.0
transformers==4.34.0
evaluate==0.4.1
torch==2.1.0
torch[cpu]==2.1.0
recordlinkage==0.16
argon2-cffi==23.1.0

Expand Down
5 changes: 2 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,12 @@ envlist =
syftcli.build
skipsdist = True


[testenv]
basepython = python3
install_command = pip install --find-links https://download.pytorch.org/whl/cpu/torch_stable.html {opts} {packages}
install_command = pip install {opts} {packages}
commands =
python --version
setenv =
PIP_FIND_LINKS=https://download.pytorch.org/whl/cpu/torch_stable.html

# Syft
[testenv:syft]
Expand Down

0 comments on commit 5625eb0

Please sign in to comment.