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.10.47.tar.gz (8.2 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.10.47.tar.gz.

File metadata

File hashes

Hashes for lightning_trainer_utils-2025.5.15.10.47.tar.gz
Algorithm Hash digest
SHA256 51decc38b3fe7e17cb3ed738d315b139ea96b7f5b35cc0a83380f5fd30b2228d
MD5 62a5e685309d6526f9768d66ad7c8721
BLAKE2b-256 c5015e2580b12702005567e86f2ff5a01c0a1711e91c392cd835481b6e6a2bc8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightning_trainer_utils-2025.5.15.10.47-py3-none-any.whl
Algorithm Hash digest
SHA256 69d5a5522b0b0a7f30c0810bdd5b90aa0c06d11b4ec58e0dc4db3d03fa9778d9
MD5 84f3592353b75ccd0f22a2e52078a4af
BLAKE2b-256 e8730efe0f69d7cbf41eab3bc276da9f69bc0771af2886224bd882b99258fc53

See more details on using hashes here.

Provenance

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