]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
common: Include torch package for s390x (#13699)
authorAaron Teo <redacted>
Thu, 22 May 2025 18:31:29 +0000 (02:31 +0800)
committerGitHub <redacted>
Thu, 22 May 2025 18:31:29 +0000 (21:31 +0300)
* common: update requirements.txt to include pytorch nightly for s390x

Signed-off-by: Aaron Teo <redacted>
* common: fix torch installation via pip for s390x

Signed-off-by: Aaron Teo <redacted>
---------

Signed-off-by: Aaron Teo <redacted>
requirements/requirements-convert_hf_to_gguf.txt
requirements/requirements-convert_hf_to_gguf_update.txt
requirements/requirements-convert_lora_to_gguf.txt

index 8cb9c354f015260c3a06bc1533dbd3e76e74186c..431c596c12354db591694aa618fb81d769444c3f 100644 (file)
@@ -1,3 +1,7 @@
 -r ./requirements-convert_legacy_llama.txt
 --extra-index-url https://download.pytorch.org/whl/cpu
-torch~=2.2.1
+torch~=2.2.1; platform_machine != "s390x"
+
+# torch s390x packages can only be found from nightly builds
+--extra-index-url https://download.pytorch.org/whl/nightly
+torch>=0.0.0.dev0; platform_machine == "s390x"
index 8cb9c354f015260c3a06bc1533dbd3e76e74186c..431c596c12354db591694aa618fb81d769444c3f 100644 (file)
@@ -1,3 +1,7 @@
 -r ./requirements-convert_legacy_llama.txt
 --extra-index-url https://download.pytorch.org/whl/cpu
-torch~=2.2.1
+torch~=2.2.1; platform_machine != "s390x"
+
+# torch s390x packages can only be found from nightly builds
+--extra-index-url https://download.pytorch.org/whl/nightly
+torch>=0.0.0.dev0; platform_machine == "s390x"
index 5758076c41dc116c5d41fccb4cd60ef67afaa20e..d091d564846bff78972a8502baa6a57c672b7abe 100644 (file)
@@ -1,2 +1,4 @@
 -r ./requirements-convert_hf_to_gguf.txt
 --extra-index-url https://download.pytorch.org/whl/cpu
+# torch s390x packages can only be found from nightly builds
+--extra-index-url https://download.pytorch.org/whl/nightly