You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by gu...@apache.org on 2024/02/16 03:40:56 UTC
(spark) branch master updated: [SPARK-46078][PYTHON][TESTS] Upgrade `pytorch` for Python 3.12
This is an automated email from the ASF dual-hosted git repository.
gurwls223 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new 3a146ce46c55 [SPARK-46078][PYTHON][TESTS] Upgrade `pytorch` for Python 3.12
3a146ce46c55 is described below
commit 3a146ce46c55ebdb206bb8b2439690905003e6e2
Author: Hyukjin Kwon <gu...@apache.org>
AuthorDate: Fri Feb 16 12:40:45 2024 +0900
[SPARK-46078][PYTHON][TESTS] Upgrade `pytorch` for Python 3.12
### What changes were proposed in this pull request?
This PR proposes to upgrade PyTorch for Python 3.12
This PR is dependent on https://github.com/apache/spark/pull/45113
### Why are the changes needed?
To use the official releases.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Will be verified in CI. Seems like their support on Mac is not out yet.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #45119 from HyukjinKwon/SPARK-46078.
Authored-by: Hyukjin Kwon <gu...@apache.org>
Signed-off-by: Hyukjin Kwon <gu...@apache.org>
---
dev/infra/Dockerfile | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/dev/infra/Dockerfile b/dev/infra/Dockerfile
index fc515d4478ad..53810756d30c 100644
--- a/dev/infra/Dockerfile
+++ b/dev/infra/Dockerfile
@@ -133,9 +133,7 @@ RUN apt-get update && apt-get install -y \
&& rm -rf /var/lib/apt/lists/*
RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.12
# TODO(SPARK-46647) Add unittest-xml-reporting into Python 3.12 image when it supports Python 3.12
-# TODO(SPARK-46078) Use official one instead of nightly build when it's ready
RUN python3.12 -m pip install $BASIC_PIP_PKGS $CONNECT_PIP_PKGS lxml && \
- python3.12 -m pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu && \
- python3.12 -m pip install torchvision --index-url https://download.pytorch.org/whl/cpu && \
+ python3.12 -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu && \
python3.12 -m pip install torcheval && \
python3.12 -m pip cache purge
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org