Skip to main content

Library for Jacobian Descent with PyTorch.

Project description

image TorchJD

Tests

TorchJD is a library enabling Jacobian descent with PyTorch, to train neural networks with multiple objectives. In particular, it can be used for multi-task learning, with a wide variety of algorithms from the literature. It also enables the instance-wise risk minimization paradigm, as proposed in Jacobian Descent For Multi-Objective Optimization. The full documentation is available at torchjd.org, with several usage examples.

Installation

TorchJD can be installed directly with pip:

pip install torchjd

Compatibility

TorchJD requires python 3.10, 3.11 or 3.12. It is only compatible with recent versions of PyTorch (>= 2.0). For more information, read the dependencies in pyproject.toml.

Contribution

Please read the Contribution page.

Citation

If you use TorchJD for your research, please cite:

@article{jacobian_descent,
  title={Jacobian Descent For Multi-Objective Optimization},
  author={Quinton, Pierre and Rey, Valérian},
  journal={arXiv preprint arXiv:2406.16232},
  year={2024}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

torchjd-0.2.0.tar.gz (29.2 kB view details)

Uploaded Source

Built Distribution

torchjd-0.2.0-py3-none-any.whl (44.1 kB view details)

Uploaded Python 3

File details

Details for the file torchjd-0.2.0.tar.gz.

File metadata

  • Download URL: torchjd-0.2.0.tar.gz
  • Upload date:
  • Size: 29.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.18.1 CPython/3.8.10 Linux/5.15.0-119-generic

File hashes

Hashes for torchjd-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7d5178c405bca5531130314b8a1ac7845b828a2fcd4e83f22b95e5e8f0965341
MD5 f3852c59295777eb9afb7c01b56c5c1a
BLAKE2b-256 b2653161d8189d56999027b83a6658b5e1d84e9f0eb10284887e8bc773720343

See more details on using hashes here.

File details

Details for the file torchjd-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: torchjd-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 44.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.18.1 CPython/3.8.10 Linux/5.15.0-119-generic

File hashes

Hashes for torchjd-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e9064ba6698cae5f0428dcc86401f3ffc559f5dc7d402d026ab15db9ca49000c
MD5 c6b285379237bc4d8a1eda3c96ff66c3
BLAKE2b-256 c94ca65bcd3b99d49b2d8d006cdb8364a0abd663cd50c5f6e996f00d0d4e51cf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page