Skip to content
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

TypeError: __init__() got an unexpected keyword argument 'tuning_mode' #61

Open
LOVEISI opened this issue Dec 2, 2024 · 2 comments
Open

Comments

@LOVEISI
Copy link

LOVEISI commented Dec 2, 2024

Traceback (most recent call last):
File "G:\CodeRL_A3\CodeRL\CodeRL\train.py", line 155, in
main(args)
File "G:\CodeRL_A3\CodeRL\CodeRL\train.py", line 149, in main
run_training(args, train_data)
File "G:\CodeRL_A3\CodeRL\CodeRL\train.py", line 35, in run_training
model = transformers.T5ForConditionalGeneration.from_pretrained(
File "H:\Anaconda\envs\CodeRL_A3\lib\site-packages\transformers\modeling_utils.py", line 1489, in from_pretrained
model = cls(config, *model_args, **model_kwargs)
TypeError: init() got an unexpected keyword argument 'tuning_mode'

When I run "$ /bin/bash scripts/train_critic.sh",it went wrong.
image
image

@YTJY
Copy link

YTJY commented Dec 9, 2024

Hello, I don't know if you solved this problem, I'm also experiencing this problem now, can you give me some advice

@LOVEISI
Copy link
Author

LOVEISI commented Dec 10, 2024

Hello, I don't know if you solved this problem, I'm also experiencing this problem now, can you give me some advice

image
I'm just going to simply remove this parameter now, like in the picture. But I don't know if anything will go wrong in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants