Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated code after the 1.6 release #12521

Closed
44 tasks done
akihironitta opened this issue Mar 30, 2022 · 65 comments
Closed
44 tasks done

Remove deprecated code after the 1.6 release #12521

akihironitta opened this issue Mar 30, 2022 · 65 comments
Labels
Milestone

Comments

@akihironitta
Copy link
Contributor

akihironitta commented Mar 30, 2022

Proposed refactor

Remove deprecated code after the 1.6 release.

NOTE: Please pick up a single item from the list (by commenting here in the issue) - and if there are no conflicts - we will happily assign you and put your name in front of the item in the list.

Please note that unless mentioned, the classes are importable from pytorch_lightning, example: from pytorch_lightning import Trainer.

Feel free to cross-check from the test file to ensure that the relevant test fails now (since it's no more deprecated and instead removed).

Pitch

All the deprecated features we have are tested here:

https://github.com/PyTorchLightning/pytorch-lightning/blob/master/tests/deprecated_api/test_remove_1-7.py

If you are interested in taking care of one item, post a comment here asking to take it. This avoids multiple people working on the same thing.

Additional context

See pull requests linked in #10312 for examples on how to contribute :)
Or a recent pull request #12514.


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 @Borda @justusschock @awaelchli @rohitgr7 @krshrimali

@akihironitta akihironitta added good first issue Good for newcomers refactor needs triage Waiting to be triaged by maintainers labels Mar 30, 2022
@akihironitta akihironitta added this to the 1.7 milestone Mar 30, 2022
@akihironitta akihironitta removed the needs triage Waiting to be triaged by maintainers label Mar 30, 2022
@krshrimali
Copy link
Contributor

@akihironitta - Thanks for creating this issue. Let's create a tracker here, to help track better? What do you think?

@Borda
Copy link
Member

Borda commented Mar 30, 2022

Thanks for creating this issue. Let's create a tracker here, to help track better? What do you think?

exactly, let's include in the issue list aka todo of heat methods/attributes shall be removed so individual contributors can pick one and we reduce collision of people working on the same... 🐰

@Borda Borda pinned this issue Mar 30, 2022
@krshrimali
Copy link
Contributor

krshrimali commented Mar 30, 2022

@Borda - Done! 🚀 Note and a request to maintainers: please cross-check this list.

@yhl48
Copy link
Contributor

yhl48 commented Mar 30, 2022

I will take Trainer(prepare_data_per_node=...) for a start.

@krshrimali
Copy link
Contributor

krshrimali commented Mar 30, 2022

I will take the following for a start:

Trainer.progress_bar_dict Trainer(prepare_data_per_node=...) Trainer(stochastic_weight_avg=...) Trainer(terminate_on_nan=...) and Trainer.terminate_on_nan Trainer(process_position=...) Trainer(flush_logs_every_n_steps=...)

Hi, @yhl48 - thank you for showing interest in contributing to PyTorch Lightning. Happy to see the list eventually being completed, however - I've a minor request and a suggestion - can you please pick up one of these as a start, once you are done with that PR - you can comment here to pick up another to work on? This will allow other contributors to also pick up from the list while we all are at work :)) Apologies that we didn't mention it at first in the description, but I'll do it now. 🚀 Looking forward to your PR(s) ⚡

Let me know which one would you like to work on from the list, and I can put your name there in the list :)

@yhl48
Copy link
Contributor

yhl48 commented Mar 30, 2022

@krshrimali thanks for the suggestion, I have edited the comment to only include one flag.

@krshrimali
Copy link
Contributor

@krshrimali thanks for the suggestion, I have edited the comment to only include one flag.

Assigned to you. Thank you for understanding :) Please let us know if you have any queries, you can also join our slack if you wish: https://join.slack.com/t/pytorch-lightning/shared_invite/zt-12iz3cds1-uyyyBYJLiaL2bqVmMN7n~A. :)

@aniketmaurya
Copy link
Contributor

Hi, I would like to take LightningModule.summarize

@karthikrangasai
Copy link
Contributor

Hello,
I can start with Trainer(terminate_on_nan=...) and Trainer.terminate_on_nan

@kaushikb11
Copy link
Contributor

kaushikb11 commented Apr 1, 2022

Note to the contributors here:

It's a good practice to check if any open source projects are using the API, you are planning to remove on grep.app. So, that we could notify them to use an alternative or update the code. :)

