CodeRL icon indicating copy to clipboard operation
CodeRL copied to clipboard

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

Open LOVEISI opened this issue 1 year ago • 3 comments

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

LOVEISI avatar Dec 02 '24 16:12 LOVEISI

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

YTJY avatar Dec 09 '24 14:12 YTJY

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.

LOVEISI avatar Dec 10 '24 03:12 LOVEISI

Hi, transformers    4.51.3    or  4.16.1 , I forget which one I used.But it must be one of the two visions.

------------------ 原始邮件 ------------------ 发件人: "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: @.***>

LOVEISI avatar Nov 03 '25 12:11 LOVEISI