Skip to content

Commit ab86335

Browse files
authored
common: Include torch package for s390x (#13699)
* common: update requirements.txt to include pytorch nightly for s390x Signed-off-by: Aaron Teo <aaron.teo1@ibm.com> * common: fix torch installation via pip for s390x Signed-off-by: Aaron Teo <aaron.teo1@ibm.com> --------- Signed-off-by: Aaron Teo <aaron.teo1@ibm.com>
1 parent cc74d5b commit ab86335

3 files changed

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

0 commit comments

Comments
 (0)