Skip to content

Commit c8e52b3

Browse files
committed
common: fix torch installation via pip for s390x
Signed-off-by: Aaron Teo <[email protected]>
1 parent 386e55b commit c8e52b3

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
-r ./requirements-convert_legacy_llama.txt
22
--extra-index-url https://download.pytorch.org/whl/cpu
3+
torch~=2.2.1; platform_machine != "s390x"
4+
35
# torch s390x packages can only be found from nightly builds
46
--extra-index-url https://download.pytorch.org/whl/nightly
5-
torch~=2.2.1
7+
torch>=0.0.0.dev0; platform_machine == "s390x"
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
-r ./requirements-convert_legacy_llama.txt
22
--extra-index-url https://download.pytorch.org/whl/cpu
3+
torch~=2.2.1; platform_machine != "s390x"
4+
35
# torch s390x packages can only be found from nightly builds
46
--extra-index-url https://download.pytorch.org/whl/nightly
5-
torch~=2.2.1
7+
torch>=0.0.0.dev0; platform_machine == "s390x"

0 commit comments

Comments
 (0)