Open stakeswky opened 1 year ago
I have the same issue
Reinstall pytorch with your preferred version. For example:
conda install pytorch torchvision torchaudio pytorch-cuda=11.6 -c pytorch -c nvidia
Reference: PyTorch
CUDA error: no kernel image is available for execution on the device
means you assigned the model to a gpu number you don't have. You need to change all the code like device="cuda:1"
, device="cuda:2"
.... to device="cuda:0"
.
And then you might have OOM error, it because you don't have enough gpu memory. Thus, try uncomment some tools.
CUDA error: no kernel image is available for execution on the device
means you assigned the model to a gpu number you don't have. You need to change all the code likedevice="cuda:1"
,device="cuda:2"
.... todevice="cuda:0"
. And then you might have OOM error, it because you don't have enough gpu memory. Thus, try uncomment some tools.
I have changed the CUDA used in the code to CUDA:0, but the error message still appears.
I tried to run the code on Google Colab, but the following error occurred during the image generation phase. Inputs: 生成一只猫 [] ======>Previous memory: human_prefix='Human' ai_prefix='AI' buffer='' output_key='output' input_key=None memory_key='chat_history' hitory_memory:, n_tokens: 0