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

File metadata

File hashes

Hashes for lightning_trainer_utils-2025.5.16.11.6.tar.gz
Algorithm Hash digest
SHA256 377abd1ebb2bae77342c44143980ee1a42c1d68fb4cfbf18ce66330cdb0727f3
MD5 73f5b713af318fa6fed4fa0a6e4310e3
BLAKE2b-256 4e0751e7e506da2f07963e3b96cc756e0919d556d603b3213abf57c9a8b0fcbe

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightning_trainer_utils-2025.5.16.11.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e3520b4cdda200534e30dee3fc3cf9a0965f93a1946e0918ff73905d94dd9c40
MD5 a6982bd3a71b56b728a09528e9f587c2
BLAKE2b-256 0da28f2547f8b76e1f69df35d7b33871eea498b89f8896fb3616f65f2290ac21

See more details on using hashes here.

Provenance

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