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

File metadata

File hashes

Hashes for lightning_trainer_utils-2025.5.19.8.57.tar.gz
Algorithm Hash digest
SHA256 4364ff72da90f118e9865030591cf29c3a2b0f07cc0e9790bfd362f0fe23af18
MD5 5974cfd228bb287b4c5ae3f8c717bbd4
BLAKE2b-256 72382ce27cd642fee9355de4e692e8ee8e3e4d4ccb0e8d42bb255ecb11de8924

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightning_trainer_utils-2025.5.19.8.57-py3-none-any.whl
Algorithm Hash digest
SHA256 6feb6f36ae7bb930d96cd4140fe67e6ad258ffab9033d365541344e3b895daaa
MD5 84560274939d7482aaad4a5c79393d5a
BLAKE2b-256 4701b80e57f120c2574ca7391a3fd77efbd67a201353fe6817944bdba59be370

See more details on using hashes here.

Provenance

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