Skip to content

ValueError: torch.cuda.is_available() should be True but is False #2253

Answered by 5KilosOfCheese
Jennal asked this question in Q&A
Discussion options

You must be logged in to vote

Or how can I specify the script to use 4090 only?

Check your taskmaster and see which GPU number your 4090 has

You see the ID in "Physical location:" in my case it is 0 since I only have one GPU enabled. Specify this number in the acceleration setup.

Also in the GUI you can force override the accelerate setup to choose a specific GPU to use.

Don't worry about screwing up the accelerate config, you can redo it if need be.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Jennal
Comment options

Answer selected by Jennal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants