-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
When I try to input : "def factorial", it gives me the following error. Could you please help me resolve it? Thanks.
File "interact.py", line 52, in
outputs = model.generate(input_ids=input_ids.to("cuda") if args.use_cuda else input_ids,
File "/home/ua383/anaconda3/lib/python3.8/site-packages/torch/nn/modules/module.py", line 575, in getattr
raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'GPT2LMHeadModel' object has no attribute 'generate'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels