lightning-toolbox


Namelightning-toolbox JSON
Version 0.0.34 PyPI version JSON
download
home_pagehttps://github.com/vahidzee/lightning-toolbox
SummaryA collection of utilities for PyTorch Lightning.
upload_time2023-10-04 06:32:34
maintainer
docs_urlNone
authorVahid Zehtab
requires_python>=3.8
licenseMIT
keywords artificial intelligence pytorch lightning objective functions regularization
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # LightningToolbox: A PyTorch Lightning Facilitator
<p align="center">
  <a href="#installation">Installation</a> •
  <a href="https://github.com/vahidzee/lightning-toolbox/tree/main/docs/">Docs</a> •
  <a href="#license">License</a>
</p>

<p align="center" markdown="1">
    <a href="https://badge.fury.io/py/lightning_toolbox"><img src="https://badge.fury.io/py/lightning_toolbox.svg" alt="PyPI version" height="18"></a>
</p>


Welcome to lightning-toolbox, a python package that offers a set of automation tools built on top of PyTorch Lightning. As a deep learning researcher, I found that PyTorch Lightning offloads a significant portion of redundant work. However, I still found myself spending a considerable amount of time on writing boilerplate code for datamodules, training/validation steps, logging, and specially for not so complicated costum training loops. This is why I created lightning-toolbox - to make it easier to focus on writing experiment-specific code rather than dealing with tedious setup tasks.

By passing your PyTorch model onto a generic `lightning.LightningModule` (`lightning_toolbox.TrainingModule`), lightning-toolbox automatically populates the objective function, optimizer step, and more. In addition, lightning-toolbox's generic `lightning.LightningDataModule` (`lightning_toolbox.DataModule`) can turn any PyTorch dataset, into a experiment-ready lightning data module, completing the cycle for writing lightning deep learning experiments.

