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

File metadata

File hashes

Hashes for lightning_trainer_utils-2025.5.15.13.1.tar.gz
Algorithm Hash digest
SHA256 1f3c56fc4456ebf11f421d8180fcdb2c6039d5cb47ce8f31f318682e9f82cea5
MD5 6dd9def44368b6eb32587829bacf7691
BLAKE2b-256 88a78c086f6742e5a76d08b60c76e99145cd1cd269299a0e56b3d852be6b62d4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightning_trainer_utils-2025.5.15.13.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7b80905632b27da1664b138d577e3405ca0cb010127dfdd6b38a1a0509ec5de4
MD5 247cab8ec36e57f05bd3f384a458406c
BLAKE2b-256 6f9843280a41a532345d8d569483649fa55f9744cdc73106acdb1656cfcca234

See more details on using hashes here.

Provenance

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