Bernardo Olisan
Bernardo Olisan

Reputation: 675

KeyError: 'allocated_bytes.all.current'

Si I upload in huggingface spaces the VQGAN+CLIP code, the problem it that when I try to use it, it gives me this error. enter image description here

I don't know what this means

Upvotes: 2

Views: 1577

Answers (1)

tschomacker
tschomacker

Reputation: 814

The issue could be caused by an uninitialized CUDA. Try running torch.cuda.init() before you execute your code. I found a similar problem in this discussion: https://github.com/pytorch/pytorch/issues/49952

Upvotes: 1

Related Questions