Skip to content

Commit acd3894

Browse files
authored
chore(deps): update dependency torch to v2 (GoogleCloudPlatform#9287)
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [torch](https://pytorch.org/) | `==1.13.1` -> `==2.0.0` | [![age](https://badges.renovateapi.com/packages/pypi/torch/2.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/torch/2.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/torch/2.0.0/compatibility-slim/1.13.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/torch/2.0.0/confidence-slim/1.13.1)](https://docs.renovatebot.com/merge-confidence/) | | [torch](https://pytorch.org/) | `==1.12.1` -> `==2.0.0` | [![age](https://badges.renovateapi.com/packages/pypi/torch/2.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/torch/2.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/torch/2.0.0/compatibility-slim/1.12.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/torch/2.0.0/confidence-slim/1.12.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### ⚠ Dependency Lookup Warnings ⚠ Warnings were logged while processing this repo. Please check the Dependency Dashboard for more information. --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Never, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/GoogleCloudPlatform/python-docs-samples). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNTkuMSIsInVwZGF0ZWRJblZlciI6IjM0LjE1OS4xIn0=-->
1 parent ab382a0 commit acd3894

5 files changed

Lines changed: 10 additions & 15 deletions

File tree

dataflow/gpu-examples/pytorch-minimal/Dockerfile

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,20 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM pytorch/pytorch:1.9.1-cuda11.1-cudnn8-runtime
15+
FROM pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime
1616

1717
WORKDIR /pipeline
1818

1919
COPY requirements.txt .
2020
COPY *.py ./
2121

22-
RUN apt-get update \
23-
&& apt-get install -y --no-install-recommends g++ \
24-
&& rm -rf /var/lib/apt/lists/* \
25-
# Install the pipeline requirements and check that there are no conflicts.
26-
# Since the image already has all the dependencies installed,
27-
# there's no need to run with the --requirements_file option.
28-
&& pip install --no-cache-dir --upgrade pip \
22+
# Install the pipeline requirements and check that there are no conflicts.
23+
# Since the image already has all the dependencies installed,
24+
# there's no need to run with the --requirements_file option.
25+
RUN pip install --no-cache-dir --upgrade pip \
2926
&& pip install --no-cache-dir -r requirements.txt \
3027
&& pip check
3128

3229
# Set the entrypoint to Apache Beam SDK worker launcher.
33-
COPY --from=apache/beam_python3.8_sdk:2.38.0 /opt/apache/beam /opt/apache/beam
30+
COPY --from=apache/beam_python3.10_sdk:2.48.0 /opt/apache/beam /opt/apache/beam
3431
ENTRYPOINT [ "/opt/apache/beam/boot" ]

dataflow/gpu-examples/pytorch-minimal/noxfile_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222

2323
TEST_CONFIG_OVERRIDE = {
2424
# You can opt out from the test for specific Python versions.
25-
# > ℹ️ We're opting out of all Python versions except 3.8.
25+
# > ℹ️ We're opting out of all Python versions except 3.10.
2626
# > The Python version used is defined by the Dockerfile, so it's redundant
2727
# > to run multiple tests since they would all be running the same Dockerfile.
28-
"ignored_versions": ["2.7", "3.6", "3.7", "3.9", "3.10", "3.11"],
28+
"ignored_versions": ["2.7", "3.6", "3.7", "3.8", "3.9", "3.11"],
2929
# Old samples are opted out of enforcing Python type hints
3030
# All new samples should feature them
3131
"enforce_type_hints": True,
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
apache-beam[gcp]==2.35.0
2-
torch==1.13.1
1+
apache-beam[gcp]==2.48.0
2+
triton==2.0.0

people-and-planet-ai/weather-forecasting/serving/requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
Flask==2.2.2
22
gunicorn==20.1.0
3-
torch==1.13.1
43

54
# Local packages.
65
./weather-data
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
../../serving/weather-data
22
../../serving/weather-model
33
plotly==5.15.0
4-
torch==1.13.1

0 commit comments

Comments
 (0)