Skip to main content

An improved Lightning mlflow logger

Project description

lit-mlflow

Build Documentation GitHub Release PyPI - Package Version PyPI - Python Version Dependencies Status Docs with MkDocs Poetry linting: ruff pre-commit Checked with pyright security: bandit Semantic Versions Copier License

An improved Lightning mlflow logger. Works seamlessly with PyTorch Lightning on Databricks and offers more control compared to the mlflow.pytorch.autolog function.

Features

  • Makes MLflow logging work with lightning and Databricks

Installation

With pip:

python -m pip install lit-mlflow

With poetry:

poetry add lit-mlflow

How to use it

Replace mlflow.autolog() with the MlFlowAutoCallback:

from lit_mlflow import MlFlowAutoCallback
import lightning.pytorch as pl

trainer = pl.Trainer(
    callbacks=[
        MlFlowAutoCallback()
    ]
)

To support Databricks mlflow, use the DbxMLFlowLogger instead of the MlFlowLogger:

from lit_mlflow import DbxMLFlowLogger
import lightning.pytorch as pl

trainer = pl.Trainer(
    logger=[
        DbxMLFlowLogger()
    ]
)

Docs

poetry run mkdocs build -f ./docs/mkdocs.yml -d ./_build/

Update template

copier update --trust -A --vcs-ref=HEAD

Credits

This project was generated with 🚀 A generic python project template.

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

lit_mlflow-0.1.2.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lit_mlflow-0.1.2-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file lit_mlflow-0.1.2.tar.gz.

File metadata

  • Download URL: lit_mlflow-0.1.2.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.10.19 Linux/6.11.0-1018-azure

File hashes

Hashes for lit_mlflow-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ec48dbbbf767cf5b8263c865a9b9b84d45e2d7af2fef54d041151112fa576b4b
MD5 4328cbc1f8e058e07bf3c97b273e7cfb
BLAKE2b-256 4853ac717bda6517a125db61632b9fe0bb404956b3e763c7affb739c62831615

See more details on using hashes here.

File details

Details for the file lit_mlflow-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: lit_mlflow-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.10.19 Linux/6.11.0-1018-azure

File hashes

Hashes for lit_mlflow-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f1c08c87c7573596b1cd3ed0976de353ad02c2d986b2e9c3daa3f565ece24555
MD5 458dba85dbb330cfa45fd2dc79afd622
BLAKE2b-256 939e73f1d928827c331d00249bdd7ebfa137130fac694993d333185678946bc9

See more details on using hashes here.

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