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

File metadata

File hashes

Hashes for lightning_trainer_utils-2025.5.16.11.51.tar.gz
Algorithm Hash digest
SHA256 ab7a08f1522cb07479145183c7f6dd03cd699376ed8c5a9162d1d61ea8d9c099
MD5 40bf4194303706a0754ee2a2a460d174
BLAKE2b-256 a4245a981dba81a86087a46da4f7dd32d9cef13d8282c902d1cc581bca4413eb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightning_trainer_utils-2025.5.16.11.51-py3-none-any.whl
Algorithm Hash digest
SHA256 af85de9676e666317ff03d81278a7bee9d97e8047086132252d729a8335ecfc0
MD5 c59da35355919bfd971d8594cc530e71
BLAKE2b-256 35ba203da52de61178a917d727ed228cc94019c142c7634270b055951cc83839

See more details on using hashes here.

Provenance

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