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

Error: Invalid value for '--accelerator': 'auto' is not one of 'cpu', 'gpu', 'cuda', 'mps', 'tpu'. #20451

Open
wkd88 opened this issue Nov 26, 2024 · 2 comments
Labels
fabric lightning.fabric.Fabric feature Is an improvement or enhancement help wanted Open to be worked on ver: 2.4.x

Comments

@wkd88
Copy link

wkd88 commented Nov 26, 2024

Bug description

when run this codes

fabric run ./path/to/train.py \
    --devices=auto \
    --accelerator=auto

get problem below

Error: Invalid value for '--accelerator': 'auto' is not one of 'cpu', 'gpu', 'cuda', 'mps', 'tpu'.

What version are you seeing the problem on?

v2.4

How to reproduce the bug

No response

Error messages and logs

# Error messages and logs here please

Environment

Current environment
#- PyTorch Lightning Version (e.g., 2.4.0):
#- PyTorch Version (e.g., 2.4):
#- Python version (e.g., 3.12):
#- OS (e.g., Linux):
#- CUDA/cuDNN version:
#- GPU models and configuration:
#- How you installed Lightning(`conda`, `pip`, source):

More info

No response

cc @Borda @justusschock @awaelchli

@wkd88 wkd88 added bug Something isn't working needs triage Waiting to be triaged by maintainers labels Nov 26, 2024
@lantiga lantiga added feature Is an improvement or enhancement fabric lightning.fabric.Fabric and removed bug Something isn't working needs triage Waiting to be triaged by maintainers labels Dec 5, 2024
@lantiga
Copy link
Collaborator

lantiga commented Dec 5, 2024

hey @wkd88 that's correct, would you want to give it a shot in a quick PR?

here's the file that needs to be updated: https://github.com/Lightning-AI/pytorch-lightning/blob/master/src/lightning/fabric/cli.py

@lantiga lantiga added the help wanted Open to be worked on label Dec 5, 2024
@GeminiLn
Copy link

GeminiLn commented Dec 7, 2024

hey @wkd88 that's correct, would you want to give it a shot in a quick PR?

here's the file that needs to be updated: https://github.com/Lightning-AI/pytorch-lightning/blob/master/src/lightning/fabric/cli.py

Hi @lantiga I want to try a PR on this issue.

I’ve updated the file to include the "auto" option for the accelerator. You can find the PR here: #20473 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fabric lightning.fabric.Fabric feature Is an improvement or enhancement help wanted Open to be worked on ver: 2.4.x
Projects
None yet
Development

No branches or pull requests

3 participants