Skip to content

build(deps): bump torch from 2.0.1+cpu to 2.8.0 in /sagemaker-train/tests/data/script_mode - #5328

Open
dependabot[bot] wants to merge 2 commits into
masterfrom
dependabot/pip/sagemaker-train/tests/data/script_mode/torch-2.8.0
Open

build(deps): bump torch from 2.0.1+cpu to 2.8.0 in /sagemaker-train/tests/data/script_mode#5328
dependabot[bot] wants to merge 2 commits into
masterfrom
dependabot/pip/sagemaker-train/tests/data/script_mode/torch-2.8.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 20, 2025

Copy link
Copy Markdown
Contributor

Bumps torch from 2.0.1+cpu to 2.8.0.

Release notes

Sourced from torch's releases.

PyTorch 2.8.0 Release Notes

Highlights

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [torch](https://github.com/pytorch/pytorch) from 2.0.1+cpu to 2.8.0.
- [Release notes](https://github.com/pytorch/pytorch/releases)
- [Changelog](https://github.com/pytorch/pytorch/blob/main/RELEASE.md)
- [Commits](https://github.com/pytorch/pytorch/commits/v2.8.0)

---
updated-dependencies:
- dependency-name: torch
  dependency-version: 2.8.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Nov 20, 2025
@lucasjia-aws
lucasjia-aws deployed to manual-approval July 29, 2026 00:31 — with GitHub Actions Active
@github-actions

github-actions Bot commented Jul 29, 2026

Copy link
Copy Markdown

Claude finished @lucasjia-aws's task in 38s —— View job


PR Review: bump torch to 2.8.0

  • Read the PR diff (/tmp/pr.diff)
  • Reviewed surrounding test-data scripts for compatibility impact
  • Posted review

This is a Dependabot bump of torch in a test-data requirements file (sagemaker-train/tests/data/script_mode/requirements.txt) — used by the script_mode training-job test fixture, not by the SDK's runtime dependencies. Low risk overall. A couple of observations worth noting:

1. Dropped the +cpu local version specifier

-torch==2.0.1+cpu
+torch==2.8.0

The old pin used the CPU-only wheel (+cpu). The new pin has no local suffix, so on Linux pip will resolve the default wheel, which is CUDA-enabled and much larger (pulls in nvidia-* CUDA packages). Since this fixture only trains a tiny nn.Linear model on CPU (custom_script.py falls back to CPU when torch.cuda.is_available() is false), the CPU wheel was intentional and lighter for CI. Consider keeping it explicit: torch==2.8.0+cpu (still available via the -f .../torch_stable.html index). Not a correctness bug, just image/download size.

2. torch.load default change (2.6+)
custom_script.py:51 calls torch.load(model_dir + "/model.pth") without weights_only. PyTorch 2.6 flipped the default to weights_only=True. Here the file is a plain state_dict saved via model.state_dict(), so loading under weights_only=True still works — no action needed, just flagging that the behavior default shifted across this jump (2.0 → 2.8).

Nothing blocking. The change is functionally fine for the test fixture; the +cpu suffix is the only thing I'd optionally restore.

@codecov

codecov Bot commented Jul 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 42.74%. Comparing base (0d8f539) to head (fef4571).
⚠️ Report is 6 commits behind head on master.

❌ Your project check has failed because the head coverage (42.74%) is below the target coverage (65.00%). You can increase the head coverage or adjust the target coverage.

❗ There is a different number of reports uploaded between BASE (0d8f539) and HEAD (fef4571). Click for more details.

HEAD has 3 uploads less than BASE
Flag BASE (0d8f539) HEAD (fef4571)
4 1
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #5328       +/-   ##
===========================================
- Coverage   69.79%   42.74%   -27.06%     
===========================================
  Files         548      384      -164     
  Lines       65822    51248    -14574     
===========================================
- Hits        45943    21905    -24038     
- Misses      19879    29343     +9464     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant