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

File metadata

File hashes

Hashes for lightning_trainer_utils-2025.5.16.9.21.tar.gz
Algorithm Hash digest
SHA256 5a09b75e623d1306d3403411ade0097483193bfb0c4a5ea7596bbf4703c9849c
MD5 80a298b74b47f3a46b2a1e248b8c1385
BLAKE2b-256 50931244d3234e2fd947a9e1307f49d6fb8531c3908bb1dc35c20c9573c08071

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightning_trainer_utils-2025.5.16.9.21-py3-none-any.whl
Algorithm Hash digest
SHA256 cc5da2ec465d58e9b51fac6f3550dcdc9d081e8fddd787f459b58ad52be83ea1
MD5 a7a178cbd810dff961c183cd564bbca6
BLAKE2b-256 c087cb44f06b7ad55f76f9453bb38b7e530f37952bc344b935733ee9274251e0

See more details on using hashes here.

Provenance

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