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

AssertionError: Torch not compiled with CUDA enabled #233

Open
KathyGCY opened this issue Aug 19, 2022 · 2 comments
Open

AssertionError: Torch not compiled with CUDA enabled #233

KathyGCY opened this issue Aug 19, 2022 · 2 comments

Comments

@KathyGCY
Copy link

This is the code I'm running in jupyter notebook on a mac

import torch
from dalle2_pytorch import DALLE2, DiffusionPriorNetwork, DiffusionPrior, Unet, Decoder, CLIP

clip = CLIP(
dim_text = 512,
dim_image = 512,
dim_latent = 512,
num_text_tokens = 49408,
text_enc_depth = 6,
text_seq_len = 256,
text_heads = 8,
visual_enc_depth = 6,
visual_image_size = 256,
visual_patch_size = 32,
visual_heads = 8
).cuda()

And this happened:
Screen Shot 2022-08-19 at 2 46 48 PM

@antonioortegajr
Copy link

Removing All the .cuda() from the code should get the code going and not trying to get GPU involved as that isn't supported on Mac.

@Jorginthesage
Copy link

Can confirm this works on Windows 10 and MacOS Catalina.

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

3 participants