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

File metadata

File hashes

Hashes for lightning_trainer_utils-2025.5.15.14.46.tar.gz
Algorithm Hash digest
SHA256 18882ee8ee77bd5742de61c018fb0bdc438ddd099c426ddef4c3e1acccb917fe
MD5 c669b105d804eaf0fe7370033de89e37
BLAKE2b-256 6d51f56abf2f0425198b0b62fab9bb630db7f2fe31210ff903e28fd5b6dc3fc3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightning_trainer_utils-2025.5.15.14.46-py3-none-any.whl
Algorithm Hash digest
SHA256 6bf15903717799acaaf3e3d00d46df5af9564b6a1a1334b003df2929747dc128
MD5 db228535543233982d85812b1306cc8b
BLAKE2b-256 ae889bc25897e96dd9c6a30db64c159ff6064d12f58c9d2d1b7f82e73a3e6fd9

See more details on using hashes here.

Provenance

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