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

Problem with loading to a cpu a model that was trained in CUDA #164

Open
ori-katz100 opened this issue Jul 29, 2021 · 2 comments
Open

Problem with loading to a cpu a model that was trained in CUDA #164

ori-katz100 opened this issue Jul 29, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@ori-katz100
Copy link

ori-katz100 commented Jul 29, 2021

I trained a model at AWS, saved it, but when I try to load it on my personal computer I get the following error:

~\AppData\Roaming\Python\Python37\site-packages\sdv\tabular\base.py in load(cls, path)
    559         with open(path, 'rb') as f:
--> 560             return pickle.load(f)

RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=torch.device('cpu') to map your storages to the CPU.

I can load models trained on my computer, and on AWS I can also load this model.

@pvk-developer pvk-developer added the bug Something isn't working label Sep 7, 2021
@acivit
Copy link

acivit commented Jan 10, 2022

Hello!

Were you able to solve this bug?

Thanks!

@jinlow
Copy link

jinlow commented Aug 4, 2022

Hello curious if there was any workaround for this problem? I am also experiencing the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants