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

File metadata

File hashes

Hashes for lightning_trainer_utils-2025.5.16.8.27.tar.gz
Algorithm Hash digest
SHA256 008242f9318b943b8f50a66d5087c6754d527db1cb3407f94d75ab3802b8ddf1
MD5 063ad52467a55a3bcebcc5c1f8e81cc5
BLAKE2b-256 180ea26eba255466e487d9fa72f4317485b67c1d66e2fbee0f965cd26ffa2ee7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightning_trainer_utils-2025.5.16.8.27-py3-none-any.whl
Algorithm Hash digest
SHA256 9df1b64789770181caeff9db4318500b473de325b861a237019203020c874f32
MD5 5aa5002c571ed48be805db84d05bef01
BLAKE2b-256 6d07b5e33343b83d88db08ea52fff9a1b5107888c4d0e88253dac21b3ad88cfe

See more details on using hashes here.

Provenance

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