Skip to main content

A Python package for using PyTorch Lightning with custom callbacks and model wrappers.

Project description

PyPI version

PyTorch Lightning Trainer Utilities

ML Model Assumptions

forward

  • The model wrapper uses the forward function as follows:
    output = self.model(**x, **self.forward_kwargs)
    return ModelOuput(**output)

It expects batch as dict and returns a dict with keys [loss, report, output].

return

  • ML model should return a dict with the following keys:
    • loss
    • report
    • output [optional]

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

lightning_trainer_utils-2025.5.16.10.56.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file lightning_trainer_utils-2025.5.16.10.56.tar.gz.

File metadata

File hashes

Hashes for lightning_trainer_utils-2025.5.16.10.56.tar.gz
Algorithm Hash digest
SHA256 2954a6fff771bf93402fb4985cd5693e77cccfe2692395e0cb101cccce6f5e36
MD5 a7500e07dd6c96db41a9833bd3dc1c4e
BLAKE2b-256 54f5c98ba56084eaa1be1440d0a7bc1dfcb806bf2e8624fe986e4fd0cae4cd67

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightning_trainer_utils-2025.5.16.10.56.tar.gz:

Publisher: workflow.yaml on manavmahan/lightning-trainer-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lightning_trainer_utils-2025.5.16.10.56-py3-none-any.whl.

File metadata

File hashes

Hashes for lightning_trainer_utils-2025.5.16.10.56-py3-none-any.whl
Algorithm Hash digest
SHA256 c59f5c221bc4729e4ef23bafd0e45c0822f7fd3f40679a90bdeed60b015af1f7
MD5 63c56619109c2e7113774b4fe1494815
BLAKE2b-256 dd4eee488bc1134418d5d1a6ecdde5c3cfb916fd13a49bd7f089b171ac7888af

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightning_trainer_utils-2025.5.16.10.56-py3-none-any.whl:

Publisher: workflow.yaml on manavmahan/lightning-trainer-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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