Skip to content

Commit b2541f4

Browse files
authored
Merge branch 'main' into refactor-stateful
2 parents a6735c0 + d33cdf5 commit b2541f4

39 files changed

+619
-508
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@ changelog does not include internal changes that do not affect the user.
88

99
## [Unreleased]
1010

11+
## [0.10.0] - 2026-04-16
12+
1113
### Added
1214

1315
- Added `GradVac` and `GradVacWeighting` from
1416
[Gradient Vaccine: Investigating and Improving Multi-task Optimization in Massively Multilingual Models](https://arxiv.org/pdf/2010.05874).
17+
- Documented per-parameter-group aggregation (GradVac-style grouping) in a new Grouping example.
1518

1619
### Fixed
1720

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ TorchJD provides many existing aggregators from the literature, listed in the fo
281281
| [Constant](https://torchjd.org/stable/docs/aggregation/constant#torchjd.aggregation.Constant) | [ConstantWeighting](https://torchjd.org/stable/docs/aggregation/constant#torchjd.aggregation.ConstantWeighting) | - |
282282
| [DualProj](https://torchjd.org/stable/docs/aggregation/dualproj#torchjd.aggregation.DualProj) | [DualProjWeighting](https://torchjd.org/stable/docs/aggregation/dualproj#torchjd.aggregation.DualProjWeighting) | [Gradient Episodic Memory for Continual Learning](https://arxiv.org/pdf/1706.08840) |
283283
| [GradDrop](https://torchjd.org/stable/docs/aggregation/graddrop#torchjd.aggregation.GradDrop) | - | [Just Pick a Sign: Optimizing Deep Multitask Models with Gradient Sign Dropout](https://arxiv.org/pdf/2010.06808) |
284-
| [GradVac](https://torchjd.org/latest/docs/aggregation/gradvac#torchjd.aggregation.GradVac) | [GradVacWeighting](https://torchjd.org/latest/docs/aggregation/gradvac#torchjd.aggregation.GradVacWeighting) | [Gradient Vaccine: Investigating and Improving Multi-task Optimization in Massively Multilingual Models](https://arxiv.org/pdf/2010.05874) |
284+
| [GradVac](https://torchjd.org/stable/docs/aggregation/gradvac#torchjd.aggregation.GradVac) | [GradVacWeighting](https://torchjd.org/stable/docs/aggregation/gradvac#torchjd.aggregation.GradVacWeighting) | [Gradient Vaccine: Investigating and Improving Multi-task Optimization in Massively Multilingual Models](https://arxiv.org/pdf/2010.05874) |
285285
| [IMTLG](https://torchjd.org/stable/docs/aggregation/imtl_g#torchjd.aggregation.IMTLG) | [IMTLGWeighting](https://torchjd.org/stable/docs/aggregation/imtl_g#torchjd.aggregation.IMTLGWeighting) | [Towards Impartial Multi-task Learning](https://discovery.ucl.ac.uk/id/eprint/10120667/) |
286286
| [Krum](https://torchjd.org/stable/docs/aggregation/krum#torchjd.aggregation.Krum) | [KrumWeighting](https://torchjd.org/stable/docs/aggregation/krum#torchjd.aggregation.KrumWeighting) | [Machine Learning with Adversaries: Byzantine Tolerant Gradient Descent](https://proceedings.neurips.cc/paper/2017/file/f4b9ec30ad9f68f89b29639786cb62ef-Paper.pdf) |
287287
| [Mean](https://torchjd.org/stable/docs/aggregation/mean#torchjd.aggregation.Mean) | [MeanWeighting](https://torchjd.org/stable/docs/aggregation/mean#torchjd.aggregation.MeanWeighting) | - |

docs/source/conf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,11 @@ def linkcode_resolve(domain: str, info: dict[str, str]) -> str | None:
9494
if domain != "py" or not info["module"]:
9595
return None
9696

97-
obj = _get_obj(info)
97+
try:
98+
obj = _get_obj(info)
99+
except AttributeError:
100+
# This can happen when trying to get a field typed at the class level.
101+
return None
98102
file_name = _get_file_name(obj)
99103

100104
if not file_name:

docs/source/docs/aggregation/aligned_mtl.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,5 @@ Aligned-MTL
44
===========
55

66
.. autoclass:: torchjd.aggregation.AlignedMTL
7-
:members:
8-
:undoc-members:
9-
:exclude-members: forward
107

118
.. autoclass:: torchjd.aggregation.AlignedMTLWeighting
12-
:members:
13-
:undoc-members:
14-
:exclude-members: forward

docs/source/docs/aggregation/cagrad.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,5 @@ CAGrad
44
======
55

66
.. autoclass:: torchjd.aggregation.CAGrad
7-
:members:
8-
:undoc-members:
9-
:exclude-members: forward
107

118
.. autoclass:: torchjd.aggregation.CAGradWeighting
12-
:members:
13-
:undoc-members:
14-
:exclude-members: forward

docs/source/docs/aggregation/config.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,3 @@ ConFIG
44
======
55

66
.. autoclass:: torchjd.aggregation.ConFIG
7-
:members:
8-
:undoc-members:
9-
:exclude-members: forward

docs/source/docs/aggregation/constant.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,5 @@ Constant
44
========
55

66
.. autoclass:: torchjd.aggregation.Constant
7-
:members:
8-
:undoc-members:
9-
:exclude-members: forward
107

118
.. autoclass:: torchjd.aggregation.ConstantWeighting
12-
:members:
13-
:undoc-members:
14-
:exclude-members: forward

docs/source/docs/aggregation/dualproj.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,5 @@ DualProj
44
========
55

66
.. autoclass:: torchjd.aggregation.DualProj
7-
:members:
8-
:undoc-members:
9-
:exclude-members: forward
107

118
.. autoclass:: torchjd.aggregation.DualProjWeighting
12-
:members:
13-
:undoc-members:
14-
:exclude-members: forward

docs/source/docs/aggregation/flattening.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,3 @@ Flattening
44
==========
55

66
.. autoclass:: torchjd.aggregation.Flattening
7-
:members:
8-
:undoc-members:
9-
:exclude-members: forward

docs/source/docs/aggregation/graddrop.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,3 @@ GradDrop
44
========
55

66
.. autoclass:: torchjd.aggregation.GradDrop
7-
:members:
8-
:undoc-members:
9-
:exclude-members: forward

0 commit comments

Comments
 (0)