question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Distribute Lite's code with PyTorch Lightning

See original GitHub issue

Proposed refactor

Remove this line https://github.com/Lightning-AI/lightning/blob/5025c3ec162b7a1af978bfb19424fd1bb2683012/requirements/pytorch/base.txt#L6

and distribute the Lite source code together with PL when it’s installed

Motivation

When you do

PACKAGE_NAME=pytorch pip install -e .

to create an editable installation of PL. Lite gets installed from PyPI:

$ pip freeze | grep lightning
lightning-lite==1.8.0.post1
-e git+https://github.com/Lightning-AI/lightning.git@5025c3ec162b7a1af978bfb19424fd1bb2683012#egg=pytorch_lightning
...

This means that local changes to Lite are not reflected when developing locally

One downside of this is that if you also do pip install lightning_lite, you might have conflicting lite installations. The PyPI version will take precedence.


If you enjoy Lightning, check out our other projects! ⚡

  • Metrics: Machine learning metrics for distributed, scalable PyTorch applications.

  • Lite: enables pure PyTorch users to scale their existing code on any kind of device while retaining full control over their own loops and optimization logic.

  • Flash: The fastest way to get a Lightning baseline! A collection of tasks for fast prototyping, baselining, fine-tuning, and solving problems with deep learning.

  • Bolts: Pretrained SOTA Deep Learning models, callbacks, and more for research and production with PyTorch Lightning and PyTorch.

  • Lightning Transformers: Flexible interface for high-performance research using SOTA Transformers leveraging PyTorch Lightning, Transformers, and Hydra.

cc @carmocca @akihironitta @borda

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
carmoccacommented, Nov 5, 2022

That happens because the docker image used already contains PyPI’s lighting_lite installation. And given the issue described above:

One downside of this is that if you also do pip install lightning_lite, you might have conflicting lite installations. The PyPI version will take precedence.

The PyPI version is used over the version packaged inside PL.

Let’s give it a day to see if the rebuilt docker images do not have it installed which would make this issue disappear.

1reaction
carmoccacommented, Nov 4, 2022

That’s weird! I will have a look. Thanks for reporting

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lightning Lite — PyTorch Lightning 1.8.5.post0 documentation
Animation showing how to convert your PyTorch code to LightningLite. ... Lite is specialized in accelerated distributed training and inference.
Read more >
Scale your PyTorch code with LightningLite
Here's how Lightning Lite makes adding multi-GPU training support easier than ever. Here is a 30-second animated image showing you how to scale...
Read more >
Installing Lite also installs PyTorch Lightning #15490 - GitHub
Lite : enables pure PyTorch users to scale their existing code on any kind of device while retaining full control over their own...
Read more >
Using Ray with Pytorch Lightning
PyTorch Lightning is a framework which brings structure into training PyTorch models. It aims to avoid boilerplate code, so you don't have to...
Read more >
HappyWhale :PyTorch Training from scratch Lite ️ | Kaggle
Explore and run machine learning code with Kaggle Notebooks | Using data ... on any hardware like GPU, TPU, IPU or Distributed Training...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found