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.13.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.13.53.tar.gz.

File metadata

File hashes

Hashes for lightning_trainer_utils-2025.5.15.13.53.tar.gz
Algorithm Hash digest
SHA256 b0f713c70bf5b785e61d852877835a85b0bf71ba9d15311cf4a443502fa0b9b4
MD5 f253518141ff0969f3f141bf862869ce
BLAKE2b-256 8bf16870a7166e202ac5d8b3413d05994b53d6dda858270a67571fdcfb5103a4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightning_trainer_utils-2025.5.15.13.53-py3-none-any.whl
Algorithm Hash digest
SHA256 4e675c71b55d822b117d678df3a5096ca1b4afcbc69350dee41156a2533278d1
MD5 64e703b8ea58b3f9030a5f93d8776c40
BLAKE2b-256 b9abdf6cceb8414d66095a425c3851ae5474e29cfc6eb7d5dd79be51acce7ade

See more details on using hashes here.

Provenance

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