Skip to content
This repository was archived by the owner on Jan 20, 2026. It is now read-only.

build(deps): update torch requirement from <2.3 to <2.8#80

Draft
dependabot[bot] wants to merge 10 commits intomainfrom
dependabot-pip-torch-lt-2.8
Draft

build(deps): update torch requirement from <2.3 to <2.8#80
dependabot[bot] wants to merge 10 commits intomainfrom
dependabot-pip-torch-lt-2.8

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Apr 28, 2025

Updates the requirements on torch to permit the latest version.

Release notes

Sourced from torch's releases.

PyTorch 2.7.0 Release Notes

Highlights

... (truncated)

Changelog

Sourced from torch's changelog.

Releasing PyTorch

Release Compatibility Matrix

Following is the Release Compatibility Matrix for PyTorch releases:

... (truncated)

Commits
  • 1341794 Gracefully handle optree less than minimum version, part 2 (#151323)
  • 0739127 Gracefully handle optree less than minimum version (#150977)
  • 0c236f3 Update triton wheel build, setuptools pin (#150953)
  • c7ff78d Fix inplacing with multiple, fused uses (#150892)
  • 894909a Revert "[CUDA] Only use vec128 if CUDA version is newer than 12.8" (#150855)
  • ef2b139 [Manylinux 2.28] Correct Linux aarch64 cuda binaries wheel name (#150820)
  • 3f236f1 [CUDA] Only use vec128 if CUDA version is newer than 12.8 (#150818)
  • 35f1e76 Reland of "[ROCm] change preferred blas lib defaults (#150249)"" (#150707)
  • a6321d6 Revert "Dont exclude constant_pad_nd in prologue fusion" (#150699)
  • 1cc51c6 [CUDA][avgpool2d] Fix backward launch bounds again for sm100, sm120 (#150...
  • Additional commits viewable in compare view

You can trigger a rebase of this PR 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)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Updates the requirements on [torch](https://github.com/pytorch/pytorch) to permit the latest version.
- [Release notes](https://github.com/pytorch/pytorch/releases)
- [Changelog](https://github.com/pytorch/pytorch/blob/main/RELEASE.md)
- [Commits](pytorch/pytorch@v0.1.1...v2.7.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot requested a review from a team April 28, 2025 20:37
@dependabot dependabot bot requested a review from Borda as a code owner April 28, 2025 20:37
@Borda
Copy link
Copy Markdown
Member

Borda commented May 6, 2025

need to be fixed:

Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/conda/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
test_strategy.py:8: in <module>
    import hivemind
/opt/conda/lib/python3.10/site-packages/hivemind/__init__.py:12: in <module>
    from hivemind.optim import GradScaler, Optimizer, TrainingAverager
/opt/conda/lib/python3.10/site-packages/hivemind/optim/__init__.py:1: in <module>
    from hivemind.optim.grad_scaler import GradScaler, HivemindGradScaler
/opt/conda/lib/python3.10/site-packages/hivemind/optim/grad_scaler.py:8: in <module>
    from torch.cuda.amp.grad_scaler import OptState, _refresh_per_optimizer_state
E   ImportError: cannot import name '_refresh_per_optimizer_state' from 'torch.cuda.amp.grad_scaler' (/opt/conda/lib/python3.10/site-packages/torch/cuda/amp/grad_scaler.py)

@Borda
Copy link
Copy Markdown
Member

Borda commented May 6, 2025

reported in learning-at-home/hivemind#643

Borda and others added 6 commits May 6, 2025 11:58
Updates the requirements on [pydantic](https://github.com/pydantic/pydantic) to permit the latest version.
- [Release notes](https://github.com/pydantic/pydantic/releases)
- [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md)
- [Commits](pydantic/pydantic@v0.0.2...v2.4.2)

---
updated-dependencies:
- dependency-name: pydantic
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com>
@Borda
Copy link
Copy Markdown
Member

Borda commented May 6, 2025

hitting (also not sure why it install all CUDA packages since I requested Torch CPU version):

src/lightning_hivemind/strategy.py:188: in __init__
    self.dht = hivemind.DHT(
/opt/hostedtoolcache/Python/3.10.17/x64/lib/python3.10/site-packages/hivemind/dht/dht.py:87: in __init__
    self.run_in_background(await_ready=await_ready)
/opt/hostedtoolcache/Python/3.10.17/x64/lib/python3.10/site-packages/hivemind/dht/dht.py:148: in run_in_background
    self.wait_until_ready(timeout)
/opt/hostedtoolcache/Python/3.10.17/x64/lib/python3.10/site-packages/hivemind/dht/dht.py:151: in wait_until_ready
    self._ready.result(timeout=timeout)
/opt/hostedtoolcache/Python/3.10.17/x64/lib/python3.10/site-packages/hivemind/utils/mpfuture.py:254: in result
    return super().result(timeout)
/opt/hostedtoolcache/Python/3.10.17/x64/lib/python3.10/concurrent/futures/_base.py:458: in result
    return self.__get_result()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
self = None
    def __get_result(self):
        if self._exception:
            try:
>               raise self._exception
E               hivemind.p2p.p2p_daemon_bindings.utils.P2PDaemonError: Daemon failed to start: /opt/hostedtoolcache/Python/3.10.17/x64/lib/python3.10/site-packages/hivemind/hivemind_cli/p2pd: 2: Syntax error: "(" unexpected
/opt/hostedtoolcache/Python/3.10.17/x64/lib/python3.10/concurrent/futures/_base.py:403: P2PDaemonError

and reporting it in learning-at-home/hivemind#655

@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot bot commented on behalf of github Aug 12, 2025

A newer version of torch exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

@Borda Borda marked this pull request as draft January 20, 2026 04:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant