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

auto_select_gpus is deprecated in Pytorch Lightning 2.0.2 #29

Closed
simnyatsanga opened this issue Apr 30, 2023 · 1 comment
Closed

auto_select_gpus is deprecated in Pytorch Lightning 2.0.2 #29

simnyatsanga opened this issue Apr 30, 2023 · 1 comment

Comments

@simnyatsanga
Copy link

simnyatsanga commented Apr 30, 2023

First off, thanks for the great contribution to the community!

I am getting the following error when running the training code:

Error executing job with overrides: []
Traceback (most recent call last):
  File "D:\User\TEMOS\train.py", line 12, in _train
    return train(cfg)
  File "D:\User\TEMOS\train.py", line 66, in train
    trainer = pl.Trainer(
  File "D:\User\Anaconda37\envs\temos\lib\site-packages\pytorch_lightning\utilities\argparse.py", line 69, in insert_env_defaults
    return fn(self, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'auto_select_gpus'

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.

It seems like the auto_select_gpus argument is now deprecated in the latest version of Pytorch Lightning. See discussion here: Lightning-AI/pytorch-lightning#16147

Therefore it shouldn't be need on this line for the latest Pytorch Lightning:

auto_select_gpus: true

EDIT: I verified that this isn't an issue in version 1.9.5

I am happy to make a PR if need be, otherwise a frozen requirements.txt that is compatible with the state of the code as it is would be also really helpful.

Thanks for you help!

@simnyatsanga simnyatsanga changed the title auto_select_gpus is deprecated in Pytorch Lightning auto_select_gpus is deprecated in Pytorch Lightning 2.0.2 Apr 30, 2023
@Mathux
Copy link
Owner

Mathux commented Dec 10, 2023

Hello @simnyatsanga,

Thanks for your issue! I removed the "auto_select_gpus" from the configs.

@Mathux Mathux closed this as completed Dec 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants