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.15.15.53.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.15.15.53.tar.gz.

File metadata

File hashes

Hashes for lightning_trainer_utils-2025.5.15.15.53.tar.gz
Algorithm Hash digest
SHA256 69a02637895fcecd1432c04d08e234b3da8f21d167aa80380d8afe0fc332c37e
MD5 fb1373e9e6493f8e4ba072b33a4b78e4
BLAKE2b-256 b655a15972871c6cccc77853041217cd9464ca0b40de429022a2255e51c975a9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightning_trainer_utils-2025.5.15.15.53-py3-none-any.whl
Algorithm Hash digest
SHA256 f910c1ed18f341ca1821c1bf89b30a31afddc34a3afe1a2bfbd30d7305811b5b
MD5 a423ffa2c77942e5c550b150227538c7
BLAKE2b-256 662e81acb9bd28c8537df93eed52b0c34c7a1c6c00761b5c5e0596a11ee7f88f

See more details on using hashes here.

Provenance

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