when using agent with remote=True, I got error : Incorrect padding.
how could I fix it?
this is the code:
from transformers import OpenAiAgent
openai_api_key = âxxxâ
agent = OpenAiAgent(model=âtext-davinci-003â, api_key=openai_api_key)
agent.run(âcreate a picture of rivers and lakesâ, remote=True)
And how could I fix cuda oom, just give me the code?
I have tried this:
import torch
torch.cuda.empty_cache()
but itâs useless, if I donât rebot the jupyter kernel.