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.7.43.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.19.7.43.tar.gz.

File metadata

File hashes

Hashes for lightning_trainer_utils-2025.5.19.7.43.tar.gz
Algorithm Hash digest
SHA256 59a23dbab6719f01a9962e13e2ce1a42efcddecebeaa9e8613813a429df64c1a
MD5 ae3177b7b8dabdc2fb4b2c0d32f85dc7
BLAKE2b-256 ab21964fcf244d6903a646c81f8a5197d3da58ee9b6f4c81fb15e2c608b19507

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightning_trainer_utils-2025.5.19.7.43-py3-none-any.whl
Algorithm Hash digest
SHA256 bfe213bf342cb08b8e675930753ea3d7dbcc69c0e1b79e7097c482f07e7136e3
MD5 6eae4ad36221bf44090c66d20ddccdd0
BLAKE2b-256 dc6a67d469207d25f8edb7af6509acc2837669eb422717fb231ce0233224b4c9

See more details on using hashes here.

Provenance

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