Skip to content

Commit 5f75710

Browse files
committed
move torch dependencies into separate file
1 parent 680b6fd commit 5f75710

22 files changed

+46
-46
lines changed

requirements/common.txt

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
psutil
2-
cython
3-
wheel
4-
requests
5-
pillow==9.3.0
6-
captum
7-
packaging
8-
numpy; sys_platform != 'win32'
9-
numpy==1.19.3; sys_platform == 'win32' #see https://tinyurl.com/y3dm3h86
1+
psutil==5.9.5
2+
requests==2.31.0
3+
captum==0.6.0
4+
packaging==23.1
105
pynvml==11.4.1
11-
pyyaml
6+
pyyaml==6.0

requirements/developer.txt

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
-r common.txt
2-
mock
3-
pytest
2+
mock==5.0.2
3+
pytest==7.3.1
44
pylint==2.6.0
5-
pytest-mock
6-
pytest-cov
7-
grpcio
8-
protobuf
9-
grpcio-tools
5+
pytest-mock==3.10.0
6+
pytest-cov==4.1.0
7+
grpcio==1.54.2
8+
protobuf==4.23.1
9+
grpcio-tools==1.54.2
1010
transformers==4.28.1
11-
pyspelling
12-
pygit2
13-
pyspelling
14-
pre-commit
15-
twine
16-
mypy
17-
torchpippy
18-
intel_extension_for_pytorch; sys_platform != 'win32' and sys_platform != 'darwin'
11+
pyspelling==2.8.2
12+
pygit2==1.12.1
13+
pre-commit==3.3.2
14+
twine==4.0.2
15+
mypy==1.3.0
16+
torchpippy==0.1.1
17+
intel_extension_for_pytorch==2.0.100; sys_platform != 'win32' and sys_platform != 'darwin'

requirements/torch_common.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
cython==0.29.34
2+
wheel==0.40.0
3+
pillow==9.3.0
4+
numpy==1.24.3; sys_platform != 'win32'
5+
numpy==1.19.3; sys_platform == 'win32' #see https://tinyurl.com/y3dm3h86

requirements/torch_cu101_linux.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#pip install torch==1.8.1+cu101 torchvision==0.9.1+cu101 torchaudio==0.8.1 -f https://download.pytorch.org/whl/torch_stable.html
22
--find-links https://download.pytorch.org/whl/torch_stable.html
3-
cython
4-
wheel
5-
pillow==9.3.0
3+
-r torch_common.txt
64
torch==1.8.1+cu101; sys_platform == 'linux'
75
torchvision==0.9.1+cu101; sys_platform == 'linux'
86
torchtext==0.9.1; sys_platform == 'linux'

requirements/torch_cu101_windows.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#pip install torch==1.8.1+cu101 torchvision==0.9.1+cu101 torchaudio===0.8.1 -f https://download.pytorch.org/whl/torch_stable.html
22
--find-links https://download.pytorch.org/whl/torch_stable.html
3+
-r torch_common.txt
34
torch==1.8.1+cu101; sys_platform == 'win32'
45
torchvision==0.9.1+cu101; sys_platform == 'win32'
56
torchtext==0.9.1; sys_platform == 'win32'
6-
torchaudio==0.8.1; sys_platform == 'win32'
7+
torchaudio==0.8.1; sys_platform == 'win32'

requirements/torch_cu102_linux.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# pip install torch torchvision torchaudio
2-
cython
3-
wheel
4-
pillow==9.3.0
2+
-r torch_common.txt
53
torch==1.12.0; sys_platform == 'linux'
64
torchvision==0.13.0; sys_platform == 'linux'
75
torchtext==0.13.0; sys_platform == 'linux'

requirements/torch_cu102_windows.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#pip install torch===1.9.0 torchvision===0.10.0 torchaudio===0.9.0 -f https://download.pytorch.org/whl/torch_stable.html
22
--find-links https://download.pytorch.org/whl/torch_stable.html
3+
-r torch_common.txt
34
torch==1.10.0+cu102; sys_platform == 'win32'
45
torchvision==0.11.1+cu102; sys_platform == 'win32'
56
torchtext==0.11.0; sys_platform == 'win32'
6-
torchaudio==0.10.0+cu102; sys_platform == 'win32'
7+
torchaudio==0.10.0+cu102; sys_platform == 'win32'

requirements/torch_cu111_linux.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio===0.9.0 -f https://download.pytorch.org/whl/torch_stable.html
22
--find-links https://download.pytorch.org/whl/torch_stable.html
3-
cython
4-
wheel
5-
pillow==9.3.0
3+
-r torch_common.txt
64
torch==1.9.0+cu111; sys_platform == 'linux'
75
torchvision==0.10.0+cu111; sys_platform == 'linux'
86
torchtext==0.10.0; sys_platform == 'linux'

requirements/torch_cu111_windows.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#pip install torch===1.9.0+cu111 torchvision===0.10.0+cu111 torchaudio===0.9.0 -f https://download.pytorch.org/whl/torch_stable.html
22
--find-links https://download.pytorch.org/whl/torch_stable.html
3+
-r torch_common.txt
34
torch==1.9.0+cu111; sys_platform == 'win32'
45
torchvision==0.10.0+cu111; sys_platform == 'win32'
56
torchtext==0.10.0; sys_platform == 'win32'

requirements/torch_cu113_linux.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu113
22
--extra-index-url https://download.pytorch.org/whl/cu113
3-
cython
4-
wheel
5-
pillow==9.3.0
3+
-r torch_common.txt
64
torch==1.12.0+cu113; sys_platform == 'linux'
75
torchvision==0.13.0+cu113; sys_platform == 'linux'
86
torchtext==0.13.0; sys_platform == 'linux'

0 commit comments

Comments
 (0)