-
Notifications
You must be signed in to change notification settings - Fork 25
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
Not generating required output #10
Comments
Have you tried down-version the transformers? |
Thanks for getting back to me. I've managed to run it but when I try to fine-tune it on your dataset it gives me this error: Although I tried installing torch>=1.5.0 versions, it still gives me the same error. Could you please help me with this issue. Thanks. |
Try using transformers 3.5.0. It works for me. |
Try installing torch>=1.5 using the below code after uninstalling it
|
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'
The text was updated successfully, but these errors were encountered: