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.15.10.41.tar.gz (8.2 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.15.10.41.tar.gz.

File metadata

File hashes

Hashes for lightning_trainer_utils-2025.5.15.10.41.tar.gz
Algorithm Hash digest
SHA256 7ffb67aed6b09f6ab2459cdb3e0667114a53fa3e5e6039ea8c6f9fe878a3875e
MD5 b8daa0658aaf61f364a7eeb878fbadc5
BLAKE2b-256 633bff324029d5b27f1b8523a1cd305131fc95e3d9b9ff377661ec36de7cf96d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightning_trainer_utils-2025.5.15.10.41-py3-none-any.whl
Algorithm Hash digest
SHA256 40c94d2128b169cd10632f88efb71f12afbfc7e1ca491161c4b0299fff97c095
MD5 85c5a9b26de82b4201b803a49e0a8cb8
BLAKE2b-256 56052873f03840733bdaedd15f8414d649a7146a256957b4d02dca2c3c8fad2f

See more details on using hashes here.

Provenance

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