-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Comments
@akihironitta - 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 - Done! 🚀 Note and a request to maintainers: please cross-check this list. |
I will take |
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 :) |
@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. :) |
Hi, I would like to take |
Hello, |
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 |
Please assign me |
Can I take |
sure, go ahead @puhuk !!! |
Hi, can I take |
I'll take |
Hello, I can work on |
@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! |
Good morning, can I take |
yep @rschireman go ahead. I see a few more assigned to you. Are you working on them too? |
@rohitgr7 |
oh, I didn't see it since it wasn't marked. Go ahead with the next one :) |
@shenoynikhil @nitinramvelraj Thanks for showing your interest in contributing! Let me know if you need help with the ones assigned to you :] |
@akihironitta Hi thanks! I made the changes, I'm having trouble running the test cases. Could you help me with that? |
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) |
Thanks! I don't have an email id with the following domains: Without this the slack is not letting me join. Can one of the administrators give me an invitation to join the Slack? |
Hi @nitinramvelraj! Sorry for the delay. Could you try this link? (The link in the https://pytorchlightning.ai/community will be updated to this new link shortly.) |
Hello @akihironitta, can I please take |
hey @shantam-8 ! please go ahead with a PR !! |
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! |
@akihironitta Have been busy for sometime, will work on it today :). |
Hi ! can i take |
Hi @samz5320, thank you for showing your interest! Please go ahead :) |
Closing. All the items are taken (some yet to be merged). Thank you all for your help! |
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
.LightningModule.summarize
-> remove LightningModule.summarize #12559pytorch_lightning.core.memory.LayerSummary
-> Remove deprecated LayerSummary and ModelSummary #12593pytorch_lightning.core.memory.ModelSummary
-> Remove deprecated LayerSummary and ModelSummary #12593pytorch_lightning.core.memory.get_gpu_memory_map
-> Remove pytorch_lightning.core.memory.get_gpu_memory_map #12644pytorch_lightning.core.memory.get_memory_profile
-> Remove deprecated get_memory_profile #12659LightningModule.model_size
-> remove deprecatedmodel_size
from LightningModule #12641LightningDataModule.train_transforms
-> Remove train_transforms in LightningDataModule #12662LightningDataModule.val_transforms
-> Remove the deprecatedLightningDataModule.val_transforms
#12763LightningDataModule.test_transforms
-> Remove the deprecatedLightningDataModule.test_transforms
#12773LightningDataModule.size
-> Remove the deprecated LightningDataModule.size, LightningDataModule.dims #12780LightningDataModule.dims
andLightningDataModule(dims=...)
-> Remove the deprecated LightningDataModule.size, LightningDataModule.dims #12780LightningModule.get_progress_bar_dict
-> Remove the deprecated get_progress_bar_dict #12839Trainer.progress_bar_dict
-> Remove the deprecated get_progress_bar_dict #12839Trainer(prepare_data_per_node=...)
-> Remove deprecatedprepare_data_per_node
inTrainer
#12536Trainer(stochastic_weight_avg=...)
-> Remove deprecatedstochastic_weight_avg
argument fromTrainer
#12535Trainer(terminate_on_nan=...)
andTrainer.terminate_on_nan
-> Remove deprecated 'terminate_on_nan' argument from Trainer #12553LightningModule.on_{train,val,test,predict}_dataloader
-> Remove the deprecatedon_{train,val,test,predict}_dataloader
hooks #13033pytorch_lightning.loggers.TestTubeLogger
-> Remove deprecatedTestTubeLogger
#12859pytorch_lightning.Callback.on_keyboard_interrupt
-> Remove deprecatedon_keyboard_interrupt
#13438Trainer(process_position=...)
-> Removedprocess_position
argument from Trainer Class #13071Trainer(flush_logs_every_n_steps=...)
-> Removedflush_logs_every_n_steps
argument from Trainer #13074LightningModule.add_to_queue
-> @shenoynikhilLightningModule.get_from_queue
-> @shenoynikhilTrainer(progress_bar_refresh_rate=...)
-> Remove deprecatedprogress_bar_refresh_rate
from Trainer constructor #12514LightningLoggerBase.close
andpytorch_lightning.loggers.LoggerCollection.close
-> Remove the deprecatedlogger.close
#13149pytorch_lightning.distributed.dist.LightningDistributed
Remove deprecatedLightningDistributed
#13549Trainer(checkpoint_callback=...)
-> Remove deprecatedcheckpoint_callback
flag in Trainer #13027dataloader_idx
toon_train_batch_start
ofpytorch_lightning.Callback
andLightningModule
-> Remove deprecateddataloader_idx
argument fromon_train_batch_start/end
callback hooks #12769LightningModule.on_post_move_to_device
Remove deprecatedLightningModule.on_post_move_to_device
#13548pytorch_lightning.core.decorators.parameter_validation
Remove deprecatedpytorch_lightning.core.decorators.parameter_validation
#13514Trainer(accelerator="ddp_spawn")
Remove support for passing strategy strings to accelerator #12696Trainer(plugins="ddp_spawn")
Remove support for passing strategy name to plugins #12700Trainer(weights_summary="full")
,Trainer(weights_summary=None)
,Trainer.weights_summary
-> Removed deprecatedweights_summary
argument from Trainer #13070Trainer(log_gpu_memory=...)
-> Remove deprecated automatic logging of gpu metrics #12657Trainer.slurm_job_id
Remove deprecatedTrainer.slurm_job_id
#13459pytorch_lightning.callbacks.gpu_stats.GPUStatsMonitor
-> Remove deprecatedGPUStatsMonitor
callback #12554pytorch_lightning.callbacks.gpu_stats.XLAStatsMonitor
-> Remove deprecatedXLAStatsMonitor
#12688pytorch_lightning.callbacks.progress.ProgressBar
-> Remove the deprecatedpl.callbacks.ProgressBar
#12658Trainer(max_steps=None)
andTrainer.fit_loop.max_steps = None
Remove deprecatedmax_steps=None
#13591pytorch_lightning.callbacks.lr_monitor.LearningRateMonitor.lr_sch_names
-> Remove pytorch lightning.callbacks.lr monitor.learning rate monitor.lr_sch_names #13353KubeflowEnvironment.is_using_kubeflow, LSFEnvironment.is_using_lsf, TorchElasticEnvironment.is_using_torchelastic
Remove deprecated ClustertEnvironment methods #13458pytorch_lightning.overrides.distributed.IndexBatchSamplerWrapper.batch_indices
Removed deprecatedpytorch_lightning.overrides.distributed.IndexBatchSamplerWrapper.batch_indices
#13565pytorch_lightning.strategies.SingleDeviceStrategy.post_dispatch
Remove deprecatedStrategy.post_dispatch
#13461pytorch_lightning.trainer.connectors.logger_connector.logger_connector.LoggerConnector.gpu_metrics
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
The text was updated successfully, but these errors were encountered: