Closed Luthaf closed 3 weeks ago
Interesting! I will improve the error message if there is no valid device.
I think PET just doesn't train at all on CPU if I am not mistaken @frostedoyster ?
At least the new error display looks good 😊
Ahahah I agree, at least the meta-message is good. Yes, PET is not supposed to train on CPU (we could change this, although we should then document that it's so slow it's basically unusable). I've seen this type of device-related error message before and I have to agree it's terrible
Running the following options.yaml:
Gives a confusing error message:
I guess the issue is that there is no valid device to be picked? This is running on Apple M1, so there is no CUDA GPU available.
As an aside, I really think that all architectures should support running on CPU, even if this is extremely slow. Maybe we could print a big warning in PET if the user is trying to train on CPU, but let them do it if they don't have other options?
Full traceback below