For instances: https://grep.app/search?q=GPUStatsMonitor, https://grep.app/search?q=progress_bar_refresh_rate%3D

@aniketmaurya
Copy link
Contributor

Please assign me pytorch_lightning.core.memory.LayerSummary and ModelSummary

@puhuk
Copy link
Contributor

puhuk commented Apr 4, 2022

Can I take pytorch_lightning.core.memory.get_gpu_memory_map

@rohitgr7
Copy link
Contributor

rohitgr7 commented Apr 4, 2022

sure, go ahead @puhuk !!!

@ankitaS11
Copy link
Contributor

ankitaS11 commented Apr 4, 2022

Hi, can I take pytorch_lightning.callbacks.gpu_stats.XLAStatsMonitor ?

@rschireman
Copy link
Contributor

I'll take pytorch_lightning.callbacks.progress.ProgressBar if that's ok

@tkonopka
Copy link
Contributor

tkonopka commented Apr 4, 2022

Hello, I can work on LightningModule.model_size (?)

@krshrimali
Copy link
Contributor

@ankitaS11 @rschireman @tkonopka - Thank you for showing interest! 🚀 ⚡ Please go ahead, I've assigned the respective tasks to you all (updated the description). Also, make sure that you join our slack channel - feel free to ask questions there if you have any!

@rschireman
Copy link
Contributor

Good morning, can I take Trainer.slurm_job_id?

@rohitgr7
Copy link
Contributor

yep @rschireman go ahead. I see a few more assigned to you. Are you working on them too?

@rschireman
Copy link
Contributor

@rohitgr7 pytorch_lightning.callbacks.lr_monitor.LearningRateMonitor.lr_sch_names was closed yesterday I believe. I don't see any other assignments on my end but I'll gladly close those before I work on this.

@rohitgr7
Copy link
Contributor

oh, I didn't see it since it wasn't marked. Go ahead with the next one :)

@akihironitta
Copy link
Contributor Author

@shenoynikhil @nitinramvelraj Thanks for showing your interest in contributing! Let me know if you need help with the ones assigned to you :]

@nitinramvelraj
Copy link
Contributor

@akihironitta Hi thanks! I made the changes, I'm having trouble running the test cases. Could you help me with that?

@akihironitta
Copy link
Contributor Author

Hi @nitinramvelraj Thanks for asking! Let's discuss your issue via PyTorch Lightning Slack! My username there is the same as my GitHub username @akihironitta. Please DM me on Slack :) (You can join our Slack via https://pytorchlightning.ai/community if you haven't)

@nitinramvelraj
Copy link
Contributor

Thanks! I don't have an email id with the following domains:
berkeley.edu
uchicago.edu
ncsu.edu
bcs.tu-darmstadt.de
di.uniroma1.it
maiorca.xyz

Without this the slack is not letting me join. Can one of the administrators give me an invitation to join the Slack?

@akihironitta
Copy link
Contributor Author

Hi @nitinramvelraj! Sorry for the delay. Could you try this link?
https://join.slack.com/t/pytorch-lightning/shared_invite/zt-1b6lkirxt-9b3ehI0P_31YIqQ4_Dum1A

(The link in the https://pytorchlightning.ai/community will be updated to this new link shortly.)

@shantam-8
Copy link
Contributor

Hello @akihironitta, can I please take pytorch_lightning.core.decorators.parameter_validation?

@rohitgr7
Copy link
Contributor

hey @shantam-8 ! please go ahead with a PR !!

@akihironitta
Copy link
Contributor Author

akihironitta commented Jul 7, 2022

Hi @shenoynikhil @madaanpulkit! Thank you for your interest in contributing! Let me know if you need help with the ones assigned to you :)


EDIT: @madaanpulkit I'll work on the item assigned to you now. If you're still interested in contributing, please choose one from the good first issues!

@shenoynikhil
Copy link
Contributor

@akihironitta Have been busy for sometime, will work on it today :).

@samz5320
Copy link
Contributor

samz5320 commented Jul 7, 2022

Hi ! can i take pytorch_lightning.overrides.distributed.IndexBatchSamplerWrapper.batch_indices ? if its not assigned .

@akihironitta
Copy link
Contributor Author

Hi @samz5320, thank you for showing your interest! Please go ahead :)

@carmocca
Copy link
Contributor

Closing. All the items are taken (some yet to be merged). Thank you all for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests