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.19.9.35.tar.gz (8.3 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.19.9.35.tar.gz.

File metadata

File hashes

Hashes for lightning_trainer_utils-2025.5.19.9.35.tar.gz
Algorithm Hash digest
SHA256 7060a7dbb49308465e05e29603bd33513d2ee5cab523f6fc77554e9e339370f9
MD5 11d6594ad16dc17c29213ed4c5cf97d3
BLAKE2b-256 0dd93ba1627f060d37acf270d5035318133ad02cc312f2b78675953705bac4e5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightning_trainer_utils-2025.5.19.9.35-py3-none-any.whl
Algorithm Hash digest
SHA256 f805051cd37e25378f776b411b27fe3582efa73b2425a5e4d92341382860812c
MD5 0ff45df8c4177e76e6b38438fa4cd676
BLAKE2b-256 6e50e84ec28fa7d1671e7a97f67fc3a9af9b69df8d822af397486b11beb8abda

See more details on using hashes here.

Provenance

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