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

File metadata

File hashes

Hashes for lightning_trainer_utils-2025.5.16.11.3.tar.gz
Algorithm Hash digest
SHA256 8540dfbc99e483c775120ac909d0ea73336456817efea402543541374ec31d37
MD5 370ad63c3fb5ce220c7ed19ad87c0562
BLAKE2b-256 16fed77ee676822ed581273ddf63b6c05b5324fb548bd075fda312e436a8ac07

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightning_trainer_utils-2025.5.16.11.3-py3-none-any.whl
Algorithm Hash digest
SHA256 61aa83be7476aee62419eefc489edae4c2049101ff4ea6a5b1fd95d54f93cd71
MD5 94e0cca736736c898818c99a71f95e21
BLAKE2b-256 46c6f2553e1489b247290ab19241f88d29846f1d827fba25263a01f919beaa60

See more details on using hashes here.

Provenance

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