You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TypeError: __init__() got an unexpected keyword argument 'tuning_mode' #61
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.
------------------ 原始邮件 ------------------
发件人: "salesforce/CodeRL" ***@***.***>;
发送时间: 2025年10月23日(星期四) 下午5:29
***@***.***>;
***@***.******@***.***>;
主题: Re: [salesforce/CodeRL] TypeError: __init__() got an unexpected keyword argument 'tuning_mode' (Issue #61)
oshindow left a comment (salesforce/CodeRL#61)
Hello, I don't know if you solved this problem, I'm also experiencing this problem now, can you give me some advice
image.png (view on web) 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.
Hi, what version of the transformers package did you use?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
Activity
YTJY commentedon 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 commentedon Dec 10, 2024
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.
LOVEISI commentedon Nov 3, 2025