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.14.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.15.14.51.tar.gz.

File metadata

File hashes

Hashes for lightning_trainer_utils-2025.5.15.14.51.tar.gz
Algorithm Hash digest
SHA256 98189293693199901ecf35f10213c6890e351ef83153a9f072acf5ad58a087c8
MD5 d7f4888467dd7949d0f99334d71463c4
BLAKE2b-256 752cd3be85f6848815b6951bd540054cf3f8e68d3e5cb8ff2acf97210a184d05

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightning_trainer_utils-2025.5.15.14.51-py3-none-any.whl
Algorithm Hash digest
SHA256 8bd61c849f7c2efc853bf010f8dedc67699bed0777eb6327cb791ce04efc08c5
MD5 bff03b839b3b01aa1f49ac64bd413403
BLAKE2b-256 b128525be8503290607616490ade6e501e36e187b5fa690ab100e0854367868c

See more details on using hashes here.

Provenance

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