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

File metadata

File hashes

Hashes for lightning_trainer_utils-2025.5.16.8.38.tar.gz
Algorithm Hash digest
SHA256 4da38110dc1a398bc273e1f3309cb5dbaaa64bdac871a35eb0aa6a19ad386c00
MD5 61e4e19f9d842f6ff25c9e2c661e78e6
BLAKE2b-256 3fd66e64cc0e318bbf0726bc80508239731618d402642d10d6bc9584d7ba2af1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightning_trainer_utils-2025.5.16.8.38-py3-none-any.whl
Algorithm Hash digest
SHA256 8cd06531453ba78c8fcf32fde0978a34a677286524dd0f4fdd186fdc3f90b8f3
MD5 bb032e8403b1d8bde0d498d3cf74a095
BLAKE2b-256 107f0c71af09183c25683b6ba80c0319311c9f1096c19bbd7e08b0add53d7f0b

See more details on using hashes here.

Provenance

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