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.14.15.54.tar.gz (6.5 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.14.15.54.tar.gz.

File metadata

File hashes

Hashes for lightning_trainer_utils-2025.5.14.15.54.tar.gz
Algorithm Hash digest
SHA256 27b79f6e7d03ab9ddf461a8b6d1961cfd5ac37165fe6722842aa8c9d1c446d71
MD5 b4c9b6afeb961ca62501ae3f0d949241
BLAKE2b-256 bd85396cb0eb2db04c989b978b30e7f7d02ffd6882c0d7cf5955963cb301f70c

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightning_trainer_utils-2025.5.14.15.54.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.14.15.54-py3-none-any.whl.

File metadata

File hashes

Hashes for lightning_trainer_utils-2025.5.14.15.54-py3-none-any.whl
Algorithm Hash digest
SHA256 c0e9e8b2f57fd466a60197693db45031a93e995d7ae2ea3fa1b9b0d212fc814a
MD5 e2ca54b4710dd5b1bf8be8d1ce000318
BLAKE2b-256 46ac2654436190055a86182d4a576c67d723dddf5bfa96df597ff6467ac57e1c

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightning_trainer_utils-2025.5.14.15.54-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