Most of the functionality provided in this package is based on [dypy](https://github.com/vahidzee/dypy), which enables lazy evaluation of variables and runtime code injections. Although lightning-toolbox is currently in its early stages and mainly serves as a facilitator for my personal research projects, I believe it can be helpful for many others who deal with similar deep learning experiments. Therefore, I decided to open-source this project and continue to add on to it as I move further in my research.

As a disclaimer this package does not intend to solve field-specific problems and provides more generic facilitator codes that the official [lightning-bolts](https://lightning-bolts.readthedocs.io/en/latest/), that you can easily mold into your desired deep learning experiment.

## Installation

```bash
pip install lightning-toolbox
```
Lightning toolbox is tested on `lightning==1.9.0`, although there's no version restriction setup for this package, things might break down if the community decides to roll backward incompatible changes to the core Pytorch Lightning API (as they usually do).

## License

This project is licensed under the terms of the Apache 2.0 license. See [LICENSE](https://github.com/vahidzee/lightning-toolbox/tree/main/LICENSE) for more details.


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/vahidzee/lightning-toolbox",
    "name": "lightning-toolbox",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "artificial intelligence,pytorch lightning,objective functions,regularization",
    "author": "Vahid Zehtab",
    "author_email": "vahid@zehtab.me",
    "download_url": "https://files.pythonhosted.org/packages/29/45/a92276b256ae0f7213bf586d5304021203bba4ad86e37e1b14d44174debd/lightning_toolbox-0.0.34.tar.gz",
    "platform": null,
    "description": "# LightningToolbox: A PyTorch Lightning Facilitator\n<p align=\"center\">\n  <a href=\"#installation\">Installation</a> \u2022\n  <a href=\"https://github.com/vahidzee/lightning-toolbox/tree/main/docs/\">Docs</a> \u2022\n  <a href=\"#license\">License</a>\n</p>\n\n<p align=\"center\" markdown=\"1\">\n    <a href=\"https://badge.fury.io/py/lightning_toolbox\"><img src=\"https://badge.fury.io/py/lightning_toolbox.svg\" alt=\"PyPI version\" height=\"18\"></a>\n</p>\n\n\nWelcome to lightning-toolbox, a python package that offers a set of automation tools built on top of PyTorch Lightning. As a deep learning researcher, I found that PyTorch Lightning offloads a significant portion of redundant work. However, I still found myself spending a considerable amount of time on writing boilerplate code for datamodules, training/validation steps, logging, and specially for not so complicated costum training loops. This is why I created lightning-toolbox - to make it easier to focus on writing experiment-specific code rather than dealing with tedious setup tasks.\n\nBy passing your PyTorch model onto a generic `lightning.LightningModule` (`lightning_toolbox.TrainingModule`), lightning-toolbox automatically populates the objective function, optimizer step, and more. In addition, lightning-toolbox's generic `lightning.LightningDataModule` (`lightning_toolbox.DataModule`) can turn any PyTorch dataset, into a experiment-ready lightning data module, completing the cycle for writing lightning deep learning experiments.\n\nMost of the functionality provided in this package is based on [dypy](https://github.com/vahidzee/dypy), which enables lazy evaluation of variables and runtime code injections. Although lightning-toolbox is currently in its early stages and mainly serves as a facilitator for my personal research projects, I believe it can be helpful for many others who deal with similar deep learning experiments. Therefore, I decided to open-source this project and continue to add on to it as I move further in my research.\n\nAs a disclaimer this package does not intend to solve field-specific problems and provides more generic facilitator codes that the official [lightning-bolts](https://lightning-bolts.readthedocs.io/en/latest/), that you can easily mold into your desired deep learning experiment.\n\n## Installation\n\n```bash\npip install lightning-toolbox\n```\nLightning toolbox is tested on `lightning==1.9.0`, although there's no version restriction setup for this package, things might break down if the community decides to roll backward incompatible changes to the core Pytorch Lightning API (as they usually do).\n\n## License\n\nThis project is licensed under the terms of the Apache 2.0 license. See [LICENSE](https://github.com/vahidzee/lightning-toolbox/tree/main/LICENSE) for more details.\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A collection of utilities for PyTorch Lightning.",
    "version": "0.0.34",
    "project_urls": {
        "Homepage": "https://github.com/vahidzee/lightning-toolbox"
    },
    "split_keywords": [
        "artificial intelligence",
        "pytorch lightning",
        "objective functions",
        "regularization"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6cfbdd757d7e5ab046f0d2f8d0c8b8901cb0efa52b39e9e268fc75cb7245081d",
                "md5": "dd4e5b61723d2946bc2f6521c740a970",
                "sha256": "bed25013f7bd070d1774455777ec70b2eab9f5a7f5ca66110cbe0b27ad4cb914"
            },
            "downloads": -1,
            "filename": "lightning_toolbox-0.0.34-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "dd4e5b61723d2946bc2f6521c740a970",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 46498,
            "upload_time": "2023-10-04T06:32:32",
            "upload_time_iso_8601": "2023-10-04T06:32:32.241867Z",
            "url": "https://files.pythonhosted.org/packages/6c/fb/dd757d7e5ab046f0d2f8d0c8b8901cb0efa52b39e9e268fc75cb7245081d/lightning_toolbox-0.0.34-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2945a92276b256ae0f7213bf586d5304021203bba4ad86e37e1b14d44174debd",
                "md5": "deb9d5cc0c7a1b67042018750aa0500b",
                "sha256": "a26326ab7b2ad4499dd3a5f3254ffdfef2237b894388d341a7025219a896e42e"
            },
            "downloads": -1,
            "filename": "lightning_toolbox-0.0.34.tar.gz",
            "has_sig": false,
            "md5_digest": "deb9d5cc0c7a1b67042018750aa0500b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 32797,
            "upload_time": "2023-10-04T06:32:34",
            "upload_time_iso_8601": "2023-10-04T06:32:34.068634Z",
            "url": "https://files.pythonhosted.org/packages/29/45/a92276b256ae0f7213bf586d5304021203bba4ad86e37e1b14d44174debd/lightning_toolbox-0.0.34.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-04 06:32:34",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "vahidzee",
    "github_project": "lightning-toolbox",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "lightning-toolbox"
}
        
Elapsed time: 0.13387s